Encountered a segfault while exiting because kvm_flush_coalesced_mmio_buffer
was getting called after do_kvm_destroy_vcpu unmapped cpu->kvm_run.
kvm_state->coalesced_mmio_ring is an offset from cpu->kvm_run so it needs to
be set to NULL after kvm_run is unmapped to avoid getting dereferenced
by kvm_flush_coalesced_mmio_buffer.
Sid Manning (1):
accel/kvm: set coalesced_mmio_ring to NULL after kvm_run is unmapped
accel/kvm/kvm-all.c | 2 ++
1 file changed, 2 insertions(+)
--
2.34.1