diff options
author | Paolo Bonzini <[email protected]> | 2021-11-30 03:46:07 -0500 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-11-30 07:40:48 -0500 |
commit | 7cfc5c653b07782e7059527df8dc1e3143a7591e (patch) | |
tree | a5b87c639298951bfee39ba9e2b14f36d9dd6af8 /scripts/gdb/linux/device.py | |
parent | e90e51d5f01d2baae5dcce280866bbb96816e978 (diff) |
KVM: fix avic_set_running for preemptable kernels
avic_set_running() passes the current CPU to avic_vcpu_load(), albeit
via vcpu->cpu rather than smp_processor_id(). If the thread is migrated
while avic_set_running runs, the call to avic_vcpu_load() can use a stale
value for the processor id. Avoid this by blocking preemption over the
entire execution of avic_set_running().
Reported-by: Sean Christopherson <[email protected]>
Fixes: 8221c1370056 ("svm: Manage vcpu load/unload when enable AVIC")
Cc: [email protected]
Reviewed-by: Maxim Levitsky <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions