[libvirt] [RESEND PATCH 1/3] Add new flags for setting memory parameters

Eric Blake eblake at redhat.com
Tue May 31 14:42:02 UTC 2011


On 05/25/2011 02:54 AM, Hu Tao wrote:
> This enables users to modify memory parameters for inactive domains
> ---
>  include/libvirt/libvirt.h.in |    7 +++++++
>  tools/virsh.c                |   26 +++++++++++++++++++++++---
>  tools/virsh.pod              |    7 +++++++
>  3 files changed, 37 insertions(+), 3 deletions(-)

> +/* flags for setting memory parameters */
> +typedef enum {
> +    VIR_DOMAIN_MEMORY_PARAM_CURRENT = 0,        /* affect current domain state */
> +    VIR_DOMAIN_MEMORY_PARAM_LIVE    = (1 << 0), /* affect active domain */
> +    VIR_DOMAIN_MEMORY_PARAM_CONFIG  = (1 << 1)  /* affect next boot */
> +} virMemoryParamFlags;

This commit is already pushed, but our general style has been to include
the trailing comma in enum lists (this requires a C99 compiler, but we
require C99 for other reasons).  It makes maintenance easier, because
then adding a new value does not require modifying the former last line
to add the comma, for a smaller diff.

-- 
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/20110531/fd1bc2f2/attachment-0001.sig>


More information about the libvir-list mailing list