Re: [libvirt] [PATCH 3/6] qemu: Use qemuDomainRequiresMlock() when attaching PCI hostdev

2015-11-18 Thread Peter Krempa
On Wed, Nov 18, 2015 at 15:13:17 +0100, Andrea Bolognani wrote: > The function is used everywhere else to check whether the locked > memory limit should be set / updated, and it should be used here > as well. > > Moreover, qemuDomainGetMlockLimitBytes() expects the hostdev to > have already been

[libvirt] [PATCH 3/6] qemu: Use qemuDomainRequiresMlock() when attaching PCI hostdev

2015-11-18 Thread Andrea Bolognani
The function is used everywhere else to check whether the locked memory limit should be set / updated, and it should be used here as well. Moreover, qemuDomainGetMlockLimitBytes() expects the hostdev to have already been added to the domain definition, but we only do that at the end of