: [PATCH] vfio/migration: Fix wrong enum usage
vfio_migration_init() initializes VFIOMigration->device_state using enum of
VFIO migration protocol v2. Current implemented protocol is v1 so v1 enum
should be used. Fix it.
Fixes: 429c72800654 ("vfio/migration: Fix incorrect initialization v
> -Original Message-
> From: Qemu-devel
> On Behalf Of Avihai Horon
> Sent: Sunday, October 16, 2022 4:58 PM
> To: qemu-devel@nongnu.org; Alex Williamson
> ; Kunkun Jiang
> Cc: Avihai Horon
> Subject: [PATCH] vfio/migration: Fix wrong enum usage
>
> vfi
vfio_migration_init() initializes VFIOMigration->device_state using enum
of VFIO migration protocol v2. Current implemented protocol is v1 so v1
enum should be used. Fix it.
Fixes: 429c72800654 ("vfio/migration: Fix incorrect initialization value for
parameters in VFIOMigration")
Signed-off-by: A