kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PCI passtthrought & intel 82574L can't boot from disk
@ 2009-04-02 12:00 Hauke Hoffmann
  2009-04-02 16:58 ` Brian Jackson
  0 siblings, 1 reply; 4+ messages in thread
From: Hauke Hoffmann @ 2009-04-02 12:00 UTC (permalink / raw)
  To: kvm

Hi,

qemu-system-x86_64 runs well and i can boot and run the guest system. Thats 
works very well.

Command: 
/usr/local/kvm/bin/qemu-system-x86_64 -m 
512 -hda /var/VM/roadrunner.local/hda.qcow2 -smp 1 -vnc 
192.168.2.30:5555 -net nic,macaddr=DE:AD:BE:EF:90:26 -net 
tap,ifname=tap0,script=no,downscript=no -boot c

Then i tried to add an intel 82574L network adapter to the guest.
Just the same command with addtionally "-pcidevice host=07:00.0"

Then i connected via VNC and see BIOS startpage and the following lines:
Initializing Intel(r) boot agent ge v1.3.21
pxe 2.1 build 086 (WfM 2.0)
Press f12 for moot menu

You can see a screenshot at http://nxt7.de/download/qemu.png

The guests keep on this point and nothing changes. (I have wait hours.)

I tried to press F12 in ThightVNC but no action. 
I must say that ThightVNC has problems with special chars (in my case).

At this point, i need your help.


Here are some details of my system

Kernel: 2.6.29 form kernel.org (self compiled)
kvm userspace: kvm-84 (self compiled)
OS: Ubuntu 8.04.2 server

root@ls:~# lspci
00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
00:0a.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:0b.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control
01:09.0 Ethernet controller: Lite-On Communications Inc LNE100TX [Linksys 
EtherFast 10/100] (rev 25)
01:0a.0 VGA compatible controller: XGI Technology Inc. (eXtreme Graphics 
Innovation) Volari Z7
06:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI 
Controller (rev 03)
06:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI 
Controller (rev 03)
07:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network 
Connection


root@ls:~# lspci -tvvv
-[0000:00]-+-00.0  nVidia Corporation MCP55 Memory Controller
           +-01.0  nVidia Corporation MCP55 LPC Bridge
           +-01.1  nVidia Corporation MCP55 SMBus
           +-02.0  nVidia Corporation MCP55 USB Controller
           +-02.1  nVidia Corporation MCP55 USB Controller
           +-04.0  nVidia Corporation MCP55 IDE
           +-05.0  nVidia Corporation MCP55 SATA Controller
           +-05.1  nVidia Corporation MCP55 SATA Controller
           +-05.2  nVidia Corporation MCP55 SATA Controller
           +-06.0-[0000:01]--+-09.0  Lite-On Communications Inc LNE100TX 
[Linksys EtherFast 10/100]
           |                 \-0a.0  XGI Technology Inc. (eXtreme Graphics 
Innovation) Volari Z7
           +-08.0  nVidia Corporation MCP55 Ethernet
           +-09.0  nVidia Corporation MCP55 Ethernet
           +-0a.0-[0000:02]--
           +-0b.0-[0000:03]--
           +-0c.0-[0000:04]--
           +-0d.0-[0000:05]--
           +-0e.0-[0000:06]--+-00.0  JMicron Technologies, Inc. JMicron 
20360/20363 AHCI Controller
           |                 \-00.1  JMicron Technologies, Inc. JMicron 
20360/20363 AHCI Controller
           +-0f.0-[0000:07]----00.0  Intel Corporation 82574L Gigabit Network 
Connection
           +-18.0  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
           +-18.1  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address 
Map
           +-18.2  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller
           \-18.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control


root@ls:~# lspci -t
-[0000:00]-+-00.0
           +-01.0
           +-01.1
           +-02.0
           +-02.1
           +-04.0
           +-05.0
           +-05.1
           +-05.2
           +-06.0-[0000:01]--+-09.0
           |                 \-0a.0
           +-08.0
           +-09.0
           +-0a.0-[0000:02]--
           +-0b.0-[0000:03]--
           +-0c.0-[0000:04]--
           +-0d.0-[0000:05]--
           +-0e.0-[0000:06]--+-00.0
           |                 \-00.1
           +-0f.0-[0000:07]----00.0
           +-18.0
           +-18.1
           +-18.2
           \-18.3


root@ls:~# cat /proc/interrupts
           CPU0       CPU1
  0:         22        183   IO-APIC-edge      timer
  1:          0          8   IO-APIC-edge      i8042
  6:          0        111   IO-APIC-edge      floppy
  7:          1          0   IO-APIC-edge
  9:          0          0   IO-APIC-fasteoi   acpi
 14:       3907     134676   IO-APIC-edge      ide0
 19:          8        984   IO-APIC-fasteoi   ide1, ide2
 20:          0          0   IO-APIC-fasteoi   sata_nv
 21:       1993     992513   IO-APIC-fasteoi   sata_nv, ehci_hcd:usb2
 22:          0          0   IO-APIC-fasteoi   ohci_hcd:usb1
 23:          0          0   IO-APIC-fasteoi   sata_nv
 30:       1280    3262885   PCI-MSI-edge      eth0
 31:       1060    3147533   PCI-MSI-edge      eth1
 32:          0        380   PCI-MSI-edge      kvm_assigned_msi_device
NMI:          0          0   Non-maskable interrupts
LOC:    1613937    1980239   Local timer interrupts
RES:     174520     174716   Rescheduling interrupts
CAL:     506881     502939   Function call interrupts
TLB:       1307        574   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
SPU:          0          0   Spurious interrupts
ERR:          1
MIS:          0



Regards
Hauke

-- 

hauke hoffmann service and electronic systems

Moristeig 60, D-23556 Lübeck

Telefon: +49 (0) 451 8896462
Fax: +49 (0) 451 8896461
Mobil: +49 (0) 170 7580491
E-Mail: office@hauke-hoffmann.net
PGP public key: www.hauke-hoffmann.net/static/pgp/kontakt.asc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCI passtthrought & intel 82574L can't boot from disk
  2009-04-02 12:00 PCI passtthrought & intel 82574L can't boot from disk Hauke Hoffmann
@ 2009-04-02 16:58 ` Brian Jackson
  2009-04-03 19:23   ` Hauke Hoffmann
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Jackson @ 2009-04-02 16:58 UTC (permalink / raw)
  To: Hauke Hoffmann; +Cc: kvm

It is my understanding that you need vt-d/iommu support. I didn't think any 
existing amd chipsets had iommu support. You may want to look into that.

--Brian Jackson


On Thursday 02 April 2009 07:00:07 Hauke Hoffmann wrote:
> Hi,
>
> qemu-system-x86_64 runs well and i can boot and run the guest system. Thats
> works very well.
>
> Command:
> /usr/local/kvm/bin/qemu-system-x86_64 -m
> 512 -hda /var/VM/roadrunner.local/hda.qcow2 -smp 1 -vnc
> 192.168.2.30:5555 -net nic,macaddr=DE:AD:BE:EF:90:26 -net
> tap,ifname=tap0,script=no,downscript=no -boot c
>
> Then i tried to add an intel 82574L network adapter to the guest.
> Just the same command with addtionally "-pcidevice host=07:00.0"
>
> Then i connected via VNC and see BIOS startpage and the following lines:
> Initializing Intel(r) boot agent ge v1.3.21
> pxe 2.1 build 086 (WfM 2.0)
> Press f12 for moot menu
>
> You can see a screenshot at http://nxt7.de/download/qemu.png
>
> The guests keep on this point and nothing changes. (I have wait hours.)
>
> I tried to press F12 in ThightVNC but no action.
> I must say that ThightVNC has problems with special chars (in my case).
>
> At this point, i need your help.
>
>
> Here are some details of my system
>
> Kernel: 2.6.29 form kernel.org (self compiled)
> kvm userspace: kvm-84 (self compiled)
> OS: Ubuntu 8.04.2 server
>
> root@ls:~# lspci
> 00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
> 00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
> 00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
> 00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
> 00:02.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
> 00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
> 00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
> 00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
> 00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
> 00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
> 00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
> 00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
> 00:0a.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> 00:0b.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> 00:0c.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> 00:0d.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> 00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> 00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> HyperTransport Technology Configuration
> 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> Address Map
> 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> DRAM Controller
> 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> Miscellaneous Control
> 01:09.0 Ethernet controller: Lite-On Communications Inc LNE100TX [Linksys
> EtherFast 10/100] (rev 25)
> 01:0a.0 VGA compatible controller: XGI Technology Inc. (eXtreme Graphics
> Innovation) Volari Z7
> 06:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363
> AHCI Controller (rev 03)
> 06:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI
> Controller (rev 03)
> 07:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network
> Connection
>
>
> root@ls:~# lspci -tvvv
> -[0000:00]-+-00.0  nVidia Corporation MCP55 Memory Controller
>            +-01.0  nVidia Corporation MCP55 LPC Bridge
>            +-01.1  nVidia Corporation MCP55 SMBus
>            +-02.0  nVidia Corporation MCP55 USB Controller
>            +-02.1  nVidia Corporation MCP55 USB Controller
>            +-04.0  nVidia Corporation MCP55 IDE
>            +-05.0  nVidia Corporation MCP55 SATA Controller
>            +-05.1  nVidia Corporation MCP55 SATA Controller
>            +-05.2  nVidia Corporation MCP55 SATA Controller
>            +-06.0-[0000:01]--+-09.0  Lite-On Communications Inc LNE100TX
> [Linksys EtherFast 10/100]
>
>            |                 \-0a.0  XGI Technology Inc. (eXtreme Graphics
>
> Innovation) Volari Z7
>            +-08.0  nVidia Corporation MCP55 Ethernet
>            +-09.0  nVidia Corporation MCP55 Ethernet
>            +-0a.0-[0000:02]--
>            +-0b.0-[0000:03]--
>            +-0c.0-[0000:04]--
>            +-0d.0-[0000:05]--
>            +-0e.0-[0000:06]--+-00.0  JMicron Technologies, Inc. JMicron
> 20360/20363 AHCI Controller
>
>            |                 \-00.1  JMicron Technologies, Inc. JMicron
>
> 20360/20363 AHCI Controller
>            +-0f.0-[0000:07]----00.0  Intel Corporation 82574L Gigabit
> Network Connection
>            +-18.0  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> HyperTransport Technology Configuration
>            +-18.1  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> Address Map
>            +-18.2  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM
> Controller
>            \-18.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> Miscellaneous Control
>
>
> root@ls:~# lspci -t
> -[0000:00]-+-00.0
>            +-01.0
>            +-01.1
>            +-02.0
>            +-02.1
>            +-04.0
>            +-05.0
>            +-05.1
>            +-05.2
>            +-06.0-[0000:01]--+-09.0
>
>            |                 \-0a.0
>
>            +-08.0
>            +-09.0
>            +-0a.0-[0000:02]--
>            +-0b.0-[0000:03]--
>            +-0c.0-[0000:04]--
>            +-0d.0-[0000:05]--
>            +-0e.0-[0000:06]--+-00.0
>
>            |                 \-00.1
>
>            +-0f.0-[0000:07]----00.0
>            +-18.0
>            +-18.1
>            +-18.2
>            \-18.3
>
>
> root@ls:~# cat /proc/interrupts
>            CPU0       CPU1
>   0:         22        183   IO-APIC-edge      timer
>   1:          0          8   IO-APIC-edge      i8042
>   6:          0        111   IO-APIC-edge      floppy
>   7:          1          0   IO-APIC-edge
>   9:          0          0   IO-APIC-fasteoi   acpi
>  14:       3907     134676   IO-APIC-edge      ide0
>  19:          8        984   IO-APIC-fasteoi   ide1, ide2
>  20:          0          0   IO-APIC-fasteoi   sata_nv
>  21:       1993     992513   IO-APIC-fasteoi   sata_nv, ehci_hcd:usb2
>  22:          0          0   IO-APIC-fasteoi   ohci_hcd:usb1
>  23:          0          0   IO-APIC-fasteoi   sata_nv
>  30:       1280    3262885   PCI-MSI-edge      eth0
>  31:       1060    3147533   PCI-MSI-edge      eth1
>  32:          0        380   PCI-MSI-edge      kvm_assigned_msi_device
> NMI:          0          0   Non-maskable interrupts
> LOC:    1613937    1980239   Local timer interrupts
> RES:     174520     174716   Rescheduling interrupts
> CAL:     506881     502939   Function call interrupts
> TLB:       1307        574   TLB shootdowns
> TRM:          0          0   Thermal event interrupts
> THR:          0          0   Threshold APIC interrupts
> SPU:          0          0   Spurious interrupts
> ERR:          1
> MIS:          0
>
>
>
> Regards
> Hauke


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCI passtthrought & intel 82574L can't boot from disk
  2009-04-02 16:58 ` Brian Jackson
@ 2009-04-03 19:23   ` Hauke Hoffmann
  2009-04-07  8:08     ` Han, Weidong
  0 siblings, 1 reply; 4+ messages in thread
From: Hauke Hoffmann @ 2009-04-03 19:23 UTC (permalink / raw)
  To: Brian Jackson; +Cc: kvm

On Thursday 02 April 2009 18:58:26 you wrote:
> It is my understanding that you need vt-d/iommu support. I didn't think any
> existing amd chipsets had iommu support. You may want to look into that.

Hi Brian,

thanks for you response. 

I found a tool [1] from Intel to disable the Boot ROM on the nic. Thats 
resolves the boot problem.

Regards
Hauke

[1] 
http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProductID=412&DwnldID=8242

>
> --Brian Jackson
>
> On Thursday 02 April 2009 07:00:07 Hauke Hoffmann wrote:
> > Hi,
> >
> > qemu-system-x86_64 runs well and i can boot and run the guest system.
> > Thats works very well.
> >
> > Command:
> > /usr/local/kvm/bin/qemu-system-x86_64 -m
> > 512 -hda /var/VM/roadrunner.local/hda.qcow2 -smp 1 -vnc
> > 192.168.2.30:5555 -net nic,macaddr=DE:AD:BE:EF:90:26 -net
> > tap,ifname=tap0,script=no,downscript=no -boot c
> >
> > Then i tried to add an intel 82574L network adapter to the guest.
> > Just the same command with addtionally "-pcidevice host=07:00.0"
> >
> > Then i connected via VNC and see BIOS startpage and the following lines:
> > Initializing Intel(r) boot agent ge v1.3.21
> > pxe 2.1 build 086 (WfM 2.0)
> > Press f12 for moot menu
> >
> > You can see a screenshot at http://nxt7.de/download/qemu.png
> >
> > The guests keep on this point and nothing changes. (I have wait hours.)
> >
> > I tried to press F12 in ThightVNC but no action.
> > I must say that ThightVNC has problems with special chars (in my case).
> >
> > At this point, i need your help.
> >
> >
> > Here are some details of my system
> >
> > Kernel: 2.6.29 form kernel.org (self compiled)
> > kvm userspace: kvm-84 (self compiled)
> > OS: Ubuntu 8.04.2 server
> >
> > root@ls:~# lspci
> > 00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
> > 00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
> > 00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
> > 00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
> > 00:02.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
> > 00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
> > 00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
> > 00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
> > 00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
> > 00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
> > 00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
> > 00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
> > 00:0a.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> > 00:0b.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> > 00:0c.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> > 00:0d.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> > 00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> > 00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
> > 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > HyperTransport Technology Configuration
> > 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > Address Map
> > 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > DRAM Controller
> > 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > Miscellaneous Control
> > 01:09.0 Ethernet controller: Lite-On Communications Inc LNE100TX [Linksys
> > EtherFast 10/100] (rev 25)
> > 01:0a.0 VGA compatible controller: XGI Technology Inc. (eXtreme Graphics
> > Innovation) Volari Z7
> > 06:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363
> > AHCI Controller (rev 03)
> > 06:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363
> > AHCI Controller (rev 03)
> > 07:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network
> > Connection
> >
> >
> > root@ls:~# lspci -tvvv
> > -[0000:00]-+-00.0  nVidia Corporation MCP55 Memory Controller
> >            +-01.0  nVidia Corporation MCP55 LPC Bridge
> >            +-01.1  nVidia Corporation MCP55 SMBus
> >            +-02.0  nVidia Corporation MCP55 USB Controller
> >            +-02.1  nVidia Corporation MCP55 USB Controller
> >            +-04.0  nVidia Corporation MCP55 IDE
> >            +-05.0  nVidia Corporation MCP55 SATA Controller
> >            +-05.1  nVidia Corporation MCP55 SATA Controller
> >            +-05.2  nVidia Corporation MCP55 SATA Controller
> >            +-06.0-[0000:01]--+-09.0  Lite-On Communications Inc LNE100TX
> > [Linksys EtherFast 10/100]
> >
> >            |                 \-0a.0  XGI Technology Inc. (eXtreme
> >            | Graphics
> >
> > Innovation) Volari Z7
> >            +-08.0  nVidia Corporation MCP55 Ethernet
> >            +-09.0  nVidia Corporation MCP55 Ethernet
> >            +-0a.0-[0000:02]--
> >            +-0b.0-[0000:03]--
> >            +-0c.0-[0000:04]--
> >            +-0d.0-[0000:05]--
> >            +-0e.0-[0000:06]--+-00.0  JMicron Technologies, Inc. JMicron
> > 20360/20363 AHCI Controller
> >
> >            |                 \-00.1  JMicron Technologies, Inc. JMicron
> >
> > 20360/20363 AHCI Controller
> >            +-0f.0-[0000:07]----00.0  Intel Corporation 82574L Gigabit
> > Network Connection
> >            +-18.0  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > HyperTransport Technology Configuration
> >            +-18.1  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > Address Map
> >            +-18.2  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > DRAM Controller
> >            \-18.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> > Miscellaneous Control
> >
> >
> > root@ls:~# lspci -t
> > -[0000:00]-+-00.0
> >            +-01.0
> >            +-01.1
> >            +-02.0
> >            +-02.1
> >            +-04.0
> >            +-05.0
> >            +-05.1
> >            +-05.2
> >            +-06.0-[0000:01]--+-09.0
> >
> >            |                 \-0a.0
> >
> >            +-08.0
> >            +-09.0
> >            +-0a.0-[0000:02]--
> >            +-0b.0-[0000:03]--
> >            +-0c.0-[0000:04]--
> >            +-0d.0-[0000:05]--
> >            +-0e.0-[0000:06]--+-00.0
> >
> >            |                 \-00.1
> >
> >            +-0f.0-[0000:07]----00.0
> >            +-18.0
> >            +-18.1
> >            +-18.2
> >            \-18.3
> >
> >
> > root@ls:~# cat /proc/interrupts
> >            CPU0       CPU1
> >   0:         22        183   IO-APIC-edge      timer
> >   1:          0          8   IO-APIC-edge      i8042
> >   6:          0        111   IO-APIC-edge      floppy
> >   7:          1          0   IO-APIC-edge
> >   9:          0          0   IO-APIC-fasteoi   acpi
> >  14:       3907     134676   IO-APIC-edge      ide0
> >  19:          8        984   IO-APIC-fasteoi   ide1, ide2
> >  20:          0          0   IO-APIC-fasteoi   sata_nv
> >  21:       1993     992513   IO-APIC-fasteoi   sata_nv, ehci_hcd:usb2
> >  22:          0          0   IO-APIC-fasteoi   ohci_hcd:usb1
> >  23:          0          0   IO-APIC-fasteoi   sata_nv
> >  30:       1280    3262885   PCI-MSI-edge      eth0
> >  31:       1060    3147533   PCI-MSI-edge      eth1
> >  32:          0        380   PCI-MSI-edge      kvm_assigned_msi_device
> > NMI:          0          0   Non-maskable interrupts
> > LOC:    1613937    1980239   Local timer interrupts
> > RES:     174520     174716   Rescheduling interrupts
> > CAL:     506881     502939   Function call interrupts
> > TLB:       1307        574   TLB shootdowns
> > TRM:          0          0   Thermal event interrupts
> > THR:          0          0   Threshold APIC interrupts
> > SPU:          0          0   Spurious interrupts
> > ERR:          1
> > MIS:          0
> >
> >
> >
> > Regards
> > Hauke
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 

hauke hoffmann service and electronic systems

Moristeig 60, D-23556 Lübeck

Telefon: +49 (0) 451 8896462
Fax: +49 (0) 451 8896461
Mobil: +49 (0) 170 7580491
E-Mail: office@hauke-hoffmann.net
PGP public key: www.hauke-hoffmann.net/static/pgp/kontakt.asc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: PCI passtthrought & intel 82574L can't boot from disk
  2009-04-03 19:23   ` Hauke Hoffmann
@ 2009-04-07  8:08     ` Han, Weidong
  0 siblings, 0 replies; 4+ messages in thread
From: Han, Weidong @ 2009-04-07  8:08 UTC (permalink / raw)
  To: 'Hauke Hoffmann', 'Brian Jackson'
  Cc: 'kvm@vger.kernel.org', Zhang, Yang

Hi,

Currently, expansion ROM of assigned devices will be loaded into guest and execute. You can just comment out one line code (assigned_dev_load_option_rom() in qemu/hw/pc.c) to let qemu don't load expansion ROM, and then this issue should be gone. I met this issue before, but there was no problem when I assigned the same device to a guest in Xen which also load and execute expansion ROM. I guess it's caused by the difference between Xen guest bios and kvm guest bios. 

Regards,
Weidong

Hauke Hoffmann wrote:
> On Thursday 02 April 2009 18:58:26 you wrote:
>> It is my understanding that you need vt-d/iommu support. I didn't
>> think any existing amd chipsets had iommu support. You may want to
>> look into that. 
> 
> Hi Brian,
> 
> thanks for you response.
> 
> I found a tool [1] from Intel to disable the Boot ROM on the nic.
> Thats resolves the boot problem.
> 
> Regards
> Hauke
> 
> [1]
> http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProductID=412&DwnldID=8242
> 
>> 
>> --Brian Jackson
>> 
>> On Thursday 02 April 2009 07:00:07 Hauke Hoffmann wrote:
>>> Hi,
>>> 
>>> qemu-system-x86_64 runs well and i can boot and run the guest
>>> system. Thats works very well. 
>>> 
>>> Command:
>>> /usr/local/kvm/bin/qemu-system-x86_64 -m
>>> 512 -hda /var/VM/roadrunner.local/hda.qcow2 -smp 1 -vnc
>>> 192.168.2.30:5555 -net nic,macaddr=DE:AD:BE:EF:90:26 -net
>>> tap,ifname=tap0,script=no,downscript=no -boot c
>>> 
>>> Then i tried to add an intel 82574L network adapter to the guest.
>>> Just the same command with addtionally "-pcidevice host=07:00.0"
>>> 
>>> Then i connected via VNC and see BIOS startpage and the following
>>> lines: Initializing Intel(r) boot agent ge v1.3.21
>>> pxe 2.1 build 086 (WfM 2.0)
>>> Press f12 for moot menu
>>> 
>>> You can see a screenshot at http://nxt7.de/download/qemu.png
>>> 
>>> The guests keep on this point and nothing changes. (I have wait
>>> hours.) 
>>> 
>>> I tried to press F12 in ThightVNC but no action.
>>> I must say that ThightVNC has problems with special chars (in my
>>> case). 
>>> 
>>> At this point, i need your help.
>>> 
>>> 
>>> Here are some details of my system
>>> 
>>> Kernel: 2.6.29 form kernel.org (self compiled)
>>> kvm userspace: kvm-84 (self compiled)
>>> OS: Ubuntu 8.04.2 server
>>> 
>>> root@ls:~# lspci
>>> 00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev
>>> a2) 00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
>>> 00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
>>> 00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller
>>> (rev a1) 00:02.1 USB Controller: nVidia Corporation MCP55 USB
>>> Controller (rev a2) 00:04.0 IDE interface: nVidia Corporation MCP55
>>> IDE (rev a1) 00:05.0 IDE interface: nVidia Corporation MCP55 SATA
>>> Controller (rev a3) 00:05.1 IDE interface: nVidia Corporation MCP55
>>> SATA Controller (rev a3) 00:05.2 IDE interface: nVidia Corporation
>>> MCP55 SATA Controller (rev a3) 00:06.0 PCI bridge: nVidia
>>> Corporation MCP55 PCI bridge (rev a2) 00:08.0 Bridge: nVidia
>>> Corporation MCP55 Ethernet (rev a3) 00:09.0 Bridge: nVidia
>>> Corporation MCP55 Ethernet (rev a3) 00:0a.0 PCI bridge: nVidia
>>> Corporation MCP55 PCI Express bridge (rev a3) 00:0b.0 PCI bridge:
>>> nVidia Corporation MCP55 PCI Express bridge (rev a3) 00:0c.0 PCI
>>> bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
>>> 00:0d.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge
>>> (rev a3) 00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express
>>> bridge (rev a3) 00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI
>>> Express bridge (rev a3) 00:18.0 Host bridge: Advanced Micro Devices
>>> [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
>>> 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8
>>> [Athlon64/Opteron] Address Map 00:18.2 Host bridge: Advanced Micro
>>> Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller 00:18.3 Host
>>> bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
>>> Miscellaneous Control 01:09.0 Ethernet controller: Lite-On
>>> Communications Inc LNE100TX [Linksys EtherFast 10/100] (rev 25)
>>> 01:0a.0 VGA compatible controller: XGI Technology Inc. (eXtreme
>>> Graphics Innovation) Volari Z7 06:00.0 SATA controller: JMicron
>>> Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)
>>> 06:00.1 IDE interface: JMicron Technologies, Inc. JMicron
>>> 20360/20363 AHCI Controller (rev 03) 07:00.0 Ethernet controller:
>>> Intel Corporation 82574L Gigabit Network Connection     
>>> 
>>> 
>>> root@ls:~# lspci -tvvv
>>> -[0000:00]-+-00.0  nVidia Corporation MCP55 Memory Controller
>>>            +-01.0  nVidia Corporation MCP55 LPC Bridge
>>>            +-01.1  nVidia Corporation MCP55 SMBus
>>>            +-02.0  nVidia Corporation MCP55 USB Controller
>>>            +-02.1  nVidia Corporation MCP55 USB Controller
>>>            +-04.0  nVidia Corporation MCP55 IDE
>>>            +-05.0  nVidia Corporation MCP55 SATA Controller
>>>            +-05.1  nVidia Corporation MCP55 SATA Controller
>>>            +-05.2  nVidia Corporation MCP55 SATA Controller
>>>            +-06.0-[0000:01]--+-09.0  Lite-On Communications Inc
>>> LNE100TX [Linksys EtherFast 10/100] 
>>> 
>>>            |                 \-0a.0  XGI Technology Inc. (eXtreme  
>>> | Graphics 
>>> 
>>> Innovation) Volari Z7
>>>            +-08.0  nVidia Corporation MCP55 Ethernet
>>>            +-09.0  nVidia Corporation MCP55 Ethernet           
>>>            +-0a.0-[0000:02]-- +-0b.0-[0000:03]--
>>>            +-0c.0-[0000:04]--
>>>            +-0d.0-[0000:05]--
>>>            +-0e.0-[0000:06]--+-00.0  JMicron Technologies, Inc.
>>> JMicron 20360/20363 AHCI Controller 
>>> 
>>>            |                 \-00.1  JMicron Technologies, Inc.
>>> JMicron 
>>> 
>>> 20360/20363 AHCI Controller
>>>            +-0f.0-[0000:07]----00.0  Intel Corporation 82574L
>>>            Gigabit Network Connection +-18.0  Advanced Micro
>>> Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology
>>>            Configuration +-18.1  Advanced Micro Devices [AMD] K8
>>>            [Athlon64/Opteron] Address Map +-18.2  Advanced Micro
>>>            Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
>>> \-18.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
>>> Miscellaneous Control  
>>> 
>>> 
>>> root@ls:~# lspci -t
>>> -[0000:00]-+-00.0
>>>            +-01.0
>>>            +-01.1
>>>            +-02.0
>>>            +-02.1
>>>            +-04.0
>>>            +-05.0
>>>            +-05.1
>>>            +-05.2
>>>            +-06.0-[0000:01]--+-09.0
>>> 
>>>            |                 \-0a.0
>>> 
>>>            +-08.0
>>>            +-09.0
>>>            +-0a.0-[0000:02]--
>>>            +-0b.0-[0000:03]--
>>>            +-0c.0-[0000:04]--
>>>            +-0d.0-[0000:05]--
>>>            +-0e.0-[0000:06]--+-00.0
>>> 
>>>            |                 \-00.1
>>> 
>>>            +-0f.0-[0000:07]----00.0
>>>            +-18.0
>>>            +-18.1
>>>            +-18.2
>>>            \-18.3
>>> 
>>> 
>>> root@ls:~# cat /proc/interrupts
>>>            CPU0       CPU1
>>>   0:         22        183   IO-APIC-edge      timer
>>>   1:          0          8   IO-APIC-edge      i8042
>>>   6:          0        111   IO-APIC-edge      floppy
>>>   7:          1          0   IO-APIC-edge
>>>   9:          0          0   IO-APIC-fasteoi   acpi
>>>  14:       3907     134676   IO-APIC-edge      ide0
>>>  19:          8        984   IO-APIC-fasteoi   ide1, ide2
>>>  20:          0          0   IO-APIC-fasteoi   sata_nv
>>>  21:       1993     992513   IO-APIC-fasteoi   sata_nv,
>>>  ehci_hcd:usb2 22:          0          0   IO-APIC-fasteoi  
>>>  ohci_hcd:usb1 23:          0          0   IO-APIC-fasteoi   sata_nv
>>>  30:       1280    3262885   PCI-MSI-edge      eth0
>>>  31:       1060    3147533   PCI-MSI-edge      eth1
>>>  32:          0        380   PCI-MSI-edge     
>>> kvm_assigned_msi_device NMI:          0          0   Non-maskable
>>> interrupts 
>>> LOC:    1613937    1980239   Local timer interrupts
>>> RES:     174520     174716   Rescheduling interrupts
>>> CAL:     506881     502939   Function call interrupts
>>> TLB:       1307        574   TLB shootdowns
>>> TRM:          0          0   Thermal event interrupts
>>> THR:          0          0   Threshold APIC interrupts
>>> SPU:          0          0   Spurious interrupts
>>> ERR:          1
>>> MIS:          0
>>> 
>>> 
>>> 
>>> Regards
>>> Hauke
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> --
> 
> hauke hoffmann service and electronic systems
> 
> Moristeig 60, D-23556 Lübeck
> 
> Telefon: +49 (0) 451 8896462
> Fax: +49 (0) 451 8896461
> Mobil: +49 (0) 170 7580491
> E-Mail: office@hauke-hoffmann.net
> PGP public key: www.hauke-hoffmann.net/static/pgp/kontakt.asc


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-07  8:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-02 12:00 PCI passtthrought & intel 82574L can't boot from disk Hauke Hoffmann
2009-04-02 16:58 ` Brian Jackson
2009-04-03 19:23   ` Hauke Hoffmann
2009-04-07  8:08     ` Han, Weidong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).