Commit 2c106f2
KVM: Ensure CPU is stable during low level hardware enable/disable
Use the non-raw smp_processor_id() in the low hardware enable/disable
helpers as KVM absolutely relies on the CPU being stable, e.g. KVM would
end up with incorrect state if the task were migrated between accessing
cpus_hardware_enabled and actually enabling/disabling hardware.
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent e4aa7f8 commit 2c106f2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5097 | 5097 | | |
5098 | 5098 | | |
5099 | 5099 | | |
5100 | | - | |
| 5100 | + | |
5101 | 5101 | | |
5102 | 5102 | | |
5103 | 5103 | | |
| |||
5139 | 5139 | | |
5140 | 5140 | | |
5141 | 5141 | | |
5142 | | - | |
| 5142 | + | |
5143 | 5143 | | |
5144 | 5144 | | |
5145 | 5145 | | |
| |||
0 commit comments