mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: export fewer options
A small number of migration options are accessed by migration clients, but to see them clients must include all of options.h, which is mostly for migration core code. migrate_mode() in particular will be needed by multiple clients. Refactor the option declarations so clients can see the necessary few via misc.h, which already exports a portion of the client API. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179319-294320-1-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
a1bb5dd169
commit
f3bff6c443
6 changed files with 26 additions and 8 deletions
24
include/migration/client-options.h
Normal file
24
include/migration/client-options.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* QEMU public migration capabilities
|
||||
*
|
||||
* Copyright (c) 2012-2023 Red Hat Inc
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef QEMU_MIGRATION_CLIENT_OPTIONS_H
|
||||
#define QEMU_MIGRATION_CLIENT_OPTIONS_H
|
||||
|
||||
/* capabilities */
|
||||
|
||||
bool migrate_background_snapshot(void);
|
||||
bool migrate_dirty_limit(void);
|
||||
bool migrate_postcopy_ram(void);
|
||||
bool migrate_switchover_ack(void);
|
||||
|
||||
/* parameters */
|
||||
|
||||
MigMode migrate_mode(void);
|
||||
|
||||
#endif
|
|
@ -17,6 +17,7 @@
|
|||
#include "qemu/notify.h"
|
||||
#include "qapi/qapi-types-migration.h"
|
||||
#include "qapi/qapi-types-net.h"
|
||||
#include "migration/client-options.h"
|
||||
|
||||
/* migration/ram.c */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue