https://bugs.freedesktop.org/show_bug.cgi?id=101946
--- Comment #22 from Luke A. Guest laguest@archeia.com --- I'd like to report a minor success. I've managed to boot into win8.1 twice in a row. I booted as normal through virt-manager, then shutdown from inside the guest, then called a script:
#!/bin/sh
echo 1 > /sys/bus/pci/devices/0000:03:00.0/remove echo 1 > /sys/bus/pci/devices/0000:03:00.1/remove echo 1 > /sys/bus/pci/rescan
/opt/vfio/rebind_dev_to_vfio.sh 0000:03:00.0 /opt/vfio/rebind_dev_to_vfio.sh 0000:03:00.1
Then restarted the guest from virt-manager, booted fine, again I shutdown from within the guest.
On running the above script a second time, the machine hung, hard. I couldn't login through serial, sysrq keys didn't do anything.