diff options
author | Marc Zyngier <[email protected]> | 2023-07-03 17:35:48 +0100 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-07-11 19:30:14 +0000 |
commit | 970dee09b230895fe2230d2b32ad05a2826818c6 (patch) | |
tree | 82457e664e3463e2dfc9321b054ab8e8f332cf7b /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | fa729bc7c9c8c17a2481358c841ef8ca920485d3 (diff) |
KVM: arm64: Disable preemption in kvm_arch_hardware_enable()
Since 0bf50497f03b ("KVM: Drop kvm_count_lock and instead protect
kvm_usage_count with kvm_lock"), hotplugging back a CPU whilst
a guest is running results in a number of ugly splats as most
of this code expects to run with preemption disabled, which isn't
the case anymore.
While the context is preemptable, it isn't migratable, which should
be enough. But we have plenty of preemptible() checks all over
the place, and our per-CPU accessors also disable preemption.
Since this affects released versions, let's do the easy fix first,
disabling preemption in kvm_arch_hardware_enable(). We can always
revisit this with a more invasive fix in the future.
Fixes: 0bf50497f03b ("KVM: Drop kvm_count_lock and instead protect kvm_usage_count with kvm_lock")
Reported-by: Kristina Martsenko <[email protected]>
Tested-by: Kristina Martsenko <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected] # v6.3, v6.4
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions