]> git.proxmox.com Git - qemu.git/commit - hw/scsi-disk.c
block: Emit BLOCK_IO_ERROR before vm_stop() call
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 25 Feb 2010 15:06:58 +0000 (12:06 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 8 Mar 2010 17:30:01 +0000 (11:30 -0600)
commit554a310bfe319a56de9d768efdb252115129d2a5
treeb96781b970241a3a47dfed717fec7c303d61ed47
parent93d67ee69d6104976961fbc98654872de28a5c96
block: Emit BLOCK_IO_ERROR before vm_stop() call

The next commit will move the STOP event into do_vm_stop(), to
have the expected event sequence we need to emit the I/O error
event before calling vm_stop().

The expected sequence is:

{ "event": "BLOCK_IO_ERROR" [...] }
{ "event": "STOP" }

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ide/core.c
hw/scsi-disk.c
hw/virtio-blk.c