]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: nodedev: Refresh capabilities before touching them
authorErik Skultety <eskultet@redhat.com>
Thu, 18 Jan 2018 14:25:49 +0000 (15:25 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 29 Jan 2018 14:34:30 +0000 (15:34 +0100)
commitd18feadc0cd1dfaaeba520036e0915715e017692
tree323adf05ee9f9da35cff6de946ceac1893a30767
parent36546e3cdb75a6c18a77e5903ab0eb0f5ab4d8f4
conf: nodedev: Refresh capabilities before touching them

Most of them are static, however in case of PCI and SCSI_HOST devices,
the nested capabilities can change dynamically, e.g. due to a driver
change (from host_pci_driver -> vfio_pci).

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Suggested-by: Wu Zongyong <cordius.wu@huawei.com>
src/conf/node_device_conf.c
src/conf/virnodedeviceobj.c