]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Forbid internal snapshot with passthrough devices
authorShanzhi Yu <shyu@redhat.com>
Wed, 3 Dec 2014 11:12:35 +0000 (19:12 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 5 Dec 2014 10:08:45 +0000 (11:08 +0100)
commitd1e460136a8ad1ce7717d2d75cd878812f63f1bb
tree8e2356388782d56ac12b9ee8b0f31f82b739bd3c
parent3b31cbc5581a1c5997658c27fae080ca13fb1ade
qemu: snapshot: Forbid internal snapshot with passthrough devices

When attempting to create internal system checkpoint with a passthrough
device qemu will report the following error:

error: operation failed: Error -22 while writing VM

This patch calls the function to check if migration is possible with
given VM and thus improves the error to:

error: Requested operation is not valid: domain has assigned non-USB host devices

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=874418#c19
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c