diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-02 10:13:16 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-27 10:18:25 +0200 |
commit | 09d6c9658474e8573c5ada58dca8b20fe47dd99e (patch) | |
tree | 3029835a2b874557285596dda63e4514941f927c /migration/options.h | |
parent | 10d4703be5d884bbbb6ecafe0e8bb270ad6ea937 (diff) |
migration: Move qmp_migrate_set_parameters() to options.c
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/options.h')
-rw-r--r-- | migration/options.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/migration/options.h b/migration/options.h index 13318a16c7..89067e59a0 100644 --- a/migration/options.h +++ b/migration/options.h @@ -14,6 +14,13 @@ #ifndef QEMU_MIGRATION_OPTIONS_H #define QEMU_MIGRATION_OPTIONS_H +/* constants */ + +/* Amount of time to allocate to each "chunk" of bandwidth-throttled + * data. */ +#define BUFFER_DELAY 100 +#define XFER_LIMIT_RATIO (1000 / BUFFER_DELAY) + /* capabilities */ bool migrate_auto_converge(void); @@ -74,4 +81,8 @@ int migrate_multifd_zstd_level(void); uint8_t migrate_throttle_trigger_threshold(void); uint64_t migrate_xbzrle_cache_size(void); +/* parameters helpers */ + +bool migrate_params_check(MigrationParameters *params, Error **errp); + #endif |