-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-9.4
-
None
-
Low
-
rhel-sst-virtualization
-
ssg_virtualization
-
5
-
QE ack, Dev ack
-
False
-
-
None
-
None
-
None
-
None
-
-
10.10.0
-
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:
- 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:
- 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/>
- is blocked by
-
RHEL-50574 Rebase libvirt in RHEL-9.6.0
- In Progress
- links to