mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 11:52:20 +00:00
qemu: Move qemuMonitorMigrationParams structure
It's no longer used by the monitor code so we can hide it inside qemu_migration_params.c. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
11e214369f
commit
b57c98509b
@ -39,6 +39,42 @@ VIR_LOG_INIT("qemu.qemu_migration_params");
|
||||
|
||||
#define QEMU_MIGRATION_TLS_ALIAS_BASE "libvirt_migrate"
|
||||
|
||||
typedef struct _qemuMonitorMigrationParams qemuMonitorMigrationParams;
|
||||
typedef qemuMonitorMigrationParams *qemuMonitorMigrationParamsPtr;
|
||||
struct _qemuMonitorMigrationParams {
|
||||
bool compressLevel_set;
|
||||
int compressLevel;
|
||||
|
||||
bool compressThreads_set;
|
||||
int compressThreads;
|
||||
|
||||
bool decompressThreads_set;
|
||||
int decompressThreads;
|
||||
|
||||
bool cpuThrottleInitial_set;
|
||||
int cpuThrottleInitial;
|
||||
|
||||
bool cpuThrottleIncrement_set;
|
||||
int cpuThrottleIncrement;
|
||||
|
||||
/* Value is either NULL, "", or some string. NULL indicates no support;
|
||||
* whereas, some string value indicates we can support setting/clearing */
|
||||
char *tlsCreds;
|
||||
char *tlsHostname;
|
||||
|
||||
bool maxBandwidth_set;
|
||||
unsigned long long maxBandwidth;
|
||||
|
||||
bool downtimeLimit_set;
|
||||
unsigned long long downtimeLimit;
|
||||
|
||||
bool blockIncremental_set;
|
||||
bool blockIncremental;
|
||||
|
||||
bool xbzrleCacheSize_set;
|
||||
unsigned long long xbzrleCacheSize;
|
||||
};
|
||||
|
||||
struct _qemuMigrationParams {
|
||||
unsigned long long compMethods; /* bit-wise OR of qemuMigrationCompressMethod */
|
||||
virBitmapPtr caps;
|
||||
|
@ -642,42 +642,6 @@ int qemuMonitorGetMigrationCacheSize(qemuMonitorPtr mon,
|
||||
int qemuMonitorSetMigrationCacheSize(qemuMonitorPtr mon,
|
||||
unsigned long long cacheSize);
|
||||
|
||||
typedef struct _qemuMonitorMigrationParams qemuMonitorMigrationParams;
|
||||
typedef qemuMonitorMigrationParams *qemuMonitorMigrationParamsPtr;
|
||||
struct _qemuMonitorMigrationParams {
|
||||
bool compressLevel_set;
|
||||
int compressLevel;
|
||||
|
||||
bool compressThreads_set;
|
||||
int compressThreads;
|
||||
|
||||
bool decompressThreads_set;
|
||||
int decompressThreads;
|
||||
|
||||
bool cpuThrottleInitial_set;
|
||||
int cpuThrottleInitial;
|
||||
|
||||
bool cpuThrottleIncrement_set;
|
||||
int cpuThrottleIncrement;
|
||||
|
||||
/* Value is either NULL, "", or some string. NULL indicates no support;
|
||||
* whereas, some string value indicates we can support setting/clearing */
|
||||
char *tlsCreds;
|
||||
char *tlsHostname;
|
||||
|
||||
bool maxBandwidth_set;
|
||||
unsigned long long maxBandwidth;
|
||||
|
||||
bool downtimeLimit_set;
|
||||
unsigned long long downtimeLimit;
|
||||
|
||||
bool blockIncremental_set;
|
||||
bool blockIncremental;
|
||||
|
||||
bool xbzrleCacheSize_set;
|
||||
unsigned long long xbzrleCacheSize;
|
||||
};
|
||||
|
||||
int qemuMonitorGetMigrationParams(qemuMonitorPtr mon,
|
||||
virJSONValuePtr *params);
|
||||
int qemuMonitorSetMigrationParams(qemuMonitorPtr mon,
|
||||
|
Loading…
x
Reference in New Issue
Block a user