[libvirt] [PATCH 2/4] maxmem: introduces VIR_DOMAIN_MEM_MAXIMUM flag

Eric Blake eblake at redhat.com
Thu Apr 7 22:34:39 UTC 2011


On 03/30/2011 11:30 PM, Taku Izumi wrote:
> 
> This patch introduces VIR_DOMAIN_MEM_MAXIMUM flag.
> 
> Signed-off-by: Taku Izumi <izumi.taku at jp.fujitsu.com>
> ---
>  include/libvirt/libvirt.h.in |    1 +
>  src/libvirt.c                |    2 ++
>  2 files changed, 3 insertions(+)
> 
> Index: libvirt/include/libvirt/libvirt.h.in
> ===================================================================
> --- libvirt.orig/include/libvirt/libvirt.h.in
> +++ libvirt/include/libvirt/libvirt.h.in
> @@ -857,6 +857,7 @@ typedef enum {
>      VIR_DOMAIN_MEM_CURRENT= 0,        /* affect current domain */

This part of the patch doesn't exist.  Am I missing some other patch
series that should have been applied first?

[goes back and re-reads - yep, you said so in mail 0/4].  OK, I'll
review that first.  But I've now applied 1/4 from this series from when
it was first acked.

>      VIR_DOMAIN_MEM_LIVE   = (1 << 0), /* affect active domain */
>      VIR_DOMAIN_MEM_CONFIG = (1 << 1), /* affect next boot */
> +    VIR_DOMAIN_MEM_MAXIMUM= (1 << 2), /* affect Max rather than current */

I'll probably reindent things to put a space before = and line up the
other lines, but that's trivial.

> Index: libvirt/src/libvirt.c
> ===================================================================
> --- libvirt.orig/src/libvirt.c
> +++ libvirt/src/libvirt.c
> @@ -2869,6 +2869,8 @@ error:
>   * the XML description on the domain. If neither flag is specified
>   * (=VIR_DOMAIN_MEM_CURRENT), behavior is different depending on hypervisor.
>   *
> + * If @flags incluces VIR_DOMAIN_MEM_MAXIMUM,
> + *

Incomplete sentence.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110407/f3df9fd4/attachment-0001.sig>


More information about the libvir-list mailing list