• L
    qemu: put usb cgroup setup in common function · 811143c0
    Laine Stump 提交于
    The USB-specific cgroup setup had been inserted inline in
    qemuDomainAttachHostUsbDevice and qemuSetupCgroup, but now there is a
    common cgroup setup function called for all hostdevs, so it makes sens
    to put the usb-specific setup there and just rely on that function
    being called.
    
    The one thing I'm uncertain of here (and a reason for not pushing
    until after release) is that previously hostdev->missing was checked
    only when starting a domain (and cgroup setup for the device skipped
    if missing was true), but with this consolidation, it is now checked
    in the case of hotplug as well. I don't know if this will have any
    practical effect (does it make sense to hotplug a "missing" usb
    device?)
    811143c0
qemu_cgroup.h 2.4 KB