IO while taking a disks-only snapshot

Or Ozeri ORO at il.ibm.com
Mon Nov 21 20:48:40 UTC 2022


Hi,

Assume I'm running a VM with the qemu driver in libvirt, with multiple disks, with no guest agent.
Now if I take a disks-only snapshot of that active VM.
I see that under the hood, libvirt is issuing a qmp transaction with blockdev-snapshot command per each disk.
I also see that qmp_transaction in qemu is draining all disks IO before performing the transaction (calling bdrv_drain_all).
But once the transaction has started, is it possible that any incoming guest disk IO will be processed before the transaction completes?
Assuming that's not possible, how is this "block disk IO while running the transaction" is enforced?  Is it the call to GLOBAL_STATE_CODE() at the beginning of qemu's qmp_transaction(...)?

Thanks,
Or

I
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20221121/ba870c71/attachment.htm>


More information about the libvirt-users mailing list