mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
KVM: VMX: clear vmx_x86_ops.sync_pir_to_irr if APICv is disabled
There is nothing to synchronize if APICv is disabled, since neither other vCPUs nor assigned devices can set PIR.ON. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c9d61dcb0b
commit
e90e51d5f0
1 changed files with 2 additions and 2 deletions
|
@ -7777,10 +7777,10 @@ static __init int hardware_setup(void)
|
||||||
ple_window_shrink = 0;
|
ple_window_shrink = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cpu_has_vmx_apicv()) {
|
if (!cpu_has_vmx_apicv())
|
||||||
enable_apicv = 0;
|
enable_apicv = 0;
|
||||||
|
if (!enable_apicv)
|
||||||
vmx_x86_ops.sync_pir_to_irr = NULL;
|
vmx_x86_ops.sync_pir_to_irr = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
if (cpu_has_vmx_tsc_scaling()) {
|
if (cpu_has_vmx_tsc_scaling()) {
|
||||||
kvm_has_tsc_control = true;
|
kvm_has_tsc_control = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue