Port-xen archive

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

Re: iommu hardware and vga pass through with nbsd 6 dom0



Am 15.01.2013 13:20, schrieb Manuel Bouyer:
Putting the primary vga adapter on the pci.hide list during boot of
nbsd dom0 didn't seem logical to me - so I have NOT tried this.

Of course you should hide the device from dom0. You can't have 2
independant OS using the same hardware. In addition, xl can give the
device only if it's handled by the pciback driver in dom0.

Also, hiding the PCI adapter won't prevent the dom0 from using the
legacy VGA registers, which will also be used by the HVM domU. So you should
remove any VGA device from the dom0 kernel completely. Of course this means
you'll have to use a serial console for dom0.

Hello Manuel,
Thanks for your response and excuse my naivity.

Before compiling a new dom0 kernel, I picked up other PCI devices (two USB 3 controller) and tried to pass them through. The dmesg output reports them in the pciback.hide messages.

But creating the domain with xl create gives:
libxl: error: libxl_pci.c:750:libxl_device_pci_reset The kernel doesn't support reset from sysfs for PCI device 0000:02:00.0 libxl: error: libxl_pci.c:750:libxl_device_pci_reset The kernel doesn't support reset from sysfs for PCI device 0000:04:00.0

The IOMMU is enabled.

Isn't it possibel to pass through USB onboard PCI devices?

Regards,
Marcus


[boot.cfg]
menu=Boot XEN dom0 (serial):load /netbsd-XEN3_DOM0.gz console=com0 pciback.hide=(02:00.0)(04:00.0);multiboot /xen.gz dom0_mem=256M iommu=1 console=com1 com1=115200,8n

netbsd# dmesg|grep pciback
pciback_pci_init: hide claim device 2:0:0
pciback_pci_init: hide claim device 4:0:0
pciback0 at pci2 dev 0 function 0: vendor 0x1b6f product 0x7023 (rev. 0x01)
pciback0: mem: 0xfd4f8000 - 0x00008000
pciback0: interrupting at ioapic0 pin 16, event channel 6
pciback1 at pci4 dev 0 function 0: vendor 0x1b6f product 0x7023 (rev. 0x01)
pciback1: mem: 0xfdbf8000 - 0x00008000
pciback1: interrupting at ioapic0 pin 18, event channel 7

xm dmesg:
(XEN) AMD-Vi: IOMMU 0 Enabled.
(XEN) AMD-Vi: Enabling global vector map
(XEN) I/O virtualisation enabled
(XEN)  - Dom0 mode: Relaxed

before create:
netbsd# xl pci-list-assignable-devices
0000:02:00.0
0000:04:00.0

config:
xen_platform_pci=1
[..]
pci=[ '02:00.0', '04:00.0' ]



Home | Main Index | Thread Index | Old Index