Repository navigation
pci_passthrough: add negative_migration_with_passthrough variant! - #429
Open
Anushree-Mathur wants to merge 1 commit into
Open
Anushree-Mathur wants to merge 1 commit into
Anushree-Mathur wants to merge 1 commit into
Conversation
The tp-libvirt libvirt_pci_passthrough test gained a
negative_migration_with_passthrough variant. A guest with a VFIO
passthrough device cannot be live migrated, because the device state
cannot be transferred. The test starts a guest with the passthrough
device, attempts "virsh migrate" to another host, and passes only if the
migration fails with the expected error and the guest keeps running on
the source host.
Add a negative_migration_with_passthrough entry to pci_passthrough.cfg so
the new test is picked up when this suite is run. It selects
libvirt_pci_passthrough.negative_migration_with_passthrough and declares
the parameters the test reads:
migrate_dest_host IP address of a reachable destination
host, used as qemu+ssh://<host>/system.
System specific, so it is an
"ENTER.YOUR.DEST.HOST.IP" placeholder
with an example. The test cancels itself
while the placeholder is not replaced.
negative_migrate_options options passed to virsh migrate
("--live --p2p --tunnelled")
negative_migrate_expected_err error expected when the migration is
refused. libvirt reports "VFIO migration
init failed: migration is not supported
in kernel", so the match string is
"migration is not supported in kernel".
The variant is placed before guest_remove, since guest_remove deletes
the guest that the test needs.
Depends on the tp-libvirt change for the
negative_migration_with_passthrough test in libvirt_pci_passthrough.
Signed-off-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tp-libvirt libvirt_pci_passthrough test gained a negative_migration_with_passthrough variant. A guest with a VFIO passthrough device cannot be live migrated, because the device state cannot be transferred. The test starts a guest with the passthrough device, attempts "virsh migrate" to another host, and passes only if the migration fails with the expected error and the guest keeps running on the source host.
Add a negative_migration_with_passthrough entry to pci_passthrough.cfg so the new test is picked up when this suite is run. It selects libvirt_pci_passthrough.negative_migration_with_passthrough and declares the parameters the test reads:
migrate_dest_host IP address of a reachable destination
host, used as qemu+ssh:///system.
System specific, so it is an
"ENTER.YOUR.DEST.HOST.IP" placeholder
with an example. The test cancels itself
while the placeholder is not replaced.
negative_migrate_options options passed to virsh migrate
("--live --p2p --tunnelled")
negative_migrate_expected_err error expected when the migration is
refused. libvirt reports "VFIO migration
init failed: migration is not supported
in kernel", so the match string is
"migration is not supported in kernel".
The variant is placed before guest_remove, since guest_remove deletes the guest that the test needs.
Depends on the tp-libvirt change for the
negative_migration_with_passthrough test in libvirt_pci_passthrough
Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>