qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] backup bug or question
@ 2019-08-09 13:18 Vladimir Sementsov-Ogievskiy
  2019-08-09 20:13 ` John Snow
  2019-08-12 13:23 ` Kevin Wolf
  0 siblings, 2 replies; 9+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2019-08-09 13:18 UTC (permalink / raw)
  To: qemu block, qemu-devel, Kevin Wolf, Max Reitz, John Snow

Hi!

Hmm, hacking around backup I have a question:

What prevents guest write request after job_start but before setting
write notifier?

code path:

qmp_drive_backup or transaction with backup

    job_start
       aio_co_enter(job_co_entry) /* may only schedule execution, isn't it ? */

....

job_co_entry
    job_pause_point() /* it definitely yields, isn't it bad? */
    job->driver->run() /* backup_run */

----

backup_run()
    bdrv_add_before_write_notifier()

...

And what guarantees we give to the user? Is it guaranteed that write notifier is
set when qmp command returns?

And I guess, if we start several backups in a transaction it should be guaranteed
that the set of backups is consistent and correspond to one point in time...

-- 
Best regards,
Vladimir

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

end of thread, other threads:[~2019-08-12 18:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-09 13:18 [Qemu-devel] backup bug or question Vladimir Sementsov-Ogievskiy
2019-08-09 20:13 ` John Snow
2019-08-10 11:17   ` Vladimir Sementsov-Ogievskiy
2019-08-12 17:46     ` John Snow
2019-08-12 17:59       ` Vladimir Sementsov-Ogievskiy
2019-08-12 13:23 ` Kevin Wolf
2019-08-12 16:09   ` Vladimir Sementsov-Ogievskiy
2019-08-12 16:49     ` Kevin Wolf
2019-08-12 17:02       ` Vladimir Sementsov-Ogievskiy

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