PCI Passthrough Problems/Questions
Quoted 2 lines
Quoted 1 line
Quoted 1 line
"Han, Weidong" 10/27/10 10:38 PM >>>
I don't want xend.log. I want xen log (xm dmesg or captured by serial port). And pls also post qemu log (
/var/log/xen/dm-qemu-xxx.log).
Sorry about that, attached are the output from xm dmesg and the qemu-dm-XP.log file.
-Nick
--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.
: ASIDs disabled.
(XEN) HVM: VMX enabled
(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) - Dom0 mode: Relaxed
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using old ACK method
(XEN) checking TSC synchronization across 4 CPUs: passed. (XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) Brought up 4 CPUs
(XEN) Created cpupool 0 with scheduler SMP Credit Scheduler (credit) (XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, lsb, paddr 0x2000 -> 0x8af000 (XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000112000000->0000000114000000 (951968 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: ffffffff80002000->ffffffff808af000 (XEN) Init. ramdisk: ffffffff808af000->ffffffff81e7a600 (XEN) Phys-Mach map: ffffea0000000000->ffffea0000753500 (XEN) Start info: ffffffff81e7b000->ffffffff81e7b4b4 (XEN) Page tables: ffffffff81e7c000->ffffffff81e8f000 (XEN) Boot stack: ffffffff81e8f000->ffffffff81e90000 (XEN) TOTAL: ffffffff80000000->ffffffff82000000 (XEN) ENTRY ADDRESS: ffffffff80002000
(XEN) Dom0 has maximum 4 VCPUs
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 8<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 16[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:2.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 17[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:2.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 24[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:3.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 26[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:3.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 27[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:3.3 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 200[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:19.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 208[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 209[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 210[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 215[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.7 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 216[VT-D]iommu.c:1358: d0:PCIe: map bdf = 0:1b.0 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 224<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 225<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 232[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 233[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 234[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 239[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.7 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 240<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 248[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1f.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 250[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1f.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 251[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1f.3 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 1, devfn: 0<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff55000 (XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff56000 (XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff57000 (XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff54000 (XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen) (XEN) Freed 180kB init memory.
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d1:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d1:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d1:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=0 domain=1 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d1: bind: m_gsi=16 g_gsi=36 device=5 intx=0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d1:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d1:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d1:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d1: bind: m_gsi=16 g_gsi=40 device=6 intx=0
(XEN) [VT-D]iommu.c:1511: d1:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d1:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=1 domain=0 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d2:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d2:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d2:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=0 domain=2 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d2: bind: m_gsi=16 g_gsi=36 device=5 intx=0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d2:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d2:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d2:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d2: bind: m_gsi=16 g_gsi=40 device=6 intx=0
(XEN) [VT-D]iommu.c:1511: d2:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d2:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=2 domain=0 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d3:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d3:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d3:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=0 domain=3 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d3: bind: m_gsi=16 g_gsi=36 device=5 intx=0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d3:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d3:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d3:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d3: bind: m_gsi=16 g_gsi=40 device=6 intx=0
(XEN) [VT-D]iommu.c:1511: d3:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d3:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=3 domain=0 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d4:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d4:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d4:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=0 domain=4 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d4: bind: m_gsi=16 g_gsi=36 device=5 intx=0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d4:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d4:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d4:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d4: bind: m_gsi=16 g_gsi=40 device=6 intx=0
(XEN) [VT-D]iommu.c:1511: d4:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d4:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=4 domain=0 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d5:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d5:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d5:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=0 domain=5 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d5: bind: m_gsi=16 g_gsi=36 device=5 intx=0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d5:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d5:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d5:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d5: bind: m_gsi=16 g_gsi=40 device=6 intx=0
(XEN) [VT-D]iommu.c:1511: d5:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d5:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=5 domain=0 (XEN) [VT-D]iommu.c:1415: Return value: 0
domid: 5
config qemu network with xen bridge for tap5.0 br0
Using file /dev/local/XP in read-write mode
Watching /local/domain/0/device-model/5/logdirty/cmd
Watching /local/domain/0/device-model/5/command
char device redirected to /dev/pts/1qemu_map_cache_init nr_buckets = 10000 size 4194304 /usr/src/packages/BUILD/xen-4.0.1-testing/tools/ioemu-dir/hw/xen_blktap.c:715: Init blktap pipes shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 8f6bf60c-f931-d1a5-efda-cbbe66724cfa
Time offset set 0
populating video RAM at ff000000do_xenmem_op_retry: cmd 6 count 400
mapping video RAM from ff000000
Register xen platform.
Done register platform.platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/5/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/8f6bf60c-f931-d1a5-efda-cbbe66724cfa/vncpasswd. medium change watch on `hdc' (index: 1):
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 xs_read(/local/domain/5/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/5/log-throttling'
medium change watch on `/local/domain/5/log-throttling' - unknown device, ignored
dm-command: hot insert pass-through pci devregister_real_device: Assigning real physical device 02:00.0 ...register_real_device: Enable MSI translation via per device optionregister_real_device: Disable power managementpt_iomul_init: Error: pt_iomul_init: No such device: setup io multiplexing failed! 0x2:0x0.0x0pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dc81)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79fc000)pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dca1)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79fd000)pci_intx: intx=1register_real_device: Real physical device 02:00.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci devregister_real_device: Assigning real physical device 02:00.1 ...register_real_device: Enable MSI translation via per device optionregister_real_device: Disable power managementpt_iomul_init: Error: pt_iomul_init: No such device: setup io multiplexing failed! 0x2:0x0.0x1pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dcc1)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79fe000)pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dce1)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79ff000)pci_intx: intx=1register_real_device: Real physical device 02:00.1 registered successfuly!
IRQ type = INTx
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Nick Couchman
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
"Han, Weidong" 10/27/10 10:38 PM >>>
I don't want xend.log. I want xen log (xm dmesg or captured by serial port). And pls also post qemu log (
/var/log/xen/dm-qemu-xxx.log).Sorry about that, attached are the output from xm dmesg and the qemu-dm-XP.log file.
qemu-dm-XP.log looks fine. Per "xm dmesg" log, unmap[ing and mapping 00:02.0 and 00:02.1 are no problem. But why are there many unmap and map (d1 -> d5)? did you create guest 5 times? Could you describe the crash you encountered? BTW, the "xm dmesg" log looks not complete, it should include following logs when you create hvm guest:
(XEN) HVM1: HVM Loader
(XEN) HVM1: Detected Xen v4.0.0-rc3-pre
(XEN) HVM1: CPU speed is 2533 MHz
...
and pls add "iommu=verbose" in grub to get more VT-d info.
Regards,
Weidong
Quoted 11 lines
qemu-dm-XP.log looks fine. Per "xm dmesg" log, unmap[ing and mapping 00:02.0 and 00:02.1 are no problem. But why are there many unmap and map (d1 -> d5)? did you create guest 5 times? Could you describe the crash you encountered? BTW, the "xm dmesg" log looks not complete, it should include following logs when you create hvm guest:
(XEN) HVM1: HVM Loader
(XEN) HVM1: Detected Xen v4.0.0-rc3-pre
(XEN) HVM1: CPU speed is 2533 MHz
...
Quoted 4 lines
and pls add "iommu=verbose" in grub to get more VT-d info.
Regards,
Weidong
Weidong,
First, I have the following already specified on the xen.gz kernel line in grub:
loglevel=all guest_lvl=all iommu=verbose
Yes, I had started the guest five times...I've rebooted the system and started it once, and have attached the log files. As far as the domU crashing - there's not much to describe. There is no longer any error after issuing XM start, but the domU doesn't ever get to the point of displaying anything on the screen - it crashes almost as soon as the xm start command is issued (right after doing "xm start" the "xm list" command shows the domU not running). So, the log file is going to be the only form of output I can get you - there's nothing to report from the screen. I don't see the output you mentioned anywhere in xm dmesg.
-Nick
--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.
domid: 1
config qemu network with xen bridge for tap1.0 br0
Using file /dev/local/XP in read-write mode
Watching /local/domain/0/device-model/1/logdirty/cmd
Watching /local/domain/0/device-model/1/command
char device redirected to /dev/pts/1qemu_map_cache_init nr_buckets = 10000 size 4194304 /usr/src/packages/BUILD/xen-4.0.1-testing/tools/ioemu-dir/hw/xen_blktap.c:715: Init blktap pipes shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 8f6bf60c-f931-d1a5-efda-cbbe66724cfa
Time offset set 0
populating video RAM at ff000000do_xenmem_op_retry: cmd 6 count 400
mapping video RAM from ff000000
Register xen platform.
Done register platform.platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/8f6bf60c-f931-d1a5-efda-cbbe66724cfa/vncpasswd. medium change watch on `hdc' (index: 1):
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 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
dm-command: hot insert pass-through pci devregister_real_device: Assigning real physical device 02:00.0 ...register_real_device: Enable MSI translation via per device optionregister_real_device: Disable power managementpt_iomul_init: Error: pt_iomul_init: No such device: setup io multiplexing failed! 0x2:0x0.0x0pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dc81)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79fc000)pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dca1)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79fd000)pci_intx: intx=1register_real_device: Real physical device 02:00.0 registered successfuly!
IRQ type = INTx
dm-command: hot insert pass-through pci devregister_real_device: Assigning real physical device 02:00.1 ...register_real_device: Enable MSI translation via per device optionregister_real_device: Disable power managementpt_iomul_init: Error: pt_iomul_init: No such device: setup io multiplexing failed! 0x2:0x0.0x1pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dcc1)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79fe000)pt_register_regions: IO region registered (size=0x00000020 base_addr=0x0000dce1)pt_register_regions: IO region registered (size=0x00001000 base_addr=0xf79ff000)pci_intx: intx=1register_real_device: Real physical device 02:00.1 registered successfuly!
IRQ type = INTx
__ __ _ _ ___ _
\ \/ /___ _ __ | || | / _ \ / | \ // _ \ '_ \ | || |_| | | || | / \ __/ | | | |__ _| |_| || | /_/\_\___|_| |_| |_|(_)___(_)_|
(XEN) Xen version 4.0.1 ([email protected]) (gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) ) Wed Oct 27 08:49:08 MDT 2010 (XEN) Latest ChangeSet: unavailable
(XEN) Bootloader: GNU GRUB 0.97
(XEN) Command line: console=com2 com2=115200,8n1,0xecb8,0 loglevel=all guest_lvl=all iommu=verbose
(XEN) Video information:
(XEN) VGA is text mode 80x25, font 8x16
(XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN) Found 1 MBR signatures
(XEN) Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 - 000000000009a800 (usable) (XEN) 00000000000f0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 00000000dd9ffc00 (usable) (XEN) 00000000dd9ffc00 - 00000000dda53c00 (ACPI NVS) (XEN) 00000000dda53c00 - 00000000dda55c00 (ACPI data) (XEN) 00000000dda55c00 - 00000000e0000000 (reserved) (XEN) 00000000f8000000 - 00000000fc000000 (reserved) (XEN) 00000000fec00000 - 00000000fed00400 (reserved) (XEN) 00000000fed20000 - 00000000feda0000 (reserved) (XEN) 00000000fee00000 - 00000000fef00000 (reserved) (XEN) 00000000ffb00000 - 0000000100000000 (reserved) (XEN) 0000000100000000 - 0000000118000000 (usable) (XEN) ACPI: RSDP 000FEC00, 0024 (r2 DELL ) (XEN) ACPI: XSDT 000FC7E9, 0074 (r1 DELL B10K 15 ASL 61) (XEN) ACPI: FACP 000FC919, 00F4 (r3 DELL B10K 15 ASL 61) (XEN) ACPI: DSDT FFE9FB93, 5035 (r1 DELL dt_ex 1000 INTL 20050624) (XEN) ACPI: FACS DD9FFC00, 0040 (XEN) ACPI: SSDT FFEA4CE9, 00AC (r1 DELL st_ex 1000 INTL 20050624) (XEN) ACPI: APIC 000FCA0D, 0092 (r1 DELL B10K 15 ASL 61) (XEN) ACPI: BOOT 000FCA9F, 0028 (r1 DELL B10K 15 ASL 61) (XEN) ACPI: ASF! 000FCAC7, 0096 (r32 DELL B10K 15 ASL 61) (XEN) ACPI: MCFG 000FCB5D, 003C (r1 DELL B10K 15 ASL 61) (XEN) ACPI: HPET 000FCB99, 0038 (r1 DELL B10K 15 ASL 61) (XEN) ACPI: TCPA 000FCDF5, 0032 (r1 DELL B10K 15 ASL 61) (XEN) ACPI: DMAR 000FCE27, 0120 (r1 DELL B10K 15 ASL 61) (XEN) ACPI: SLIC 000FCBD1, 0176 (r1 DELL B10K 15 ASL 61)
(XEN) System RAM: 3929MB (4023908kB)
(XEN) Domain heap initialised
(XEN) Processor #0 7:7 APIC version 20
(XEN) Processor #1 7:7 APIC version 20
(XEN) Processor #2 7:7 APIC version 20
(XEN) Processor #3 7:7 APIC version 20
(XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23 (XEN) Enabling APIC mode: Flat. Using 1 I/O APICs
(XEN) [VT-D]dmar.c:702: Host address width 36
(XEN) [VT-D]dmar.c:717: found ACPI_DMAR_DRHD:
(XEN) [VT-D]dmar.c:413: dmaru->address = fedc1000
(XEN) [VT-D]iommu.c:1105: drhd->address = fedc1000 iommu->reg = ffff82c3fff57000 (XEN) [VT-D]iommu.c:1107: cap = c9008020e30272 ecap = 1000
(XEN) [VT-D]dmar.c:341: endpoint: 0:1b.0
(XEN) [VT-D]dmar.c:717: found ACPI_DMAR_DRHD:
(XEN) [VT-D]dmar.c:413: dmaru->address = fedc2000
(XEN) [VT-D]iommu.c:1105: drhd->address = fedc2000 iommu->reg = ffff82c3fff56000 (XEN) [VT-D]iommu.c:1107: cap = c0000020630272 ecap = 1000
(XEN) [VT-D]dmar.c:341: endpoint: 0:2.0
(XEN) [VT-D]dmar.c:341: endpoint: 0:2.1
(XEN) [VT-D]dmar.c:717: found ACPI_DMAR_DRHD:
(XEN) [VT-D]dmar.c:413: dmaru->address = fedc3000
(XEN) [VT-D]iommu.c:1105: drhd->address = fedc3000 iommu->reg = ffff82c3fff55000 (XEN) [VT-D]iommu.c:1107: cap = c0000020630272 ecap = 1000
(XEN) [VT-D]dmar.c:341: endpoint: 0:3.0 (XEN) [VT-D]dmar.c:341: endpoint: 0:3.2 (XEN) [VT-D]dmar.c:341: endpoint: 0:3.3
(XEN) [VT-D]dmar.c:717: found ACPI_DMAR_DRHD:
(XEN) [VT-D]dmar.c:413: dmaru->address = fedc4000
(XEN) [VT-D]iommu.c:1105: drhd->address = fedc4000 iommu->reg = ffff82c3fff54000 (XEN) [VT-D]iommu.c:1107: cap = c9008020630272 ecap = 1000
(XEN) [VT-D]dmar.c:427: flags: INCLUDE_ALL
(XEN) [VT-D]dmar.c:722: found ACPI_DMAR_RMRR:
(XEN) [VT-D]dmar.c:341: endpoint: 0:1d.0 (XEN) [VT-D]dmar.c:341: endpoint: 0:1d.1 (XEN) [VT-D]dmar.c:341: endpoint: 0:1d.2 (XEN) [VT-D]dmar.c:341: endpoint: 0:1d.7 (XEN) [VT-D]dmar.c:341: endpoint: 0:1a.0 (XEN) [VT-D]dmar.c:341: endpoint: 0:1a.1 (XEN) [VT-D]dmar.c:341: endpoint: 0:1a.2 (XEN) [VT-D]dmar.c:341: endpoint: 0:1a.7 (XEN) [VT-D]dmar.c:594: RMRR region: base_addr dda58000 end_address dda6ffff (XEN) [VT-D]dmar.c:722: found ACPI_DMAR_RMRR: (XEN) [VT-D]dmar.c:341: endpoint: 0:2.0 (XEN) [VT-D]dmar.c:341: endpoint: 0:2.1 (XEN) [VT-D]dmar.c:594: RMRR region: base_addr ddc00000 end_address dfffffff
(XEN) Using scheduler: SMP Credit Scheduler (credit) (XEN) Detected 2660.082 MHz processor.
(XEN) Initing memory sharing.
(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) 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) - Dom0 mode: Relaxed
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using old ACK method
(XEN) checking TSC synchronization across 4 CPUs: passed. (XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) Brought up 4 CPUs
(XEN) Created cpupool 0 with scheduler SMP Credit Scheduler (credit) (XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, lsb, paddr 0x2000 -> 0x8af000 (XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000112000000->0000000114000000 (951968 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: ffffffff80002000->ffffffff808af000 (XEN) Init. ramdisk: ffffffff808af000->ffffffff81e7a600 (XEN) Phys-Mach map: ffffea0000000000->ffffea0000753500 (XEN) Start info: ffffffff81e7b000->ffffffff81e7b4b4 (XEN) Page tables: ffffffff81e7c000->ffffffff81e8f000 (XEN) Boot stack: ffffffff81e8f000->ffffffff81e90000 (XEN) TOTAL: ffffffff80000000->ffffffff82000000 (XEN) ENTRY ADDRESS: ffffffff80002000
(XEN) Dom0 has maximum 4 VCPUs
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 8<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 16[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:2.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 17[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:2.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 24[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:3.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 26[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:3.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 27[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:3.3 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 200[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:19.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 208[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 209[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 210[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 215[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1a.7 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 216[VT-D]iommu.c:1358: d0:PCIe: map bdf = 0:1b.0 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 224<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 225<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 232[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 233[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 234[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 239[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1d.7 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 240<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 248[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1f.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 250[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1f.2 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 0, devfn: 251[VT-D]iommu.c:1368: d0:PCI: map bdf = 0:1f.3 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 1, devfn: 0<0>[VT-D]iommu.c:1415: Return value: 0 (XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff55000 (XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff56000 (XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff57000 (XEN) [VT-D]iommu.c:722: iommu_enable_translation: iommu->reg = ffff82c3fff54000 (XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen) (XEN) Freed 180kB init memory.
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d1:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d1:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d1:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=0 domain=1 (XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d1: bind: m_gsi=16 g_gsi=36 device=5 intx=0
(XEN) [VT-D]iommu.c:1511: d0:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d1:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d1:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d1:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]io.c:300: d1: bind: m_gsi=16 g_gsi=40 device=6 intx=0
(XEN) [VT-D]iommu.c:1511: d1:PCI: unmap bdf = 2:0.1
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 1[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.1 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1415: Return value: 0
(XEN) [VT-D]iommu.c:1511: d1:PCI: unmap bdf = 2:0.0
(XEN) [VT-D]iommu.c:1340: bus: 2, devfn: 0[VT-D]iommu.c:1368: d0:PCI: map bdf = 2:0.0 (XEN) [VT-D]iommu.c:1371: domain_conext_mapping_one ret: 0
(XEN) [VT-D]iommu.c:1378: Upstream bridge for 1:0 is 2.
(XEN) [VT-D]iommu.c:1383: d0:PCI: map PCIe2PCI bdf = 1:0.0
(XEN) [VT-D]iommu.c:1394: d0:PCI: map secbus (2) with devfn 0
(XEN) [VT-D]iommu.c:1249: context_present: 2:0.0:pdev->domain=1 domain=0 (XEN) [VT-D]iommu.c:1415: Return value: 0
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 28 lines · Nick Couchman
Quoted 11 lines
qemu-dm-XP.log looks fine. Per "xm dmesg" log, unmap[ing and mapping 00:02.0 and 00:02.1 are no problem. But why are there many unmap and map (d1 -> d5)? did you create guest 5 times? Could you describe the crash you encountered? BTW, the "xm dmesg" log looks not complete, it should include following logs when you create hvm guest:
(XEN) HVM1: HVM Loader
(XEN) HVM1: Detected Xen v4.0.0-rc3-pre
(XEN) HVM1: CPU speed is 2533 MHz
...and pls add "iommu=verbose" in grub to get more VT-d info.
Regards,
WeidongWeidong,
First, I have the following already specified on the xen.gz kernel line in grub:loglevel=all guest_lvl=all iommu=verbose
Yes, I had started the guest five times...I've rebooted the system and started it once, and have attached the log files. As far as the domU crashing - there's not much to describe. There is no longer any error after issuing XM start, but the domU doesn't ever get to the point of displaying anything on the screen - it crashes almost as soon as the xm start command is issued (right after doing "xm start" the "xm list" command shows the domU not running). So, the log file is going to be the only form of output I can get you - there's nothing to report from the screen. I don't see the output you mentioned anywhere in xm dmesg.
Quoted 4 lines
-Nick
The logs look no problem. I'm wondering if the device implies PCI standard. At last, I think you can try: only assign 02:00.0 (pci=[02:00.0]), or assign them as multiple devices in guest (pci=[02:00.0-1]).
Regards,
Weidong
Quoted 4 lines
--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.
Quoted 10 lines
Quoted 3 lines
The logs look no problem. I'm wondering if the device implies PCI standard. At last, I think you can try: only assign 02:00.0 (pci=[02:00.0]), or assign them as multiple devices in guest (pci=[02:00.0-1]).
Regards,
Weidong
Should have tried that on my own. Forwarding just 02:00.0 through worked just fine!
So, the patch you had me apply to the Xen 4 source - is that a final version of the patch, or is there still some work to do to come up with a final fix for this?
-Nick
--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.
Quoted 8 lines · Nick Couchman
Quoted 7 lines
Quoted 2 lines
The logs look no problem. I'm wondering if the device implies PCI standard. At last, I think you can try: only assign 02:00.0 (pci=[02:00.0]), or assign them as multiple devices in guest (pci=[02:00.0-1]).
Regards,
Weidong
Quoted 8 lines
Should have tried that on my own. Forwarding just 02:00.0 through worked just fine!
So, the patch you had me apply to the Xen 4 source - is that a final version of the patch, or is there still some work to do to come up with a final fix for this?
The patch is just for your testing. I think Jan's patch should fix the issue. Jan sent it out in xen-devel mailing list yesterday, I attached it here, pls try with it.
Regards,
Weidong
If the device at <secbus>:00.0 is the device the mapping operation was initiated for, trying to map it a second time will fail, and hence this second mapping attempt must be prevented (as was done prior to said c/s).
Once at it, simplify the code a little, too.
xen/drivers/passthrough/vtd/iommu.c +8 -15
@@ -1371,23 +1371,16 @@ static int domain_context_mapping(structif (find_upstream_bridge (&bus, &devfn, &secbus) <1 )break ; -/* PCIe to PCI/PCIx bridge */ -if (pdev_type (bus, devfn) == DEV_TYPE_PCIe2PCI_BRIDGE ) - { - ret =domain_context_mapping_one (domain, drhd->iommu, bus, devfn); -if ( ret ) -return ret; + ret =domain_context_mapping_one (domain, drhd->iommu, bus, devfn); -/* -* Devices behind PCIe-to-PCI/PCIx bridge may generate -* different requester-id. It may originate from devfn=0 -* on the secondary bus behind the bridge. Map that id -* as well. -*/ +/* +* Devices behind PCIe-to-PCI/PCIx bridge may generate different +* requester-id. It may originate from devfn=0 on the secondary bus +* behind the bridge. Map that id as well if we didn't already. +*/ +if ( !ret &&pdev_type (bus, devfn) == DEV_TYPE_PCIe2PCI_BRIDGE && + (secbus != pdev->bus || pdev->devfn !=0 ) ) ret =domain_context_mapping_one (domain, drhd->iommu, secbus,0 ); - } -else /* Legacy PCI bridge */ - ret =domain_context_mapping_one (domain, drhd->iommu, bus, devfn);break ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I can confirm that Jan's patch fixes the problem!
Thanks for the help!
-Nick
Quoted 60 lines · Weidong Han
Quoted 11 lines · Nick Couchman
Quoted 10 lines
Quoted 2 lines
The logs look no problem. I'm wondering if the device implies PCI standard. At last, I think you can try: only assign 02:00.0 (pci=[02:00.0]), or assign them as multiple devices in guest (pci=[02:00.0-1]).
Regards,
WeidongQuoted 8 lines
Should have tried that on my own. Forwarding just 02:00.0 through worked just fine!
So, the patch you had me apply to the Xen 4 source - is that a final version of the patch, or is there still some work to do to come up with a final fix for this?
The patch is just for your testing. I think Jan's patch should fix the issue. Jan sent it out in xen-devel mailing list yesterday, I attached it here, pls try with it.
Regards,
Weidong
plain text document attachment (vtd-check-secbus-devfn.patch) If the device at <secbus>:00.0 is the device the mapping operation was initiated for, trying to map it a second time will fail, and hence this second mapping attempt must be prevented (as was done prior to said c/s).Once at it, simplify the code a little, too.
Signed-off-by Jan Beulich <[email protected]>xen/drivers/passthrough/vtd/iommu.c +5
-12@@ -1371,23 +1371,16 @@ static int domain_context_mapping(structif (find_upstream_bridge (&bus, &devfn, &secbus) <1 )break ; -/* PCIe to PCI/PCIx bridge */ -if (pdev_type (bus, devfn) == DEV_TYPE_PCIe2PCI_BRIDGE ) - { - ret =domain_context_mapping_one (domain, drhd->iommu, bus, devfn); -if ( ret ) -return ret; + ret =domain_context_mapping_one (domain, drhd->iommu, bus, devfn); -/* -* Devices behind PCIe-to-PCI/PCIx bridge may generate -* different requester-id. It may originate from devfn=0 -* on the secondary bus behind the bridge. Map that id -* as well. -*/ +/* +* Devices behind PCIe-to-PCI/PCIx bridge may generate different +* requester-id. It may originate from devfn=0 on the secondary bus +* behind the bridge. Map that id as well if we didn't already.
xen/drivers/passthrough/vtd/iommu.c static int domain_context_mapping(struct · line 1386
Quoted 10 lines
xen/drivers/passthrough/vtd/iommu.c +3
-3+*/ +if ( !ret &&pdev_type (bus, devfn) == DEV_TYPE_PCIe2PCI_BRIDGE && + (secbus != pdev->bus || pdev->devfn !=0 ) ) ret =domain_context_mapping_one (domain, drhd->iommu, secbus,0 ); - } -else /* Legacy PCI bridge */ - ret =domain_context_mapping_one (domain, drhd->iommu, bus, devfn);break ;
--------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.