aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2025-03-04 23:03:48 +0100
committerCédric Le Goater <clg@redhat.com>2025-03-06 06:47:33 +0100
commiteb6608619a16ab949f3cf1138638d17afa45fe4d (patch)
tree677f385734d93b96652121320a6183da906f643f /hw
parent47c7133629cc35b417b8f32512a4715ee53bfae3 (diff)
downloadqemu-eb6608619a16ab949f3cf1138638d17afa45fe4d.zip
qemu-eb6608619a16ab949f3cf1138638d17afa45fe4d.tar.gz
qemu-eb6608619a16ab949f3cf1138638d17afa45fe4d.tar.bz2
vfio/migration: Move migration channel flags to vfio-common.h header file
This way they can also be referenced in other translation units than migration.c. Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Link: https://lore.kernel.org/qemu-devel/26a940f6b22c1b685818251b7a3ddbbca601b1d6.1741124640.git.maciej.szmigiero@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/vfio/migration.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c
index 51c056e..a9b0970 100644
--- a/hw/vfio/migration.c
+++ b/hw/vfio/migration.c
@@ -32,23 +32,6 @@
#include "hw/hw.h"
/*
- * Flags to be used as unique delimiters for VFIO devices in the migration
- * stream. These flags are composed as:
- * 0xffffffff => MSB 32-bit all 1s
- * 0xef10 => Magic ID, represents emulated (virtual) function IO
- * 0x0000 => 16-bits reserved for flags
- *
- * The beginning of state information is marked by _DEV_CONFIG_STATE,
- * _DEV_SETUP_STATE, or _DEV_DATA_STATE, respectively. The end of a
- * certain state information is marked by _END_OF_STATE.
- */
-#define VFIO_MIG_FLAG_END_OF_STATE (0xffffffffef100001ULL)
-#define VFIO_MIG_FLAG_DEV_CONFIG_STATE (0xffffffffef100002ULL)
-#define VFIO_MIG_FLAG_DEV_SETUP_STATE (0xffffffffef100003ULL)
-#define VFIO_MIG_FLAG_DEV_DATA_STATE (0xffffffffef100004ULL)
-#define VFIO_MIG_FLAG_DEV_INIT_DATA_SENT (0xffffffffef100005ULL)
-
-/*
* This is an arbitrary size based on migration of mlx5 devices, where typically
* total device migration size is on the order of 100s of MB. Testing with
* larger values, e.g. 128MB and 1GB, did not show a performance improvement.