]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainControllerIsBusy: Fully populate switch statement
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Nov 2020 13:16:45 +0000 (14:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Nov 2020 13:05:06 +0000 (14:05 +0100)
commit6a1bb797a7f90de131e2f5ccf4592c9324f875b0
tree08d5c357c2ee4a073231120f5282c7f35e37e0c1
parent279ba2d1cceceb70fa2463da7075bfe7cb6e43a3
qemuDomainControllerIsBusy: Fully populate switch statement

Typecast the controller type variable to the appropriate type and add
the missing controller types for future extension.

Note that we currently allow only unplug of
VIR_DOMAIN_CONTROLLER_TYPE_SCSI thus the other controller types which
are not implemented return false now.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c