OSDN Git Service

KVM: nVMX: Expose VMCS shadowing to L1 guest
authorLiran Alon <liran.alon@oracle.com>
Fri, 22 Jun 2018 23:35:11 +0000 (02:35 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:58:46 +0000 (17:58 +0200)
commit32c7acf044873c8782be45a03e46cf0ac579a459
tree36d21a3c1e0d611dc55a4b44061631acc7590368
parenta7cde481b6e8506ee147cf5031ad1917fcc8bf9b
KVM: nVMX: Expose VMCS shadowing to L1 guest

Expose VMCS shadowing to L1 as a VMX capability of the virtual CPU,
whether or not VMCS shadowing is supported by the physical CPU.
(VMCS shadowing emulation)

Shadowed VMREADs and VMWRITEs from L2 are handled by L0, without a
VM-exit to L1.

Signed-off-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c