From: Daniel P. Berrange Date: Tue, 4 Feb 2014 16:21:12 +0000 (+0000) Subject: Don't block use of USB with containers X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7a44af963ef75c487f874bc91613ad45e5b167e9;p=libvirt.git 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 --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 9667555c01..362ba20516 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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: "