CPC G06F 9/45558 (2013.01) [G06F 13/4221 (2013.01); G06F 2009/4557 (2013.01); G06F 2009/45579 (2013.01); G06F 2009/45583 (2013.01); G06F 2009/45595 (2013.01); G06F 2213/0026 (2013.01)] | 19 Claims |
1. A method comprising:
running a virtual machine (VM) on a host that includes a peripheral component interconnect express (PCIe) device using single root input output virtualization (SR-IOV) to implement a virtual function (VF), the VM configured to use the VF on the PCIe device;
quiescing the VF;
in response to quiescing the VF, halting the VM in a VM state and then obtaining a VM state data that indicates the VM state;
in response to quiescing the VF, halting the VF in a PCIe state and then obtaining a PCIe state data that indicates the PCIe state;
using the PCIe state data to restart the VF in the PCIe state on a second PCIe device of a second host; and
after restarting the VF, using the VM state data to restart the VM in the VM state on the second host such that the VM is configured to use the VF on the second PCIe device as soon as the VM is restarted.
|