]> xenbits.xensource.com Git - libvirt.git/commit
conf: Move VFIO AP validation from post parse to QEMU validation code
authorErik Skultety <eskultet@redhat.com>
Mon, 12 Nov 2018 11:24:42 +0000 (12:24 +0100)
committerErik Skultety <eskultet@redhat.com>
Tue, 13 Nov 2018 11:42:16 +0000 (12:42 +0100)
commit25dde373730545894f60ce5b1497f19d61714c69
treebd38760f73d5c8ccc824c4a8b62a18a5ad827965
parent208d6e6f5aafa102d04ce300c6338b0736bb52df
conf: Move VFIO AP validation from post parse to QEMU validation code

VFIO AP has a limitation on a single device per domain, however, when
commit 11708641 added the support for vfio-ap, check for this limitation
was performed as part of the post parse code. Generally, checks like that
should be performed within the driver's validation callback to eliminate
any slight chance of failing in post parse, which could potentially
result in the domain XML config vanishing.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
src/conf/domain_conf.c
src/qemu/qemu_domain.c