Re: [libvirt] [PATCH 2/6] process: Add virProcessGetMaxMemLock()

2015-12-10 Thread John Ferlan
On 12/10/2015 11:33 AM, Andrea Bolognani wrote: > On Wed, 2015-12-09 at 12:00 -0500, John Ferlan wrote: >> On 11/24/2015 08:56 AM, Andrea Bolognani wrote: >>> @@ -788,6 +788,48 @@ virProcessSetMaxMemLock(pid_t pid ATTRIBUTE_UNUSED, >>> unsigned long long bytes) >>> } >>> #endif /* !

Re: [libvirt] [PATCH 2/6] process: Add virProcessGetMaxMemLock()

2015-12-10 Thread Andrea Bolognani
On Wed, 2015-12-09 at 12:00 -0500, John Ferlan wrote: > On 11/24/2015 08:56 AM, Andrea Bolognani wrote: > > @@ -788,6 +788,48 @@ virProcessSetMaxMemLock(pid_t pid ATTRIBUTE_UNUSED, > > unsigned long long bytes) > >  } > >  #endif /* ! (HAVE_SETRLIMIT && defined(RLIMIT_MEMLOCK)) */ > >   > > +#if

Re: [libvirt] [PATCH 2/6] process: Add virProcessGetMaxMemLock()

2015-12-09 Thread John Ferlan
On 11/24/2015 08:56 AM, Andrea Bolognani wrote: > This function can be used to retrieve the current locked memory > limit for a process, so that the setting can be later restored. > > Add a configure check for getrlimit(), which we now use. > --- > configure.ac | 2 +- >

[libvirt] [PATCH 2/6] process: Add virProcessGetMaxMemLock()

2015-11-24 Thread Andrea Bolognani
This function can be used to retrieve the current locked memory limit for a process, so that the setting can be later restored. Add a configure check for getrlimit(), which we now use. --- configure.ac | 2 +- src/libvirt_private.syms | 1 + src/util/virprocess.c| 42