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

[Xen-users] pci passthrough error "unknown command"pci-ins"


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Weald Wind <wealdwind@xxxxxxxxx>
  • Date: Fri, 7 May 2010 17:30:24 -0400
  • Delivery-date: Fri, 07 May 2010 14:32:01 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Q9C6Twphl3s7KhcyPnzvCwr8YkAyI94WS68SzU6c+xszarZ9pAhxaZ7sdBzl+Sxd2+ S7NwigIdNO46nN0feL/DpIw4/xoHImBd3TaZRTGxsZNutkFxTPuxCPbDLynLxt48Y5qv sqkQCc0lqE32DHNaU50e0qTmrD7mPgNuPDQS0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi All,

Please help me.

I am now installing the XEN on my PC and trying to config the pci pass through.

My motherboard is intel DQ45CB which is vtd enabled.
I downloaded the latest xen4.0 source from xen.org which is the latest release.
I downloaded stable-2.6.32-x dom0 kernel source from jeremy's repository.

After compiling the xen and dom0 kernel, I could play it. I could create hvm. And the VM was runing very well.

But when I configured the pci pass through, it always failed with  the following error:

root@charles-dq45:/opt/virtualmachines# xm pci-attach 1 0000:02:00.0

Error: Failed to assign device to IOMMU (0000:02:00.0@100,msitranslate=1,power_mgmt=0)
Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func> [virtual slot]
Insert a new pass-through pci device.



root@charles-dq45:~# tail  /var/log/xen/qemu-dm-win7.log

I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
Log-dirty: no command yet.
xs_read(/local/domain/1/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/1/log-throttling'
medium change watch on `/local/domain/1/log-throttling' - unknown device, ignored
cirrus vga map change while on lfb mode
mapping vram to f0000000 - f0400000
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state.
dm-command: unknown command"pci-ins"


when I compiled the xen-tools, it's said the pci pass has been enabled...

root@charles-dq45:/opt/xen-4.0.0/tools# make
....
qemu successfuly configured for Xen qemu-dm build
make -C ioemu-dir all
=== PCI passthrough capability has been enabled ===
make[2]: Entering directory `/data/opt/xen-4.0.0/tools/ioemu-qemu-xen'
  CC    audio/sdlaudio.o
  CC    sdl.o
  AR    libqemu_common.a
=== PCI passthrough capability has been enabled ===
=== PCI passthrough capability has been enabled ===
make[3]: Entering directory `/data/opt/xen-4.0.0/tools/ioemu-qemu-xen/i386-dm'
  CC    i386-dm/vl.o
/opt/xen-4.0.0/tools/ioemu-dir/vl.c: In function ‘main’:

....


root@charles-dq45:~# tail -f /var/log/xen/xend.log

[2010-05-07 17:01:13 4154] DEBUG (XendDomainInfo:903) XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '0000:02:00.0'], ['bus', '0x02'], ['vdevfn', '0x100'], ['func', '0x0']], ['state', 'Initialising']]
[2010-05-07 17:01:13 4154] DEBUG (XendDomainInfo:675) XendDomainInfo.hvm_pci_device_create: {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '0000:02:00.0', 'bus': '0x02', 'vdevfn': '0x100', 'func': '0x0', 'uuid': '125fbeb8-fcca-80ea-41af-6565b6f028f8'}], 'states': ['Initialising']}
[2010-05-07 17:01:13 4154] DEBUG (XendDomainInfo:801) XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x00', 'domain': '0x0000', 'key': '0000:02:00.0', 'bus': '0x02', 'vdevfn': '0x100', 'func': '0x0', 'uuid': '125fbeb8-fcca-80ea-41af-6565b6f028f8'}
[2010-05-07 17:01:13 4154] DEBUG (XendDomainInfo:822) XendDomainInfo.hvm_pci_device_insert_dev: 0000:02:00.0@100,msitranslate=1,power_mgmt=0


root@charles-dq45:~# xm dmesg

(XEN) VMX: Supported advanced features:
(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap
(XEN) HVM: ASIDs disabled.
(XEN) HVM: VMX enabled
(XEN) xsave_init: cpu0: cntxt_max_size: 0x240 and states: 00000000:00000003
(XEN) xsave_init: using cntxt_size: 0x240 and states: 00000000:00000003
(XEN) Intel VT-d Snoop Control not supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation not supported.
(XEN) Intel VT-d Interrupt Remapping not supported.
(XEN) I/O virtualisation enabled
(XEN) I/O virtualisation for PV guests disabled

root@charles-dq45:~# more menu.lst

title Xen4 Linux Dom0 2.6.32-xen0
root (hd0,0)
kernel /boot/xen-4.0.0.gz vtd=1 iommu=1 dom0_mem=2048M
module /boot/vmlinuz-2.6.32-xen0 root=/dev/md0 ro  xen_pciback.hide=(01:00.0)(02:00.0)
module /boot/initrd.img-2.6.32-xen0

root@charles-dq45:~# ls -l /sys/bus/pci/drivers/pciback
total 0
lrwxrwxrwx 1 root root    0 2010-05-07 16:35 0000:01:00.0 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0
lrwxrwxrwx 1 root root    0 2010-05-07 16:35 0000:02:00.0 -> ../../../../devices/pci0000:00/0000:00:1e.0/0000:02:00.0
--w------- 1 root root 4096 2010-05-07 16:35 bind
lrwxrwxrwx 1 root root    0 2010-05-07 16:35 module -> ../../../../module/xen_pciback
--w------- 1 root root 4096 2010-05-07 16:35 new_id
--w------- 1 root root 4096 2010-05-07 16:35 new_slot
-rw------- 1 root root 4096 2010-05-07 16:35 permissive
-rw------- 1 root root 4096 2010-05-07 16:35 quirks
--w------- 1 root root 4096 2010-05-07 16:35 remove_id
--w------- 1 root root 4096 2010-05-07 16:35 remove_slot
-r-------- 1 root root 4096 2010-05-07 16:35 slots
--w------- 1 root root 4096 2010-05-07 16:35 uevent
--w------- 1 root root 4096 2010-05-07 16:35 unbind

root@charles-dq45:~# xm pci-list-assignable-devices
0000:02:00.0
0000:01:00.0

root@charles-dq45:~# dmesg |grep pciback
[    0.000000] Command line: root=/dev/md0 ro i915.modeset=0 xen_pciback.hide=(01:00.0)(02:00.0)
[    0.000000] Kernel command line: root=/dev/md0 ro i915.modeset=0 xen_pciback.hide=(01:00.0)(02:00.0)
[    0.143801] pciback: wants to seize 0000:01:00.0
[    0.143804] pciback: wants to seize 0000:02:00.0
[    0.143814] pciback 0000:00:00.0: probing...
[    0.143826] pciback 0000:00:01.0: probing...
[    0.144008] pciback 0000:01:00.0: probing...
[    0.144010] pciback 0000:01:00.0: seizing device
[    0.144052] pciback 0000:01:00.0: pcistub_device_alloc
[    0.144055] pciback 0000:01:00.0: deferring initialization
[    0.144063] pciback 0000:02:00.0: probing...
[    0.144066] pciback 0000:02:00.0: seizing device
[    0.144107] pciback 0000:02:00.0: pcistub_device_alloc
[    0.144109] pciback 0000:02:00.0: deferring initialization
[    4.448616] pciback: pcistub_init_devices_late
[    4.448621] pciback 0000:02:00.0: initializing...
[    4.448624] pciback 0000:02:00.0: initializing config
[    4.448626] pciback 0000:02:00.0: initializing virtual configuration space
[    4.448630] pciback 0000:02:00.0: added config field at offset 0x00
[    4.448633] pciback 0000:02:00.0: added config field at offset 0x02
[
[    4.448672] pciback 0000:02:00.0: added config field at offset 0x30
[    4.448695] pciback 0000:02:00.0: Found capability 0x1 at 0x44
[    4.448698] pciback 0000:02:00.0: added config field at offset 0x44
[    
[    4.448713] pciback 0000:02:00.0: added config field at offset 0x4b
[    4.448719] pciback 0000:02:00.0: enabling device
[    4.448826] pciback 0000:02:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[    4.448872] pciback 0000:02:00.0: reset device
[    4.448880] pciback 0000:02:00.0: PCI INT A disabled
[    4.448924] pciback 0000:01:00.0: initializing...
[    4.448927] pciback 0000:01:00.0: initializing config
[    4.448930] pciback 0000:01:00.0: initializing virtual configuration space
[    4.448932] pciback 0000:01:00.0: added config field at offset 0x00
[    4.448935] pciback 0000:01:00.0: added config field at offset 0x02
[
[    4.448996] pciback 0000:01:00.0: Found capability 0x1 at 0x60
[    4.448999] pciback 0000:01:00.0: added config field at offset 0x60
[    4.449002] pciback 0000:01:00.0: added config field at offset 0x62
[    4.449013] pciback 0000:01:00.0: added config field at offset 0x67
[    4.449015] pciback 0000:01:00.0: enabling device
[    4.449024] pciback 0000:01:00.0: enabling device (0000 -> 0003)
[    4.449185] pciback 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    4.449774] pciback 0000:01:00.0: reset device
[    4.449779] pciback 0000:01:00.0: PCI INT A disabled

root@charles-dq45:~# dmesg |grep acpiphp
[    4.440713] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.