vfio/migration: Fix wrong enum usage
commit2461e752199ca457bf0973b6c8a77dc30585809c
authorAvihai Horon <avihaih@nvidia.com>
Sun, 16 Oct 2022 08:57:52 +0000 (16 11:57 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 3 Nov 2022 21:57:31 +0000 (3 15:57 -0600)
treed9ceb117ac5ca2be11e9f44d320b8da6083ca5b4
parentece5f8374d0416a339f0c0a9399faa2c42d4ad6f
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 value for parameters in VFIOMigration")
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Link: https://lore.kernel.org/r/20221016085752.32740-1-avihaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/migration.c