]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: improve error log when PCI devices don't match requested controller
authorLaine Stump <laine@laine.org>
Sat, 6 Aug 2016 01:19:27 +0000 (21:19 -0400)
committerLaine Stump <laine@laine.org>
Wed, 10 Aug 2016 14:23:18 +0000 (10:23 -0400)
commit10031fe5f218fe0acbf873a3063ce42a02fa83d9
tree5cee0214363621048a631823b0b347b53675e4cb
parent4914494eb8e25ff7938a12fd089c746ec6042bbb
conf: improve error log when PCI devices don't match requested controller

The virDomainPCIAddressFlagsCompatible() error logs report that a
device required a controller that accepted standard PCI endpoint
devices, or PCI Express endpoint devices, and if hotplug was required
by the configuration but not provided by the selected controller. But
the wording of the error messages was apparently confusing (according
to the bugzilla report referenced below). On top of that, if the
device was something other than an endpoint device (e.g. a
pcie-switch-downstream-port) the error message was a complete punt -
it would just say that the flags were incorrect.

This patch makes the messages for PCI/PCIe endpoint and hotplug
requirements more clear, and also specifically indicates what was the
device type when it is other than an endpoint device.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1363627
src/conf/domain_addr.c