Handle -no-shutdown correctly
commit54a3eeafb099a87da1aff632b7e5db985741efbd
authorDaniel Gollub <gollub@b1-systems.de>
Tue, 19 May 2009 21:28:31 +0000 (19 23:28 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 20 May 2009 14:32:17 +0000 (20 17:32 +0300)
treefce41e7db4cb0ebdee021d84cd2eab01dac1d470
parent80667c2afee44bccea14d4526ceb4289c9fd18d1
Handle -no-shutdown correctly

Plain QEMU has the parameter -no-shutdown. This avoids termination of the qemu
process when VM got shutdown (e.g. to still use the QEMU-Monitor with stopped
VM). This parameter has no effect on qemu-kvm, today.

This patch introduces identical handling, as in qemu, of -no-shutdown for
qemu-kvm:

 * termination of qemu-kvm process on a VM shutdown get only avoided once
 * second shutdown of VM cause termination of qemu-kvm (like in qemu)

Signed-off-by: Daniel Gollub <gollub@b1-systems.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm.c
sysemu.h
vl.c