[libvirt] [PATCH 01/12] Adding virDomainSetMemoryParameters API
Daniel P. Berrange
berrange at redhat.com
Tue Sep 21 17:13:33 UTC 2010
On Mon, Sep 20, 2010 at 02:14:49PM +0530, Nikunj A. Dadhania wrote:
> From: Nikunj A. Dadhania <nikunj at linux.vnet.ibm.com>
>
> Public api to set memory tunables supported by the hypervisors.
> RFC: https://www.redhat.com/archives/libvir-list/2010-August/msg00607.html
>
> Signed-off-by: Nikunj A. Dadhania <nikunj at linux.vnet.ibm.com>
> ---
> include/libvirt/libvirt.h.in | 5 ++++
> src/driver.h | 6 +++++
> src/libvirt.c | 49 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 60 insertions(+), 0 deletions(-)
>
> diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
> index b45f7ec..f546ba6 100644
> --- a/include/libvirt/libvirt.h.in
> +++ b/include/libvirt/libvirt.h.in
> @@ -674,6 +674,11 @@ int virDomainGetInfo (virDomainPtr domain,
> char * virDomainGetSchedulerType(virDomainPtr domain,
> int *nparams);
>
> +/* Set memory tunables for the domain*/
> +int virDomainSetMemoryParameters(virDomainPtr domain,
> + virMemoryParameterPtr params,
> + int nparams);
> +
How about a virDomainGetMemoryParameters() API too ? I know
you can get that via XML, but since we're adding a 'setter'
its easy to add a 'getter' at the same time.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list