refutationalist / saur

Sam's AUR -- personal Arch packages
4 stars 5 forks source link

xen: Fix a race condition adding devices to stubdomains during startup #19

Closed RA-Kooi closed 5 months ago

RA-Kooi commented 6 months ago

Fixes a race condition where QEMU tries to access sysfs entries before xen-pcifront materializes them, and a race condition where it breaks IGD passthrough. In the IGD case the IGD device would be assigned the PCI ID 0000:00:00.0 whereas that ID belongs to the host bridge. To fix both issues we assign all PCI devices before unpausing the stubdomain, effectively coldplugging them.

refutationalist commented 5 months ago

I'm noticing my intel machine crashes on reboot. Something I'll need to look at, but it likely doesn't have anything to do with these patches. Just noting it for my own purposes.

RA-Kooi commented 5 months ago

This is dom0? Or a domU? Also are any VMs still running when you do a reboot?

refutationalist commented 5 months ago

It's a domU, an HP z840 with dual xeons. It's the only machine I have running Xen that won't do PVH domU, so it's a bit of an odd duck. I probably should have put it elsewhere but I noticed it on this patch.