Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-24850

'virsh hypervisor-cpu-baseline --migratable' generates non-intersection features:<maxphysaddr/>

    • sst_virtualization
    • ssg_virtualization
    • 5
    • QE ack
    • False
    • Hide

      None

      Show
      None

      What were you trying to do that didn't work?

      'virsh hypervisor-cpu-baseline --migratable' generates non-intersection features:

      <maxphysaddr mode='passthrough' limit='46'/>

      This will cause the guest xml fail to validate on the host which does not support it.

      Please provide the package NVR for which bug is seen:

      Host A(rhel9.4):

      libvirt-10.0.0-2.el9.x86_64

      qemu-kvm-8.2.0-4.el9.x86_64

      Host B(rhel9.2):
      libvirt-9.0.0-10.3.el9_2.x86_64
      qemu-kvm-7.2.0-14.el9_2.7.x86_64

      How reproducible:
      100%

      Steps to reproduce
      1.Execute 'virsh domcapabilities' on host A and check whether contain 'Maxphysaddr' feature:
      #virsh domcapabilities > cpu-A.xml
      #cat cpu-A.xml | grep -i Maxphysaddr
      <maxphysaddr mode='passthrough' limit='46'/>

      2.Execute 'virsh domcapabilities' on host B and check whether contain 'Maxphysaddr' feature:
      #virsh domcapabilities > cpu-B.xml
      #cat cpu-B.xml | grep -i Maxphysaddr
      (no output)

      3.Merge the above two files into one file(cpu.xml) and then execute 'virsh hypervisor-cpu-baseline cpu.xml --migratable' on host A:

      1. virsh hypervisor-cpu-baseline cpu.xml --migratable 
        <cpu mode='custom' match='exact'>
          <model fallback='forbid'>Broadwell-noTSX-IBRS</model>
          <vendor>Intel</vendor>
          **<maxphysaddr mode='passthrough' limit='46'/>**
          <feature policy='require' name='vme'/>
          <feature policy='require' name='ss'/>
         ...
        </cpu>

      4.Edit the guest with cpu settings as step 3's output:

      1. virsh edit test
        error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
        Extra element cpu in interleave
        Element domain failed to validate content

      Failed. Try again? [y,n,i,f,?]

      Expected results:
      Should not generate features can not validate on one of the host.

      Actual results
      'virsh hypervisor-cpu-baseline --migratable' generates non-intersection features:<maxphysaddr/> 

            jdenemar@redhat.com Jiri Denemark
            rhn-support-yafu Yan Fu
            Jiri Denemark Jiri Denemark
            Han Han Han Han
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: