KVM: VMX: clear vmx_x86_ops.sync_pir_to_irr if APICv is disabled
Paolo Bonzini
maintainerPATCH 1/1 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]>
--- arch/x86/kvm/vmx/vmx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kvm/vmx/vmx.c +2 -2
@@ -7778,10 +7778,10 @@ static __init int hardware_setup(void) ple_window_shrink =0 ; } -if (!cpu_has_vmx_apicv ()) { +if (!cpu_has_vmx_apicv ()) enable_apicv =0 ; +if (!enable_apicv) vmx_x86_ops.sync_pir_to_irr =NULL ; - }if (cpu_has_vmx_tsc_scaling ()) { kvm_has_tsc_control = true;
Signature · 1 line
2.31.1
Quoted 5 lines · Paolo Bonzini
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]>---
Reviewed-by Sean Christopherson <[email protected]>
Maxim Levitsky
Reviewed-byQuoted 9 lines · Sean Christopherson
Quoted 5 lines · Paolo Bonzini
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]>---
Reviewed-by Sean Christopherson <[email protected]>
Reviewed-by Maxim Levitsky <[email protected]>
Best regards,
Maxim Levitsky