[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 7/7] migration: fix populate_vfio_info
From: |
Juan Quintela |
Subject: |
[PULL 7/7] migration: fix populate_vfio_info |
Date: |
Thu, 16 Mar 2023 16:12:25 +0100 |
From: Steve Sistare <steven.sistare@oracle.com>
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>
---
migration/target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/target.c b/migration/target.c
index 907ebf0a0a..00ca007f97 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();
}
--
2.39.2
- [PULL 0/7] Migration 20230316 patches, Juan Quintela, 2023/03/16
- [PULL 2/7] migration/rdma: Fix return-path case, Juan Quintela, 2023/03/16
- [PULL 5/7] migration/rdma: Remove deprecated variable rdma_return_path, Juan Quintela, 2023/03/16
- [PULL 1/7] migration: Wait on preempt channel in preempt thread, Juan Quintela, 2023/03/16
- [PULL 4/7] migration/xbzrle: fix out-of-bounds write with axv512, Juan Quintela, 2023/03/16
- [PULL 6/7] migration/multifd: correct multifd_send_thread to trace the flags, Juan Quintela, 2023/03/16
- [PULL 7/7] migration: fix populate_vfio_info,
Juan Quintela <=
- [PULL 3/7] migration/xbzrle: use ctz64 to avoid undefined result, Juan Quintela, 2023/03/16
- Re: [PULL 0/7] Migration 20230316 patches, Peter Maydell, 2023/03/17