KVM: Clean up vm creation and release
IA64 support forces us to abstract the allocation of the kvm structure. But instead of mixing this up with arch-specific initialization and doing the same on destruction, split both steps. This allows to move generic destruction calls into generic code. It also fixes error clean-up on failures of kvm_create_vm for IA64. Signed-off-by:Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
Showing
- arch/ia64/include/asm/kvm_host.h 4 additions, 0 deletionsarch/ia64/include/asm/kvm_host.h
- arch/ia64/kvm/kvm-ia64.c 7 additions, 21 deletionsarch/ia64/kvm/kvm-ia64.c
- arch/powerpc/kvm/powerpc.c 3 additions, 17 deletionsarch/powerpc/kvm/powerpc.c
- arch/s390/kvm/kvm-s390.c 6 additions, 17 deletionsarch/s390/kvm/kvm-s390.c
- arch/x86/kvm/x86.c 2 additions, 10 deletionsarch/x86/kvm/x86.c
- include/linux/kvm_host.h 14 additions, 1 deletioninclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 13 additions, 6 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment