[libvirt] cgroups and USB passthrough devices don't work together

Hi all, beside the problem with USB devices I sent the patch for earlier, there is another problem that I'm not sure how to fix: the QEmu cgroup is _not_ allowed to access the device when adding it to the virtual machine. Basically it'd need a call to virCgroupAllowDevicePath() when adding the device… -- Diego Elio Pettenò — “Flameeyes” http://blog.flameeyes.eu/ If you found a .asc file in this mail and know not what it is, it's a GnuPG digital signature: http://www.gnupg.org/

On Tue, Oct 26, 2010 at 07:47:58PM +0200, Diego Elio Pettenò wrote:
Hi all,
beside the problem with USB devices I sent the patch for earlier, there is another problem that I'm not sure how to fix: the QEmu cgroup is _not_ allowed to access the device when adding it to the virtual machine.
Basically it'd need a call to virCgroupAllowDevicePath() when adding the device…
Yep, looks like the qemudSetupCgroup method forgot about adding the ACLs for USB device nodes. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (2)
-
Daniel P. Berrange
-
Diego Elio Pettenò