Commit c93de59d authored by Radim Krčmář's avatar Radim Krčmář Committed by Paolo Bonzini

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 49bd29ba
...@@ -6461,9 +6461,6 @@ static __init int hardware_setup(void) ...@@ -6461,9 +6461,6 @@ static __init int hardware_setup(void)
for (msr = 0x800; msr <= 0x8ff; msr++) for (msr = 0x800; msr <= 0x8ff; msr++)
vmx_disable_intercept_msr_read_x2apic(msr); vmx_disable_intercept_msr_read_x2apic(msr);
/* According SDM, in x2apic mode, the whole id reg is used. But in
* KVM, it only use the highest eight bits. Need to intercept it */
vmx_enable_intercept_msr_read_x2apic(0x802);
/* TMCCT */ /* TMCCT */
vmx_enable_intercept_msr_read_x2apic(0x839); vmx_enable_intercept_msr_read_x2apic(0x839);
/* TPR */ /* TPR */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment