• M
    qemuDomainGetHostdevPath: Report /dev/vfio/vfio less frequently · 1bb787fd
    Michal Privoznik 提交于
    So far, qemuDomainGetHostdevPath has no knowledge of the reasong
    it is called and thus reports /dev/vfio/vfio for every VFIO
    backed device. This is suboptimal, as we want it to:
    
    a) report /dev/vfio/vfio on every addition or domain startup
    b) report /dev/vfio/vfio only on last VFIO device being unplugged
    
    If a domain is being stopped then namespace and CGroup die with
    it so no need to worry about that. I mean, even when a domain
    that's exiting has more than one VFIO devices assigned to it,
    this function does not clean /dev/vfio/vfio in CGroup nor in the
    namespace. But that doesn't matter.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
    1bb787fd
qemu_cgroup.c 32.3 KB