projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9d61dc
)
KVM: VMX: clear vmx_x86_ops.sync_pir_to_irr if APICv is disabled
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 30 Nov 2021 12:36:41 +0000
(07:36 -0500)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 30 Nov 2021 12:40:47 +0000
(07:40 -0500)
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>
arch/x86/kvm/vmx/vmx.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx/vmx.c
b/arch/x86/kvm/vmx/vmx.c
index 1fadec8cbf96d8dfc4702ab32a60d08b339cc03e..f90448809690930b91fcd9e9a15f4bb978519613 100644
(file)
--- a/
arch/x86/kvm/vmx/vmx.c
+++ b/
arch/x86/kvm/vmx/vmx.c
@@
-7777,10
+7777,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;