Re: [PATCH v2 29/45] KVM: Introduce kvm_vcpu_destroy()

From: Cornelia Huck
Date: Thu Dec 19 2019 - 14:51:51 EST


On Wed, 18 Dec 2019 13:55:14 -0800
Sean Christopherson <sean.j.christopherson@xxxxxxxxx> wrote:

> Add kvm_vcpu_destroy() and wire up all architectures to call the common
> function instead of their arch specific implementation. The common
> destruction function will be used by future patches to move allocation
> and initialization of vCPUs to common KVM code, i.e. to free resources
> that are allocated by arch agnostic code.
>
> No functional change intended.
>
> Acked-by: Christoffer Dall <christoffer.dall@xxxxxxx>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> ---
> arch/mips/kvm/mips.c | 2 +-
> arch/powerpc/kvm/powerpc.c | 2 +-
> arch/s390/kvm/kvm-s390.c | 2 +-
> arch/x86/kvm/x86.c | 2 +-
> include/linux/kvm_host.h | 1 +
> virt/kvm/arm/arm.c | 2 +-
> virt/kvm/kvm_main.c | 6 ++++++
> 7 files changed, 12 insertions(+), 5 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>