diff --git a/config/tests/guest/libvirt/pci_passthrough.cfg b/config/tests/guest/libvirt/pci_passthrough.cfg index 5f59324f..cd79c910 100644 --- a/config/tests/guest/libvirt/pci_passthrough.cfg +++ b/config/tests/guest/libvirt/pci_passthrough.cfg @@ -90,5 +90,21 @@ variants: - pci_passthrough_eeh: only libvirt_pci_passthrough_eeh + - negative_migration_with_passthrough: + only libvirt_pci_passthrough.negative_migration_with_passthrough + # Negative test: live migration of a guest that has a VFIO + # passthrough device must fail, because the device state can not be + # migrated. The test passes only if the migration fails with the + # expected error. The guest stays on the source host. + # IP address of any reachable destination host (the migration is + # blocked, so nothing is actually moved). Must be reachable with + # passwordless ssh as qemu+ssh:///system. + # Eg: 10.0.0.2 + migrate_dest_host = "ENTER.YOUR.DEST.HOST.IP" + # Options passed to virsh migrate + negative_migrate_options = "--live --p2p --tunnelled" + # Error expected from libvirt when the migration is refused + negative_migrate_expected_err = "migration is not supported in kernel" + - guest_remove: only remove_guest.without_disk