diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2014-02-04 16:21:12 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2014-02-18 15:52:22 +0000 |
commit | 4428224e0d60ce32cb81be45b79323912ce5b8dc (patch) | |
tree | ec4df753fddc74eac1bbef2777157adcd2404ece | |
parent | aaba652d2ba2a3a258c6b36d109ada59824cedce (diff) | |
download | libvirt-4428224e0d60ce32cb81be45b79323912ce5b8dc.tar.gz |
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>
(cherry picked from commit 7a44af963ef75c487f874bc91613ad45e5b167e9)
-rw-r--r-- | src/conf/domain_conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 4521bcb21e..faae9d39ab 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -16922,6 +16922,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: " |