New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual PCI rescan required after using qvm-pci to attach PCI devices to HVMs #3245

Open
qubesuser opened this Issue Oct 28, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@qubesuser

Qubes OS version:

R4.0-rc2

Steps to reproduce the behavior:

  1. Use qvm-pci to attach a PCI devices to a running HVM VM
  2. Run sudo lspci in the VM
  3. Run echo 1|sudo tee /sys/bus/pci/rescan in the VM
  4. Run sudo lspci in the VM

Expected behavior:

The PCI device is visible immediately after attaching with qvm-pci

Actual behavior:

The PCI device is only visible after rescanning the PCI bus in the VM.

General notes:

It looks like the Qemu machine model we are using might not support PCI hotplugging.

One option is to switch to one that does if possible (I guess q35 does?), and the other option is to just use qrexec to trigger a PCI rescan on the guest operating system.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Oct 28, 2017

Member

Does it work at all if VM initially had no PCI device at all?

Member

marmarek commented Oct 28, 2017

Does it work at all if VM initially had no PCI device at all?

@qubesuser

This comment has been minimized.

Show comment
Hide comment
@qubesuser

qubesuser Oct 28, 2017

I think it did for one device, while trying it for another device just triggered #3233 upon PCI rescan (which I now discovered is not related to using two devices apparently).

I think it did for one device, while trying it for another device just triggered #3233 upon PCI rescan (which I now discovered is not related to using two devices apparently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment