KVM: nVMX: expose VPID capability to L1
authorWanpeng Li <wanpeng.li@hotmail.com>
Tue, 13 Oct 2015 16:18:37 +0000 (09:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Oct 2015 08:30:55 +0000 (10:30 +0200)
commit089d7b6ec5151ad06a2cd524bc0580d311b641ad
treee3766fbabdd8bba64f2363f969c61d22ea9ca524
parent5c614b3583e7b6dab0c86356fa36c2bcbb8322a0
KVM: nVMX: expose VPID capability to L1

Expose VPID capability to L1. For nested guests, we don't do anything
specific for single context invalidation. Hence, only advertise support
for global context invalidation. The major benefit of nested VPID comes
from having separate vpids when switching between L1 and L2, and also
when L2's vCPUs not sched in/out on L1.

Reviewed-by: Wincy Van <fanwenyi0529@gmail.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c