mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: Move qemuMigrationCompression struct
It provides just another view on some migration parameters so let's move it close to them. The end goal is to merge compression parameters with the rest of migration parameters since it doesn't make any sense to handle them differently. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
dc4bb72201
commit
b2cb8c1c22
@ -24,6 +24,7 @@
|
||||
|
||||
# include "qemu_conf.h"
|
||||
# include "qemu_domain.h"
|
||||
# include "qemu_migration_params.h"
|
||||
|
||||
/*
|
||||
* General function naming conventions:
|
||||
@ -38,9 +39,6 @@
|
||||
* - qemuMigrationJobXXX - runs on source or dest host
|
||||
*/
|
||||
|
||||
typedef struct _qemuMigrationCompression qemuMigrationCompression;
|
||||
typedef qemuMigrationCompression *qemuMigrationCompressionPtr;
|
||||
|
||||
/* All supported qemu migration flags. */
|
||||
# define QEMU_MIGRATION_FLAGS \
|
||||
(VIR_MIGRATE_LIVE | \
|
||||
@ -108,22 +106,6 @@ typedef enum {
|
||||
} qemuMigrationCompressMethod;
|
||||
VIR_ENUM_DECL(qemuMigrationCompressMethod)
|
||||
|
||||
struct _qemuMigrationCompression {
|
||||
unsigned long long methods;
|
||||
|
||||
bool level_set;
|
||||
int level;
|
||||
|
||||
bool threads_set;
|
||||
int threads;
|
||||
|
||||
bool dthreads_set;
|
||||
int dthreads;
|
||||
|
||||
bool xbzrle_cache_set;
|
||||
unsigned long long xbzrle_cache;
|
||||
};
|
||||
|
||||
qemuMigrationCompressionPtr
|
||||
qemuMigrationAnyCompressionParse(virTypedParameterPtr params,
|
||||
int nparams,
|
||||
|
@ -28,6 +28,25 @@
|
||||
# include "qemu_conf.h"
|
||||
|
||||
|
||||
typedef struct _qemuMigrationCompression qemuMigrationCompression;
|
||||
typedef qemuMigrationCompression *qemuMigrationCompressionPtr;
|
||||
struct _qemuMigrationCompression {
|
||||
unsigned long long methods;
|
||||
|
||||
bool level_set;
|
||||
int level;
|
||||
|
||||
bool threads_set;
|
||||
int threads;
|
||||
|
||||
bool dthreads_set;
|
||||
int dthreads;
|
||||
|
||||
bool xbzrle_cache_set;
|
||||
unsigned long long xbzrle_cache;
|
||||
};
|
||||
|
||||
|
||||
qemuMonitorMigrationParamsPtr
|
||||
qemuMigrationParamsNew(void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user