Skip to content

Conversation

@kkaprolat
Copy link

Closes #410

This PR moves the command line snippet for PCI devices near the beginning of the QEMU command to support specifying PCI address 2.0 for e.g. passing through iGPUs which require this exact address.

Please note that this only fixes my issue with iGPU passthrough. Other VMs without passthrough and one with USB passthrough still work as before.
I'm really not happy with this solution, as if at any point someone else wants to set a low address to any other device after the passthrough devices, this problem will come up again. Ideally, this would be fixed upstream by QEMU.

@astro
Copy link
Member

astro commented Dec 1, 2025

Did you open an upstream ticket?

@kkaprolat
Copy link
Author

Just did: qemu-project/qemu - issue 3227

@astro
Copy link
Member

astro commented Dec 1, 2025

Thanks for reaching out. Looks like it won't be resolved upstream, so I'm going to merge this with some minor indentation fixup.

@kkaprolat
Copy link
Author

Seems like it. I didn't expect this to be that involved.

Thanks for your help!

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.

Cannot assign PCI slot to device because of virtiofs

2 participants