]> xenbits.xensource.com Git - libvirt.git/commitdiff
Don't block use of USB with containers
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 4 Feb 2014 16:21:12 +0000 (16:21 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Feb 2014 15:11:06 +0000 (15:11 +0000)
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>
src/conf/domain_conf.c

index 9667555c01d158c950d8417e5b9879ec2489e360..362ba20516e7959024de989cea2056250bc8301a 100644 (file)
@@ -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: "