Bug 1891416 - xml validate should fail when config 'ramfb' video with pci or dimm address
Summary: xml validate should fail when config 'ramfb' video with pci or dimm address
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.3
Assignee: khanicov
QA Contact: Lili Zhu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-26 08:11 UTC by Lili Zhu
Modified: 2021-11-16 08:02 UTC (History)
10 users (show)

Fixed In Version: libvirt-7.3.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 07:51:01 UTC
Type: Bug
Target Upstream Version: 7.2.0
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4684 0 None None None 2021-11-16 07:51:22 UTC

Description Lili Zhu 2020-10-26 08:11:09 UTC
Description of problem:
xml validate should fail when config 'ramfb' video with pci or dimm address

Version-Release number of selected component (if applicable):
libvirt-daemon-6.6.0-7.module+el8.3.0+8424+5ea525c5.x86_64

How reproducible:
100%

Steps to Reproduce:
1. prepare a guest xml containing 'ramfb' video with pci or dimm address
# cat avocado-vt-vm1.xml 
...
   <video>
    <model type='ramfb' heads='1' primary='yes'/>
      <address type='dimm' slot='1'/>
    </video>
...

or 
...
  <video>
    <model type='ramfb' heads='1' primary='yes'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
  </video>
...


2. try to validate the guest xml
# virt-xml-validate avocado-vt-vm1.xml 
avocado-vt-vm1.xml validates


Expected results:
validate the above guest xml should fail, since address' is not supported for 'ramfb' video devices

Additional info:

Comment 1 khanicov 2021-03-05 12:04:00 UTC
Patch proposed on the list:
https://listman.redhat.com/archives/libvir-list/2021-March/msg00289.html

Comment 2 khanicov 2021-03-11 10:44:07 UTC
Merged upstream as:

f11f32326f XML validate that 'ramfb' has no address

v7.1.0-169-gf11f32326f

Comment 3 Michal Privoznik 2021-03-11 10:45:36 UTC
Moving to POST per comment 2.

Comment 7 Lili Zhu 2021-05-30 09:01:20 UTC
Verify this bug with:
libvirt-7.3.0-1.module+el8.5.0+11004+f4810536.x86_64

As the testing result matches with the expected result in discription,
mark the bug as verified.

Comment 9 errata-xmlrpc 2021-11-16 07:51:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (virt:av bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4684


Note You need to log in before you can comment on or make changes to this bug.