]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use VIR_ERR_DEVICE_MISSING for various hotplug messages
authorChen Hanxiao <chenhanxiao@gmail.com>
Tue, 23 Jan 2018 04:24:44 +0000 (12:24 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 1 Feb 2018 12:17:01 +0000 (07:17 -0500)
commit126db34a81bc9f9f9710408f88cceaa1e34bbbd7
treee2d684760de010120d8026e781b8350f49e0149e
parentbb189c8e8c93f115c13fa3bfffdf64498f3f0ce1
qemu: Use VIR_ERR_DEVICE_MISSING for various hotplug messages

Modify OPERATION_FAILED and INTERNAL_ERROR error codes to
use DEVICE_MISSING instead for failures associated with the
inability to find the device. This makes it easier for consumers
to key off the error code rather than the error message.

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_hotplug.c