Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 6 - Xen 4.2.3 pciback support?



Btw sorry Manuel I missed the reply where you said:

"BTW I'm not sure wht it's trying to access /sys/bus/pci.
patch-libxl_libxl__internal.h changes this to /kern/xen/pci for
NetBSD.


--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>"


I was just looking at the path and indeed this does not make sense,
there must be somewhere else where this is defined again.

I'm clueless about the /sys/bus/pci/drivers/pciback/slots

In a linux Dom0 (debian) I see all this:
# ls -l /sys/bus/pci/drivers/pciback/
total 0
--w------- 1 root root 4096 Jan 11 17:38 bind
-r-------- 1 root root 4096 Jan 11 17:38 irq_handlers
--w------- 1 root root 4096 Jan 11 17:38 irq_handler_state
lrwxrwxrwx 1 root root    0 Jan 11 17:38 module ->
../../../../module/xen_pciback
--w------- 1 root root 4096 Jan 11 17:38 new_id
--w------- 1 root root 4096 Jan 11 17:38 new_slot
-rw------- 1 root root 4096 Jan 11 17:38 permissive
-rw------- 1 root root 4096 Jan 11 17:38 quirks
--w------- 1 root root 4096 Jan 11 17:38 remove_id
--w------- 1 root root 4096 Jan 11 17:38 remove_slot
-r-------- 1 root root 4096 Jan 11 17:38 slots
--w------- 1 root root 4096 Jan 11 17:38 uevent
--w------- 1 root root 4096 Jan 11 17:38 unbind

Its clearly very different from NetBSD

Thanks

On Sun, Jan 12, 2014 at 12:59 AM, Miguel Clara 
<miguelmclara%gmail.com@localhost> wrote:
> Yeah I tried a symlink just before you posted, and noticed that now I get:
>
> yoda# xl pci-assignable-add 04:02.0
> libxl: warning: libxl_pci.c:665:libxl__device_pci_assignable_add:
> 0000:04:02.0 not bound to a driver, will
> libxl: error: libxl_pci.c:488:pciback_dev_has_slot: Couldn't open
> /sys/bus/pci/drivers/pciback/slots: No su
> libxl: error: libxl_pci.c:533:pciback_dev_assign: Error checking for
> pciback slot: No such file or director
> libxl: error: libxl_pci.c:670:libxl__device_pci_assignable_add:
> Couldn't bind device to pciback!
>
>
> So the symlink Is a (ugly) workaround the issue, authouugh in this
> specific case its not hard to adapt the patch, but I have know idea
> where /sys/bus/pci/drivers/pciback/slots would be in NetBSD.
>
>
> Thanks


Home | Main Index | Thread Index | Old Index