aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2016-07-12 16:09:24 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-07-14 03:03:55 -0400
commitc93de59dcd9bef0044e615493ab52d3958243d87 (patch)
tree68e0cf248a84ead2b88d8f02ab4d3a91689697b2 /arch/x86/kvm
parent49bd29ba1dbd57b029f69cd9afb335a8f564f32f (diff)
KVM: VMX: optimize APIC ID read with APICv
The register is in hardware-compatible format now, so there is not need to intercept. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 729e5f689097..7bdd6b1a2373 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -6461,9 +6461,6 @@ static __init int hardware_setup(void)
6461 for (msr = 0x800; msr <= 0x8ff; msr++) 6461 for (msr = 0x800; msr <= 0x8ff; msr++)
6462 vmx_disable_intercept_msr_read_x2apic(msr); 6462 vmx_disable_intercept_msr_read_x2apic(msr);
6463 6463
6464 /* According SDM, in x2apic mode, the whole id reg is used. But in
6465 * KVM, it only use the highest eight bits. Need to intercept it */
6466 vmx_enable_intercept_msr_read_x2apic(0x802);
6467 /* TMCCT */ 6464 /* TMCCT */
6468 vmx_enable_intercept_msr_read_x2apic(0x839); 6465 vmx_enable_intercept_msr_read_x2apic(0x839);
6469 /* TPR */ 6466 /* TPR */