mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Don't block use of USB with containers
virDomainDefCompatibleDevice blocks use of USB if no USB controller is present. This is not correct for containers since devices can be assigned directly regardless of any controllers. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
3b2c279449
commit
7a44af963e
@ -17687,6 +17687,7 @@ virDomainDefCompatibleDevice(virDomainDefPtr def,
|
||||
virDomainDeviceDefPtr dev)
|
||||
{
|
||||
if (!virDomainDefHasUSB(def) &&
|
||||
STRNEQ(def->os.type, "exe") &&
|
||||
virDomainDeviceIsUSB(dev)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Device configuration is not compatible: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user