qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] IDE and live migration fun
@ 2011-06-09 13:15 Kevin Wolf
  2011-06-09 13:15 ` [Qemu-devel] [PATCH 1/3] ide: Split error status from status register Kevin Wolf
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kevin Wolf @ 2011-06-09 13:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pbonzini, stefanha, armbru, quintela

Patch 1 describes the real problem that I was going to solve. While fixing
this, I stumbled across some more migration problems that are included in this
series. Some refactoring is still left to do after this, but I'd prefer to
keep this series with the hard stuff short.

This is the test case that I was using:

$ cat blkdebug.conf
[inject-error]
state = "2"
event = "read_aio"
errno = "7"
immediately = "off"
once = "on"

[set-state]
state = "1"
event = "read_aio"
new_state = "2"

[set-state]
state = "2"
event = "read_aio"
new_state = "3"

$ x86_64-softmmu/qemu-system-x86_64 -drive file=blkdebug:blkdebug.conf:disk.qcow2,rerror=stop,werror=stop -incoming tcp::1028
$ x86_64-softmmu/qemu-system-x86_64 -drive file=blkdebug:blkdebug.conf:disk.qcow2,rerror=stop,werror=stop
(qemu) migrate tcp::1028

Please note that you need to use a qcow2 image, or the blkdebug events won't be
triggered. Expected result: The very first read from the disk (BIOS reading
the MBR) fails and stops the VM. I migrate while the VM is stopped, so that the
request is queued for resubmission. After continuing, the VM should work just
as normal.

Kevin Wolf (3):
  ide: Split error status from status register
  ide: Fix ide_drive_pio_state_needed()
  ide: Add forgotten VMSTATE_END_OF_LIST in subsection

 hw/ide/core.c     |   32 +++++++++++++++++++++-
 hw/ide/internal.h |    8 ++++++
 hw/ide/pci.c      |   73 +++++++++++++++++++++++++++++++++++++++++++++++-----
 hw/ide/pci.h      |    4 +++
 4 files changed, 108 insertions(+), 9 deletions(-)

-- 
1.7.5.2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-09 14:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 13:15 [Qemu-devel] [PATCH 0/3] IDE and live migration fun Kevin Wolf
2011-06-09 13:15 ` [Qemu-devel] [PATCH 1/3] ide: Split error status from status register Kevin Wolf
2011-06-09 13:27   ` Paolo Bonzini
2011-06-09 14:07     ` Kevin Wolf
2011-06-09 14:26       ` Paolo Bonzini
2011-06-09 13:15 ` [Qemu-devel] [PATCH 2/3] ide: Fix ide_drive_pio_state_needed() Kevin Wolf
2011-06-09 13:15 ` [Qemu-devel] [PATCH 3/3] ide: Add forgotten VMSTATE_END_OF_LIST in subsection Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).