Skip to content

Commit e90e51d

Browse files
committed
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 <[email protected]>
1 parent c9d61dc commit e90e51d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7777,10 +7777,10 @@ static __init int hardware_setup(void)
77777777
ple_window_shrink = 0;
77787778
}
77797779

7780-
if (!cpu_has_vmx_apicv()) {
7780+
if (!cpu_has_vmx_apicv())
77817781
enable_apicv = 0;
7782+
if (!enable_apicv)
77827783
vmx_x86_ops.sync_pir_to_irr = NULL;
7783-
}
77847784

77857785
if (cpu_has_vmx_tsc_scaling()) {
77867786
kvm_has_tsc_control = true;

0 commit comments

Comments
 (0)