]> xenbits.xensource.com Git - libvirt.git/commit
conf: Simplify IOMMU device validation
authorAndrea Bolognani <abologna@redhat.com>
Mon, 8 Aug 2022 15:38:42 +0000 (17:38 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 9 Aug 2022 08:10:08 +0000 (10:10 +0200)
commitd9afab48af981a669bee7567458e26f3148aa216
tree8bdeba0ca52e63a334906ae93a82a014f51c1515
parent2dd3ec6f57eba6673eca5d965ca79bafd8b83d59
conf: Simplify IOMMU device validation

Instead of duplicating the list of attributes that are not
allowed for some of the IOMMU models, use two separate switch
statements: one for the attributes and one for the address.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_validate.c