[libvirt] RFC: API additions for enhanced snapshot support

Eric Blake eblake at redhat.com
Thu Jul 7 19:34:07 UTC 2011

On 07/07/2011 03:13 AM, Stefan Hajnoczi wrote:
> On Wed, Jul 6, 2011 at 3:03 PM, Eric Blake <eblake at redhat.com> wrote:
>> In other words, it looks like we are stuck with updating XML to track
>> new file names any time we take a snapshot.
> Yes, but QEMU's snapshot_blkdev command takes a filename argument so
> at least you get to specify that new filename.

Well, the best thing (from libvirt's point of view) would be if
snapshot_blkdev took a single string argument, which is either a
/path/to/filename (and qemu does open()) or fd:name notation (to refer
to a previously-named fd passed via the getfd monitor command, so that
libvirt does open()).  This would make SELinux integration easier, as
one of the sVirt goals is to get to the point where we can use SELinux
to forbid qemu from open()ing files on NFS shares, while still
permitting all other operations on already-open fds passed in from libvirt.

Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110707/72daf6a6/attachment-0001.sig>

More information about the libvir-list mailing list