]> xenbits.xensource.com Git - qemu-xen.git/commit
target/i386: kvm: Add support for save and restore nested state
authorLiran Alon <liran.alon@oracle.com>
Wed, 19 Jun 2019 16:21:38 +0000 (19:21 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Jun 2019 11:23:47 +0000 (13:23 +0200)
commitebbfef2f34cfc749c045a4569dedb4f748ec024a
treecc5e7b2744e8878a8fac08dd91f5b58820bdcf50
parent6cfd7639329062797c04ec79adb1023a8ba2fcb4
target/i386: kvm: Add support for save and restore nested state

Kernel commit 8fcc4b5923af ("kvm: nVMX: Introduce KVM_CAP_NESTED_STATE")
introduced new IOCTLs to extract and restore vCPU state related to
Intel VMX & AMD SVM.

Utilize these IOCTLs to add support for migration of VMs which are
running nested hypervisors.

Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
Reviewed-by: Maran Wilson <maran.wilson@oracle.com>
Tested-by: Maran Wilson <maran.wilson@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Message-Id: <20190619162140.133674-9-liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c
include/sysemu/kvm.h
target/i386/cpu.h
target/i386/kvm.c
target/i386/machine.c