I’m trying to follow the guides written by David Techer and Teo En Ming on passing through my video card to one of my virtual machines. However, I had run into an interesting conumdrum.
Both of them have a similar section about getting the memory ranges for the MMIO BARS:
root@mercury:~# dmesg | grep 01:00.0 | grep BAR
[ 2.883158] pci 0000:01:00.0: BAR 0: reserving [mem 0xf8000000-0xf9ffffff flags 0x40200] (d=0, p=0)
[ 2.883161] pci 0000:01:00.0: BAR 1: reserving [mem 0xd0000000-0xd7ffffff flags 0x14220c] (d=0, p=0)
[ 2.883163] pci 0000:01:00.0: BAR 3: reserving [mem 0xd8000000-0xdbffffff flags 0x14220c] (d=0, p=0)
[ 2.883166] pci 0000:01:00.0: BAR 5: reserving [io 0xe000-0xe07f flags 0x40101] (d=0, p=0)
dmesg | grep 01:00.0 | grep "pci.*mem"
[ 0.120488] pci 0000:01:00.0: reg 10: [mem 0xd2000000-0xd2ffffff]
[ 0.120508] pci 0000:01:00.0: reg 14: [mem 0xc0000000-0xcfffffff 64bit pref]
[ 0.120528] pci 0000:01:00.0: reg 1c: [mem 0xd0000000-0xd1ffffff 64bit pref]
[ 0.120556] pci 0000:01:00.0: reg 30: [mem 0xd3000000-0xd307ffff pref]
Well, here is my problem..
dmesg | grep 01:00.0
pci 0000:01:00.0: BAR 6: assigned [mem 0xcd000000-0xcd01ffff pref]
pci 0000:01:00.0: Boot video device
pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
I only have a single range. Did I do something wrong somewhere in my kernel? And if so, what?
MarcT