diff options
| author | Paolo Bonzini <[email protected]> | 2022-06-15 11:05:06 -0400 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-24 12:53:37 -0400 |
| commit | 35ab3b77a0ae76246dd2666d4f8190c824392fb4 (patch) | |
| tree | 6f17260e675b1f6c80ee64fa7358293c6c071e6c /tools/perf/scripts/python | |
| parent | 0f87ac234d98c68e4b2bfde6a8bcdeef3d3f54b7 (diff) | |
KVM: x86: drop PIO from unregistered devices
KVM protects the device list with SRCU, and therefore different calls
to kvm_io_bus_read()/kvm_io_bus_write() can very well see different
incarnations of kvm->buses. If userspace unregisters a device while
vCPUs are running there is no well-defined result. This patch applies
a safe fallback by returning early from emulator_pio_in_out(). This
corresponds to returning zeroes from IN, and dropping the writes on
the floor for OUT.
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions