Proper vm_stop on debug events
commitefb53d90dbca8a42e8679dd470120d454115bdeb
authorJan Kiszka <jan.kiszka@web.de>
Mon, 26 May 2008 22:09:48 +0000 (27 00:09 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 27 May 2008 09:47:15 +0000 (27 12:47 +0300)
tree53635f0aec9758648cf3310548f57cf3fd488ba7
parent7c50d245b17c7fcf1a553bc3f13c92b9a061b997
Proper vm_stop on debug events

When a vcpu exits after hitting a debug exception, we have to invoke
vm_stop(EXCP_DEBUG). But this has to take place over the io-thread.

This patch introduces kvm_debug_stop_requested to signal this event, and
it takes care that the interrupted vcpu itself goes immediately into
stop state.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu-kvm.c