intel / gvt-linux

Other
503 stars 94 forks source link

Live Migration Is Not Working #209

Open oryair1 opened 2 years ago

oryair1 commented 2 years ago

Hi, I was looking into how to do a live migration with the latests versions of gvt-linux from the gvt-staging branch. I noticed it probably should be supported because I saw the intel_migrate_init function in drivers/gpu/drm/i915/gt/intel_migrate.c. I am using qemu-6.0.0. I'm attaching the device to the VM with -device vfio-pci,.....

The thing is that I need to do a live migration, but qemu says that this device does not support live migration because the vfio_migration_probe function fails. When I tried to see why it says that, I saw it is looking for a region of type VFIO_REGION_TYPE_MIGRATION but such a region is not created by the latest versions of gvt-linux. It is created only by the gvt-linux versions under the gvt-stable-4.x branches.

I also encountered this commit on a google search which defines the init_migration_region function - https://lists.ofono.org/hyperkitty/list/kbuild-all@lists.01.org/thread/SAM6MF2KOTKPKQI6UYSMGXSHCDZULEHW/ But I can't find where it's implemented

Then how can I create a migration using qemu-6.0.0 and the latest versions of gvt-linux?