mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-02 09:29:35 -05:00
Add new flags for setting memory parameters
The new flags allow to pick current state, config or the live parameter, with current being the existing API default (0). This also hooks this to --config, --live, --current parameters for the memtune virsh command * include/libvirt/libvirt.h.in: defines the new flags * tools/virsh.c: adds support at virsh level * tools/virsh.pod: updates virsh documentation
This commit is contained in:
@@ -883,6 +883,13 @@ typedef enum {
|
||||
VIR_DOMAIN_MEMORY_PARAM_BOOLEAN = VIR_TYPED_PARAM_BOOLEAN,
|
||||
} virMemoryParameterType;
|
||||
|
||||
/* 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;
|
||||
|
||||
/**
|
||||
* VIR_DOMAIN_MEMORY_FIELD_LENGTH:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user