]> xenbits.xensource.com Git - libvirt.git/commit
domain_conf: Validate redirdev after parsing
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Jun 2016 06:35:45 +0000 (08:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 17 Jun 2016 16:12:43 +0000 (18:12 +0200)
commit9f20b3b45eb8fdffcc5cce805f2b9d03680f5c7b
tree5d804f1d141dd7ef53ee6745de7cf074647e659f
parentb7c70a0ba0bfd8d3c233815b46528e7f2877417a
domain_conf: Validate redirdev after parsing

There's currently just one limitation: redirdevs that want to go
on USB bus require a USB controller, surprisingly.
At the same time, since I'm using virDomainDefHasUSB() in this
new validator function, it has to be moved a few lines up and
also its header needed to be changed a bit: it is now taking a
const pointer to domain def since it's not changing anything in
there.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c