Re: [PATCH 5/6] qemu: Reduce memlock limit after detaching hostdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2015-12-10 at 12:44 -0500, John Ferlan wrote:
> > Calling qemuDomainAdjustMaxMemLock() more than necessary shouldn't
> > really cause any harm, but adding a check for
> > 
> >   hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI
> > 
> > around the call is even better.
> > 
> > Would that address your concerns?
> 
> You mean of course before the pesky "virDomainHostdevDefFree(hostdev)"?
> 
> You could perhaps do it after the qemuDomainRemovePCIHostDevice in the
> switch or within that qemuDomainRemovePCIHostDevice code.

I have now posted v2:

  https://www.redhat.com/archives/libvir-list/2015-December/msg00454.html

Cheers.

-- 
Andrea Bolognani
Software Engineer - Virtualization Team

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]