]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: nested TPR shadow/threshold emulation
authorWanpeng Li <wanpeng.li@linux.intel.com>
Thu, 21 Aug 2014 11:46:50 +0000 (19:46 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Aug 2014 12:02:48 +0000 (14:02 +0200)
commit92d39bbcb3eef6984d1f418d5cd3cb6d587f6b1f
tree2a63548b81b2c1d6bdfbe3c68b8b4c3989d5e700
parente71cf646ad53c2e2e6b07987e23ec591e9de2cf3
KVM: nVMX: nested TPR shadow/threshold emulation

This patch fix bug https://bugzilla.kernel.org/show_bug.cgi?id=61411

TPR shadow/threshold feature is important to speed up the Windows guest.
Besides, it is a must feature for certain VMM.

We map virtual APIC page address and TPR threshold from L1 VMCS. If
TPR_BELOW_THRESHOLD VM exit is triggered by L2 guest and L1 interested
in, we inject it into L1 VMM for handling.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
[Add PAGE_ALIGNED check, do not write useless virtual APIC page address
 if TPR shadowing is disabled. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c