Skip to content

add support for new hyperv tag#4102

Merged
chloerh merged 1 commit intoavocado-framework:masterfrom
nanli1:add_support_for_new_hyperv_tag
Apr 16, 2025
Merged

add support for new hyperv tag#4102
chloerh merged 1 commit intoavocado-framework:masterfrom
nanli1:add_support_for_new_hyperv_tag

Conversation

@nanli1
Copy link
Copy Markdown
Contributor

@nanli1 nanli1 commented Apr 8, 2025

Start a guest with emsr_bitmap, xmm_input, tlbflush-direct and tlbflush-ext
Signed-off-by: nanli nanli@redhat.com
For autotest/tp-libvirt#6267

The showing xml

<hyperv mode="custom">
   <tlbflush state="on">
     <direct state="on"/>
     <extended state="on"/>
   </tlbflush>
 </hyperv>
avocado run --vt-type libvirt --vt-machine-type q35 vm_features

(01/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.features_in_domcapabilities: STARTED
(01/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.features_in_domcapabilities: PASS (22.22 s)
(02/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.tlbflush: STARTED
(02/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.tlbflush: PASS (21.91 s)
(03/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.tlbflush_direct_extended: STARTED
(03/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.tlbflush_direct_extended: PASS (21.90 s)
(04/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.emsr_bitmap: STARTED
(04/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.emsr_bitmap: PASS (22.22 s)
(05/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.xmm_input: STARTED
(05/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.xmm_input: PASS (22.16 s)
(06/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.frequencies: STARTED
(06/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.frequencies: PASS (21.99 s)
(07/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.reenlightenment: STARTED
(07/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.reenlightenment: PASS (22.00 s)
(08/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.relaxed.enable: STARTED
(08/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.relaxed.enable: PASS (21.97 s)
(09/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.relaxed.disable: STARTED
(09/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.hyperv.relaxed.disable: PASS (21.95 s)
(10/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pmu.enable: STARTED
(10/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pmu.enable: PASS (21.95 s)
(11/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pmu.disable: STARTED
(11/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pmu.disable: PASS (22.04 s)
(12/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pvspinlock.enable: STARTED
(12/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pvspinlock.enable: PASS (44.48 s)
(13/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pvspinlock.disable: STARTED
(13/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.pvspinlock.disable: PASS (21.99 s)
(14/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_hidden.enable: STARTED
(14/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_hidden.enable: PASS (43.19 s)
(15/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_hidden.disable: STARTED
(15/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_hidden.disable: PASS (23.37 s)
(16/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_poll_control.enable: STARTED
(16/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_poll_control.enable: PASS (21.94 s)
(17/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_poll_control.disable: STARTED
(17/18) type_specific.io-github-autotest-libvirt.vm_features.positive_test.kvm_poll_control.disable: PASS (21.56 s)
(18/18) type_specific.io-github-autotest-libvirt.vm_features.negative_test.hyperv.features_not_in_domcapabilities: STARTED
(18/18) type_specific.io-github-autotest-libvirt.vm_features.negative_test.hyperv.features_not_in_domcapabilities: CANCEL: Can not find an unsupported hyperv feature on the host. (6.26 s)

   Start a guest with emsr_bitmap, xmm_input, tlbflush-direct and tlbflush-ext
Signed-off-by: nanli <nanli@redhat.com>
@nanli1 nanli1 force-pushed the add_support_for_new_hyperv_tag branch from 312eab5 to acb17cf Compare April 8, 2025 02:31
Copy link
Copy Markdown
Contributor

@cliping cliping left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@chloerh chloerh left a comment

Choose a reason for hiding this comment

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

The code looks good. Could you please add an example of xml?

@nanli1
Copy link
Copy Markdown
Contributor Author

nanli1 commented Apr 14, 2025

The code looks good. Could you please add an example of xml?

hi haijiao, Thanks your reminder. Added the xml in the description above.

@chloerh chloerh merged commit 53475e7 into avocado-framework:master Apr 16, 2025
50 checks passed
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.

3 participants