diff options
author | Liran Alon <liran.alon@oracle.com> | 2019-06-19 19:21:38 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-21 13:23:47 +0200 |
commit | ebbfef2f34cfc749c045a4569dedb4f748ec024a (patch) | |
tree | cc5e7b2744e8878a8fac08dd91f5b58820bdcf50 /target/i386/cpu.h | |
parent | 6cfd7639329062797c04ec79adb1023a8ba2fcb4 (diff) | |
download | qemu-ebbfef2f34cfc749c045a4569dedb4f748ec024a.zip qemu-ebbfef2f34cfc749c045a4569dedb4f748ec024a.tar.gz qemu-ebbfef2f34cfc749c045a4569dedb4f748ec024a.tar.bz2 |
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>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r-- | target/i386/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h index bf0c9c2..17116ef 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -1360,6 +1360,9 @@ typedef struct CPUX86State { #if defined(CONFIG_KVM) || defined(CONFIG_HVF) void *xsave_buf; #endif +#if defined(CONFIG_KVM) + struct kvm_nested_state *nested_state; +#endif #if defined(CONFIG_HVF) HVFX86EmulatorState *hvf_emul; #endif |