]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: report a nicer error when USB is disabled
authorJán Tomko <jtomko@redhat.com>
Thu, 14 Sep 2017 07:13:20 +0000 (09:13 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 7 Mar 2018 13:10:46 +0000 (14:10 +0100)
commit1cdc9ecebd0bf22ea658b84c2466e2ea237f1897
treefc8a66abe6e87f3e786fd790ec44bac6701b79ca
parentc17666419b3579c9c73b5a49027eaeb999a85689
qemu: report a nicer error when USB is disabled

If the user tries to define a domain that has

  <controller type='usb' model='none'/>

and also some USB devices, we report an error:
  error: internal error: No free USB ports

Which is technically still correct for a domain with no USB ports.

Change it to:

USB is disabled for this domain, but USB devices are present in the domain XML

https://bugzilla.redhat.com/show_bug.cgi?id=1347550
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_domain_address.c