Re: [libvirt] [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()

2015-12-13 Thread John Ferlan
On 11/24/2015 08:56 AM, Andrea Bolognani wrote: [...] > +} > + > +/* Don't do anything unless we're actually setting a limit */ > +if (bytes) { > +if (virProcessSetMaxMemLock(vm->pid, bytes) < 0) > +goto out; > +} virProcessSetMaxMemLock aready checks:

Re: [libvirt] [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()

2015-12-10 Thread Andrea Bolognani
On Wed, 2015-12-09 at 12:19 -0500, John Ferlan wrote: > On 11/24/2015 08:56 AM, Andrea Bolognani wrote: > > This function detects whether a domain needs RLIMIT_MEMLOCK > > to be set, and if so, uses an appropriate value. > > > > It also stores the original value inside the virDomainObj for > >

Re: [libvirt] [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()

2015-12-10 Thread Andrea Bolognani
On Wed, 2015-12-09 at 13:02 -0500, John Ferlan wrote: > On 11/24/2015 08:56 AM, Andrea Bolognani wrote: > [...] > > > +} > > + > > +/* Don't do anything unless we're actually setting a limit */ > > +if (bytes) { > > +if (virProcessSetMaxMemLock(vm->pid, bytes) < 0) > > +   

Re: [libvirt] [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()

2015-12-09 Thread John Ferlan
On 11/24/2015 08:56 AM, Andrea Bolognani wrote: > This function detects whether a domain needs RLIMIT_MEMLOCK > to be set, and if so, uses an appropriate value. > > It also stores the original value inside the virDomainObj for > the domain so that it can be later restored. > --- >

[libvirt] [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()

2015-11-24 Thread Andrea Bolognani
This function detects whether a domain needs RLIMIT_MEMLOCK to be set, and if so, uses an appropriate value. It also stores the original value inside the virDomainObj for the domain so that it can be later restored. --- src/conf/domain_conf.h | 3 +++ src/qemu/qemu_domain.c | 50