mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: export migration_is_setup_or_active
Delete the MigrationState parameter from migration_is_setup_or_active and move it to the public API in misc.h. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/r/1710179338-294359-3-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
f853fa0714
commit
7dcb3c87d8
6 changed files with 11 additions and 13 deletions
|
@ -26,7 +26,6 @@
|
|||
#include <err.h>
|
||||
#include "standard-headers/linux/virtio_net.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "migration/migration.h"
|
||||
#include "migration/misc.h"
|
||||
#include "hw/virtio/vhost.h"
|
||||
|
||||
|
@ -355,7 +354,7 @@ static int vhost_vdpa_net_data_start(NetClientState *nc)
|
|||
assert(nc->info->type == NET_CLIENT_DRIVER_VHOST_VDPA);
|
||||
|
||||
if (s->always_svq ||
|
||||
migration_is_setup_or_active(migrate_get_current()->state)) {
|
||||
migration_is_setup_or_active()) {
|
||||
v->shadow_vqs_enabled = true;
|
||||
} else {
|
||||
v->shadow_vqs_enabled = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue