qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QMP events and the migration of halted machines
@ 2015-02-24 16:31 John Snow
  2015-02-24 16:39 ` John Snow
  0 siblings, 1 reply; 2+ messages in thread
From: John Snow @ 2015-02-24 16:31 UTC (permalink / raw)
  To: quint >> juan quin >> Juan Jose Quintela Carreira
  Cc: Dr. David Alan Gilbert, qemu-devel

In writing migration tests for qtest and ahci-test, I ran into an 
interesting pattern and wanted to know if this was expected:

1) Using blkdebug, I inject an error to execute once for the first flush 
request.
2) Executing the command, I get a STOP event.
3) I migrate the VM, and poll the source until it reports that it is 
completed.

So far, so good.

4) I receive a RESUME event from the destination, even though the 
machine wasn't started.
5) Naively, my script assumes the machine is stopped and sends 
{"execute": "cont"} to resume execution from the failed flush command.
6) I then see BLOCK_IO_ERROR, STOP, and then RESUME events in order.
7) The command appears to then execute and finish successfully.

Is this the expected flow? I perhaps naively assumed that the machine 
would stay stopped during migration and wait for me to resume it, and 
not what appears to happen, which is resume automatically and then stop.

This flow seems *very* odd to me.

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

* Re: [Qemu-devel] QMP events and the migration of halted machines
  2015-02-24 16:31 [Qemu-devel] QMP events and the migration of halted machines John Snow
@ 2015-02-24 16:39 ` John Snow
  0 siblings, 0 replies; 2+ messages in thread
From: John Snow @ 2015-02-24 16:39 UTC (permalink / raw)
  To: quint >> juan quin >> Juan Jose Quintela Carreira
  Cc: Dr. David Alan Gilbert, qemu-devel



On 02/24/2015 11:31 AM, John Snow wrote:
> In writing migration tests for qtest and ahci-test, I ran into an
> interesting pattern and wanted to know if this was expected:
>
> 1) Using blkdebug, I inject an error to execute once for the first flush
> request.
> 2) Executing the command, I get a STOP event.
> 3) I migrate the VM, and poll the source until it reports that it is
> completed.
>
> So far, so good.
>
> 4) I receive a RESUME event from the destination, even though the
> machine wasn't started.

Small correction: BLOCK_IO_ERROR and STOP occur here.

> 5) Naively, my script assumes the machine is stopped and sends
> {"execute": "cont"} to resume execution from the failed flush command.
> 6) I then see BLOCK_IO_ERROR, STOP, and then RESUME events in order.

...and not here.

> 7) The command appears to then execute and finish successfully.
>
> Is this the expected flow? I perhaps naively assumed that the machine
> would stay stopped during migration and wait for me to resume it, and
> not what appears to happen, which is resume automatically and then stop.
>
> This flow seems *very* odd to me.
>

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

end of thread, other threads:[~2015-02-24 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 16:31 [Qemu-devel] QMP events and the migration of halted machines John Snow
2015-02-24 16:39 ` John Snow

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).