]> xenbits.xensource.com Git - libvirt.git/commit
conf: Check IOMMU for unsupported attributes
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Jul 2022 09:33:02 +0000 (11:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Aug 2022 14:59:55 +0000 (16:59 +0200)
commitc5bc752666ab0fc9799e7b9139e1035fe279e97f
treeeb129ecd1c8d4e5093ab54ccced74de22656a61b
parent79ff7b2d8e3d7c580f57ba5d3d58a0846484a45e
conf: Check IOMMU for unsupported attributes

Currently, it's possible to pass various attributes to an IOMMU's
<driver/> element hoping that we enable them in underlying
hypervisor. However, depending on the IOMMU model, some of these
attributes can't be enabled and are simply ignored. This is
suboptimal and we should reject such configuration in the
validate phase.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2101633
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_validate.c