<div dir="ltr">yes, I got your point, thanks very much Eric.  <div><br><div>If I want to take a distributed snapshot, which need pause all the VMs and then take snapshot, how can I control the pause for all the VMs?   </div>

<div><br></div><div>Is there only way that I turn to freeze/thaw functions?  </div><div><br></div><div>and freeze/thaw only for file systems, not for the whole guest, am I right?    Thanks a lot!</div></div></div><div class="gmail_extra">

<br clear="all"><div><div dir="ltr">Best,<div>Yuanzhen</div></div></div>
<br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 11:35 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On 08/06/2014 08:36 AM, Yuanzhen Gu wrote:<br>
<br>
[please don't top-post on technical lists]<br>
<div class=""><br>
> Thanks very much Eric!  This is exactly what I guessed, I just wondering<br>
> where I could find this piece of code and control the the pause time of<br>
> guest, while the snapshot being taken?  thanks !<br>
<br>
</div>Actually, for new enough qemu (one with the 'transaction' QMP command),<br>
or for a guest where only one disk is being snapshotted, there is no<br>
pause required.  See qemuDomainSnapshotCreateDiskActiveExternal in<br>
src/qemu/qemu_driver.c.  When a pause is required, it is only for the<br>
fraction of a second required to issue a followup qemu QMP command to<br>
resume the guest, so there is no need for a knob to control the pause<br>
time (it is as already as fast as possible).<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</div></div></blockquote></div><br></div>