Re: [PATCH 1/11] QEMU/KVM: Fix deadlocks in monitor and debugger

Avi Kivity
2008-05-27T09:36:53Z

Jan Kiszka wrote:
> Some monitor commands as well as the vm_stop() issued by the gdbstub on
> external interruption so far deadlock on vcpu locks in the kernel. Patch
> below resolves the issue by temporarily or permanently stopping all vcpu
> threads before issuing the related KVM IOCTLs. It enables, e.g., to
> break into guest code spinning in the vcpu and to use things like "info
> cpus" in the monitor.
>

I implemented the alternative on_vcpu() approach for this (similar to
smp_call_function_single in the kernel) which solves the livelock
without resorting to stopping the VM.

--
error compiling committee.c: too many arguments to function