[PATCH for 7.10] qemu: Fix validation of PCI option rom settings on hotplug

Ján Tomko jtomko at redhat.com
Thu Nov 25 16:08:51 UTC 2021


On a Thursday in 2021, Peter Krempa wrote:
>Commit 24be92b8e moved the option rom settings validation code to the
>validation callbacks, but that doesn't work properly with device hotplug
>as we assign addresses only after parsing the whole XML. The check is
>too strict for that and caused failures when hotplugging devices such
>as:
>
> <interface type='network'>
>   <source network='default'/>
>   <model type='virtio'/>
>   <rom enabled='no'/>
> </interface>
>
>This patch relaxes the check in the validation callback to accept also
>_NONE and _UNASSIGNED address types and returns the check to
>'qemuBuildRomProps' so that we preserve the full validation as we've
>used to.
>
>Fixes: 24be92b8e38762e9ba13e
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2021437
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_command.c  | 6 ++++++
> src/qemu/qemu_validate.c | 4 +++-
> 2 files changed, 9 insertions(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211125/a11bf8c9/attachment-0001.sig>


More information about the libvir-list mailing list