diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2023-02-07 10:47:03 -0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-03-16 16:07:07 +0100 |
commit | fa76c854ae837328187bef41d80af5d1ad36681f (patch) | |
tree | 8438b146f5412fe00c7d387793a2812275f708fb /migration | |
parent | ff1585d1d8ae5b15d88327e59859d352829caebb (diff) | |
download | qemu-fa76c854ae837328187bef41d80af5d1ad36681f.zip qemu-fa76c854ae837328187bef41d80af5d1ad36681f.tar.gz qemu-fa76c854ae837328187bef41d80af5d1ad36681f.tar.bz2 |
migration: fix populate_vfio_info
Include CONFIG_DEVICES so that populate_vfio_info is instantiated for
CONFIG_VFIO. Without it, the 'info migrate' command never returns
info about vfio.
Fixes: 43bd0bf30f ("migration: Move populate_vfio_info() into a separate file")
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/target.c b/migration/target.c index 907ebf0..00ca007 100644 --- a/migration/target.c +++ b/migration/target.c @@ -8,6 +8,7 @@ #include "qemu/osdep.h" #include "qapi/qapi-types-migration.h" #include "migration.h" +#include CONFIG_DEVICES #ifdef CONFIG_VFIO #include "hw/vfio/vfio-common.h" @@ -17,7 +18,6 @@ void populate_vfio_info(MigrationInfo *info) { #ifdef CONFIG_VFIO if (vfio_mig_active()) { - info->has_vfio = true; info->vfio = g_malloc0(sizeof(*info->vfio)); info->vfio->transferred = vfio_mig_bytes_transferred(); } |