]> git.ipfire.org Git - thirdparty/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>
Tue, 18 Feb 2014 16:34:06 +0000 (16:34 +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>
(cherry picked from commit 7a44af963ef75c487f874bc91613ad45e5b167e9)

src/conf/domain_conf.c

index 184049567f40a63e42e0d602eebd22dc9a3dd7f8..c812e71e036c4f9950b36c3bc253ef64b7edd1c9 100644 (file)
@@ -17111,6 +17111,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: "