Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migration: add case about migrate vm which have vmx-* cpu features #6139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cliping
Copy link
Contributor

@cliping cliping commented Jan 17, 2025

XXX-303279 - [VM migration] migrate vm which have vmx-* cpu features

Test result:
(1/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.with_xml.p2p: STARTED
(1/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.with_xml.p2p: PASS (203.71 s)
(2/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.with_xml.non_p2p: STARTED
(2/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.with_xml.non_p2p: PASS (204.27 s)
(3/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.without_xml.p2p: STARTED
(3/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.without_xml.p2p: PASS (203.87 s)
(4/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.without_xml.non_p2p: STARTED
(4/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.host_model.without_xml.non_p2p: PASS (204.14 s)
(5/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.with_xml.p2p: STARTED
(5/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.with_xml.p2p: PASS (204.53 s)
(6/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.with_xml.non_p2p: STARTED
(6/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.with_xml.non_p2p: PASS (205.23 s)
(7/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.without_xml.p2p: STARTED
(7/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.without_xml.p2p: PASS (204.59 s)
(8/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.without_xml.non_p2p: STARTED
(8/8) type_specific.io-github-autotest-libvirt.migration.migration_misc.migration_with_vmx_cpu_features.custom.without_xml.non_p2p: PASS (205.30 s)

@cliping cliping force-pushed the vmx branch 2 times, most recently from a10cc7b to 5951bf9 Compare January 17, 2025 03:58
XXX-303279 - [VM migration] migrate vm which have vmx-* cpu features

Signed-off-by: lcheng <[email protected]>
cmd = "virsh domcapabilities |grep vmx- |wc -l"
ret = process.run(cmd, shell=True).stdout_text.strip()
if int(ret) == 0:
test.cancel("Please use the host with vmx-* cpu features to test.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't understand why we will have an explicit test for KVM on Intel migrations that is then canceled if run on a non-intel machine.

The test case is currently of Importance Medium in our system, so it looks like a nice to have. But in that case our existing migration tests already should cover this sufficiently. Not sure what I'm missing.

If this test case is really important enough to have this test script explicitly it should fail with test.error instead of being canceled which is more likely to be overlooked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants