Arc-Compute / LibVF.IO

A vendor neutral GPU multiplexing tool driven by VFIO & YAML.
GNU Affero General Public License v3.0
822 stars 39 forks source link

Experimental Live Migration Support #57

Closed theonlyfoxy closed 2 years ago

theonlyfoxy commented 2 years ago

Dear LibVF.IO Devs, This pull request aim is to support savevm and loadvm capability for Nvidia Series vGPU. by default Live Migration is disabled for VFIO devices but Qemu has an experimental flag to enable this feature. however Nvidia driver also have to be compiled with some flags which will be implemented in @erin-allison aur package.

References: https://github.com/mbilker/vgpu_unlock-rs/issues/15

arthurrasmusson commented 2 years ago

Thanks for the pull request! I'm going to give this a shot on my own machine then if it works I'll merge it in. :)

arthurrasmusson commented 2 years ago

I've been able to test this out on my machine and so far it doesn't appear to have caused any breakages. Someone also suggested we implement QMP commands to allow arcd to prompt the guest to sleep/hibernate so I'll see if I can look into that soon. Since this seems to work I'll merge it in. Thanks again!

theonlyfoxy commented 2 years ago

Thanks @arthurrasmusson. I also implemented the changes so nvidia-merged aur package would work with x-enable-migration flag. https://github.com/erin-allison/aur-packages/pull/4