Mailing List Archive

kernel parameter for multiple pci hide?
Hi All

I've a problem with the kernel parameter xen-pciback.hide.

This works:

xen-pciback.hide=(01:00.0)

dmesg:
pciback 0000:01:00.0: seizing device
pciback 0000:01:00.0: enabling device (0000 -> 0003)
xen_pciback: backend is vpci

this doesnt work (syntax from official xen docu):

xen-pciback.hide=(01:00.0)(01.00.1)

dmesg:
xen_pciback: Error parsing pci_devs_to_hide at "(01:00.01)"

what is the correct syntax for it?

--
------
Greetz

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: kernel parameter for multiple pci hide? [ In reply to ]
my grub.cfg lists:

module  /kernel-5.3.7-xen0 placeholder root=/dev/sda3 ro
init=/lib/systemd/systemd xen-pciback.hide=(04:00.0)(00:14.0)
rootfstype=ext4 [...]

xen ~ # dmesg|grep pcib
[    0.000000] Command line: placeholder root=/dev/sda3 ro
init=/lib/systemd/systemd xen-pciback.hide=(04:00.0)(00:14.0)
rootfstype=ext4 net.ifnames=0 reassign_resources noirqdebug
[    6.581153] Kernel command line: placeholder root=/dev/sda3 ro
init=/lib/systemd/systemd xen-pciback.hide=(04:00.0)(00:14.0)
rootfstype=ext4 net.ifnames=0 reassign_resources noirqdebug
[    7.360586] pciback 0000:00:14.0: seizing device
[    7.360622] pciback 0000:04:00.0: seizing device

xen_version  is 4.12.1

perhaps your syntax is just incorrect: (01.00.1) instead of (01:00.1).

regards,
Christian

Hi All
>
> I've a problem with the kernel parameter xen-pciback.hide.
>
> This works:
>
> xen-pciback.hide=(01:00.0)
>
> dmesg:
> pciback 0000:01:00.0: seizing device
> pciback 0000:01:00.0: enabling device (0000 -> 0003)
> xen_pciback: backend is vpci
>
> this doesnt work (syntax from official xen docu):
>
> xen-pciback.hide=(01:00.0)(01.00.1)
>
> dmesg:
> xen_pciback: Error parsing pci_devs_to_hide at "(01:00.01)"
>
> what is the correct syntax for it?
>
> --
> ------
> Greetz
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xenproject.org
> https://lists.xenproject.org/mailman/listinfo/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: kernel parameter for multiple pci hide? [ In reply to ]
On 19.12.19 10:45, Christoph wrote:
> Hi All
>
> I've a problem with the kernel parameter xen-pciback.hide.
>
> This works:
>
> xen-pciback.hide=(01:00.0)
>
> dmesg:
> pciback 0000:01:00.0: seizing device
> pciback 0000:01:00.0: enabling device (0000 -> 0003)
> xen_pciback: backend is vpci
>
> this doesnt work (syntax from official xen docu):
>
> xen-pciback.hide=(01:00.0)(01.00.1)
>
> dmesg:
> xen_pciback: Error parsing pci_devs_to_hide at "(01:00.01)"

Either you quoted your parameter not correct, or the error message
was different.

The error message string doesn't occur anywhere in your parameter.

According to the code (kernel 5.4)

xen-pciback.hide=(01:00.0)(01:00.1)

should work.

The Xen wiki had a typo in the xen-pciback.hide example (the second
device specification used a "." instead of a ":"). I've corrected that.


Juergen

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users