mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
qemu: remove default case from few typecasted enums
Commit 98c5c53d69b partially reverted the effort to use typecasted enums for compiler notification. Turn it back.
This commit is contained in:
parent
22e464744d
commit
3fbc7b781c
@ -4281,7 +4281,9 @@ qemuBuildPCIHostdevDevStr(const virDomainDef *def,
|
||||
virBufferAddLit(&buf, "vfio-pci");
|
||||
break;
|
||||
|
||||
default:
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_DEFAULT:
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_XEN:
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_TYPE_LAST:
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("invalid PCI passthrough type '%s'"),
|
||||
virDomainHostdevSubsysPCIBackendTypeToString(backend));
|
||||
|
@ -1249,7 +1249,16 @@ qemuDomainAttachHostPCIDevice(virQEMUDriverPtr driver,
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_DEFAULT:
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_KVM:
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_XEN:
|
||||
case VIR_DOMAIN_HOSTDEV_PCI_BACKEND_TYPE_LAST:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("QEMU does not support device assignment mode '%s'"),
|
||||
virDomainHostdevSubsysPCIBackendTypeToString(backend));
|
||||
goto error;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user