Skip to contentSkip to conversation

pci passthrough issue introduced between 4.14.1 and 4.15.0

DISCUSSION AL13N 2 participants 2 messages Jun 1, 2021

lore
Share & tools
lore

AL13N

author
#0 lore raw

Not 100% it's a bug or something i did wrong, but,

with xl create i start a PV with 3 pci passthroughs

after wards, xl pci-list shows all 3 nicely

looking at the domU boot logs, pcifront is only creating one pci device and lspci in the guest shows only 1 pci entry

in at least 4.14.1 it still works.

looking deeper, if you start with only 1 entry or 0 and you do pci-attach for the other pci entries, all of this works fine.

this is the pci section in question:

pci=['0000:04:00.0,permissive=1', '0000:00:1a.0,permissive=1,rdm_policy=relaxed,seize=1', '0000:00:1d.0,permissive=1,rdm_policy=relaxed,seize=1']

this works fine in 4.12.1 and 4.14.1, but fails in 4.15.0, however

booting with pci=['0000:04:00.0,permissive=1'] and then doing

[]# xl pci-attach <domain> '0000:00:1a.0,permissive=1,rdm_policy=relaxed,seize=1' []# xl pci-attach <domain> '0000:00:1d.0,permissive=1,rdm_policy=relaxed,seize=1'

also works,

Regards,

Maarten (alien on Libera and OFTC)

#1 lore raw
Quoted 22 lines · On Tue, Jun 1, 2021 at 8:34 AM AL13N <[email protected]> wrote:

Not 100% it's a bug or something i did wrong, but,

with xl create i start a PV with 3 pci passthroughs

after wards, xl pci-list shows all 3 nicely

looking at the domU boot logs, pcifront is only creating one pci device and lspci in the guest shows only 1 pci entry

in at least 4.14.1 it still works.

looking deeper, if you start with only 1 entry or 0 and you do pci-attach for the other pci entries, all of this works fine.

this is the pci section in question:

pci=['0000:04:00.0,permissive=1', '0000:00:1a.0,permissive=1,rdm_policy=relaxed,seize=1', '0000:00:1d.0,permissive=1,rdm_policy=relaxed,seize=1']

this works fine in 4.12.1 and 4.14.1, but fails in 4.15.0, however

Quoted 9 lines

booting with pci=['0000:04:00.0,permissive=1'] and then doing

[]# xl pci-attach <domain> '0000:00:1a.0,permissive=1,rdm_policy=relaxed,seize=1' []# xl pci-attach <domain> '0000:00:1d.0,permissive=1,rdm_policy=relaxed,seize=1'

also works,

Sounds like it might be a tools issue?

-George