Skip to content

Conversation

@psafont
Copy link
Member

@psafont psafont commented Dec 12, 2024

QEMU orders devices by the time of plugging. Parallelizing them introduces randomness, which breaks the assumption that devices are ordered in a deterministic way.

Serialize all PCI and VUSB plugs to restore behaviour.

This fix has been manually tested by @freddy77 against an affected VM relying on the ordering

QEMU orders devices by the time of plugging. Parallelizing them introduces
randomness, which breaks the assumption that devices are ordered in a
deterministic way.

Serialize all PCI and VUSB plugs to restore behaviour.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
@psafont
Copy link
Member Author

psafont commented Dec 12, 2024

We could parallelize the plugs, but then the slot information needs to be calculated in a deterministic way, at least per-host, and before plugging

@psafont psafont added this pull request to the merge queue Dec 12, 2024
Merged via the queue into xapi-project:master with commit 9aa2baa Dec 12, 2024
15 checks passed
@psafont psafont deleted the private/paus/order_some_plugs branch December 12, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants