Open tmakatos opened 1 year ago
QEMU starts in RUNNING: https://elixir.bootlin.com/qemu/v8.0.4/source/hw/vfio/migration.c#L603
All I can find in the kernel is when the device resets, it gets set to RUNNING: https://elixir.bootlin.com/linux/v6.5.1/source/drivers/vfio/pci/mlx5/main.c#L1151
I can't find anything in the kernel either, maybe it doesn't matter, perhaps it's worth asking on lkml (make sure you CC the right people)?
VFIO uapi doesn't seem to specify the initial migration state of the device. Is it not required? Does the kernel code expect some speicfic state? In any case, we should check the code and clarify that in the vfio-user spec.