foxlet / vmra1n

Guide on setting up checkra1n in QEMU.
63 stars 24 forks source link

Had to add "addr=1c.0" to pcie-root-port device #9

Open seanjseymour opened 4 years ago

seanjseymour commented 4 years ago

Hi, posting this so hopefully it helps other clueless people like me. I followed all the instructions exactly but couldn't get passthrough working. After going down many internet rabbit holes I ended up finding this great page which eventually led me to narrow down my issue. In the end, I had to change my pcie-root-port device line from this:

-device pcie-root-port,bus=pcie.0,multifunction=on,port=1,chassis=1,id=port.1 \

to this:

-device pcie-root-port,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=port.1 \

Which ended up with me having these two lines:

-device pcie-root-port,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=port.1 \
-device vfio-pci,host=00:1a.0,bus=port.1 \

Which finally worked!

If someone who knows anything about this can chime in to explain why, I would be grateful.

Thanks!