Bug 1416461

Summary: RFE: Use qemu's --only-migratable option
Product: [Community] Virtualization Tools Reporter: Dr. David Alan Gilbert <dgilbert>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: kchamart, libvirt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dr. David Alan Gilbert 2017-01-25 14:50:46 UTC
Description of problem:
As of this morning QEMU now has an option '--only-migratable' where if you try and add a device that's not migratable it errors, e.g.

$ ./x86_64-softmmu/qemu-system-x86_64 --only-migratable -device usb-audio
qemu-system-x86_64: -device usb-audio: Device usb-audio is not migratable, but --only-migratable was specified


$ ./x86_64-softmmu/qemu-system-x86_64 --only-migratable -device virtio-vga -display gtk,gl=on
qemu-system-x86_64: -device virtio-vga: disallowing migration blocker (--only_migratable) for: virgl is not yet migratable

there are also cases where QEMU will stop a device moving into a non-migratable state at run-time when that's enabled.

The idea is that this stops someone accidentally creating an important VM and running it for a while and then only later discovering that they can't migrate it.