xref: /openbmc/qemu/migration/options.h (revision 05adb38839ba656c7383a548b460d95c91e2febe)
11f0776f1SJuan Quintela /*
21f0776f1SJuan Quintela  * QEMU migration capabilities
31f0776f1SJuan Quintela  *
41f0776f1SJuan Quintela  * Copyright (c) 2012-2023 Red Hat Inc
51f0776f1SJuan Quintela  *
61f0776f1SJuan Quintela  * Authors:
71f0776f1SJuan Quintela  *   Orit Wasserman <owasserm@redhat.com>
81f0776f1SJuan Quintela  *   Juan Quintela <quintela@redhat.com>
91f0776f1SJuan Quintela  *
101f0776f1SJuan Quintela  * This work is licensed under the terms of the GNU GPL, version 2 or later.
111f0776f1SJuan Quintela  * See the COPYING file in the top-level directory.
121f0776f1SJuan Quintela  */
131f0776f1SJuan Quintela 
141f0776f1SJuan Quintela #ifndef QEMU_MIGRATION_OPTIONS_H
151f0776f1SJuan Quintela #define QEMU_MIGRATION_OPTIONS_H
161f0776f1SJuan Quintela 
17f9436522SJuan Quintela #include "hw/qdev-properties.h"
18f9436522SJuan Quintela #include "hw/qdev-properties-system.h"
19f3bff6c4SSteve Sistare #include "migration/client-options.h"
20f9436522SJuan Quintela 
21f9436522SJuan Quintela /* migration properties */
22f9436522SJuan Quintela 
23f9436522SJuan Quintela extern Property migration_properties[];
24f9436522SJuan Quintela 
251f0776f1SJuan Quintela /* capabilities */
261f0776f1SJuan Quintela 
271f0776f1SJuan Quintela bool migrate_auto_converge(void);
285e804644SJuan Quintela bool migrate_colo(void);
291f0776f1SJuan Quintela bool migrate_dirty_bitmaps(void);
30b890902cSJuan Quintela bool migrate_events(void);
314ed49febSFabiano Rosas bool migrate_mapped_ram(void);
321f0776f1SJuan Quintela bool migrate_ignore_shared(void);
331f0776f1SJuan Quintela bool migrate_late_block_activate(void);
3451b07548SJuan Quintela bool migrate_multifd(void);
351f0776f1SJuan Quintela bool migrate_pause_before_switchover(void);
361f0776f1SJuan Quintela bool migrate_postcopy_blocktime(void);
371f0776f1SJuan Quintela bool migrate_postcopy_preempt(void);
3817cba690SJuan Quintela bool migrate_rdma_pin_all(void);
391f0776f1SJuan Quintela bool migrate_release_ram(void);
4038ad1110SJuan Quintela bool migrate_return_path(void);
411f0776f1SJuan Quintela bool migrate_validate_uuid(void);
4287dca0c9SJuan Quintela bool migrate_xbzrle(void);
43b4bc342cSJuan Quintela bool migrate_zero_copy_send(void);
441f0776f1SJuan Quintela 
45f774fde5SJuan Quintela /*
46f774fde5SJuan Quintela  * pseudo capabilities
47f774fde5SJuan Quintela  *
48f774fde5SJuan Quintela  * These are functions that are used in a similar way to capabilities
49f774fde5SJuan Quintela  * check, but they are not a capability.
50f774fde5SJuan Quintela  */
51f774fde5SJuan Quintela 
5277c259a4SJuan Quintela bool migrate_multifd_flush_after_each_section(void);
53f774fde5SJuan Quintela bool migrate_postcopy(void);
5427fd25b0SJuan Quintela bool migrate_rdma(void);
5510d4703bSJuan Quintela bool migrate_tls(void);
56f774fde5SJuan Quintela 
5777608706SJuan Quintela /* capabilities helpers */
5877608706SJuan Quintela 
5977608706SJuan Quintela bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp);
6077608706SJuan Quintela 
611dfc4b9eSJuan Quintela /* parameters */
621dfc4b9eSJuan Quintela 
63b804b35bSJuan Quintela const BitmapMigrationNodeAliasList *migrate_block_bitmap_mapping(void);
643cba22c9SJuan Quintela bool migrate_has_block_bitmap_mapping(void);
653cba22c9SJuan Quintela 
66f94a858fSJuan Quintela uint32_t migrate_checkpoint_delay(void);
679605c2acSJuan Quintela uint8_t migrate_cpu_throttle_increment(void);
682a8ec380SJuan Quintela uint8_t migrate_cpu_throttle_initial(void);
69873f674cSJuan Quintela bool migrate_cpu_throttle_tailslow(void);
70b43b61d5SFabiano Rosas bool migrate_direct_io(void);
71f5da8ba4SJuan Quintela uint64_t migrate_downtime_limit(void);
7224155bd0SJuan Quintela uint8_t migrate_max_cpu_throttle(void);
739c894df3SJuan Quintela uint64_t migrate_max_bandwidth(void);
748b239597SPeter Xu uint64_t migrate_avail_switchover_bandwidth(void);
7552033349SJuan Quintela uint64_t migrate_max_postcopy_bandwidth(void);
761dfc4b9eSJuan Quintela int migrate_multifd_channels(void);
771dfc4b9eSJuan Quintela MultiFDCompression migrate_multifd_compression(void);
781dfc4b9eSJuan Quintela int migrate_multifd_zlib_level(void);
79*86c6eb1fSBryan Zhang int migrate_multifd_qatzip_level(void);
801dfc4b9eSJuan Quintela int migrate_multifd_zstd_level(void);
816499efdbSJuan Quintela uint8_t migrate_throttle_trigger_threshold(void);
822eb0308bSJuan Quintela const char *migrate_tls_authz(void);
83d5c3e195SJuan Quintela const char *migrate_tls_creds(void);
841f2f366cSJuan Quintela const char *migrate_tls_hostname(void);
851dfc4b9eSJuan Quintela uint64_t migrate_xbzrle_cache_size(void);
865fdbb1dfSHao Xiang ZeroPageDetection migrate_zero_page_detection(void);
871dfc4b9eSJuan Quintela 
8809d6c965SJuan Quintela /* parameters helpers */
8909d6c965SJuan Quintela 
9009d6c965SJuan Quintela bool migrate_params_check(MigrationParameters *params, Error **errp);
9161a174e2SJuan Quintela void migrate_params_init(MigrationParameters *params);
921f0776f1SJuan Quintela #endif
93