[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V7 02/29] migration: fix populate_vfio_info
|
From: |
Peter Maydell |
|
Subject: |
Re: [PATCH V7 02/29] migration: fix populate_vfio_info |
|
Date: |
Thu, 24 Feb 2022 18:42:12 +0000 |
On Wed, 22 Dec 2021 at 19:45, Steve Sistare <steven.sistare@oracle.com> wrote:
>
> Include CONFIG_DEVICES so that populate_vfio_info is instantiated for
> CONFIG_VFIO.
The commit message says "include CONFIG_DEVICES"...
> Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
> ---
> migration/target.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/migration/target.c b/migration/target.c
> index 907ebf0..4390bf0 100644
> --- a/migration/target.c
> +++ b/migration/target.c
> @@ -8,18 +8,22 @@
> #include "qemu/osdep.h"
> #include "qapi/qapi-types-migration.h"
> #include "migration.h"
> +#include CONFIG_DEVICES
...and the code change does do that, but...
>
> #ifdef CONFIG_VFIO
> +
> #include "hw/vfio/vfio-common.h"
> -#endif
>
> 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();
> }
> -#endif
> }
> +#else
> +
> +void populate_vfio_info(MigrationInfo *info) {}
> +
> +#endif /* CONFIG_VFIO */
...it also seems to be making a no-change-of-behaviour rewrite
of the rest of the file. Is there a reason I'm missing for doing
that ?
thanks
-- PMM
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH V7 02/29] migration: fix populate_vfio_info,
Peter Maydell <=