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:
i
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
> > the
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)
> > +
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.
> ---
> src/conf/doma
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