From: Boris Derzhavets Subject: Re: Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp transmit queue timed out) Date: Mon, 31 Oct 2011 12:24:14 -0700 (PDT) Message-ID: <1320089054.54459.YahooMailClassic@web65902.mail.ac4.yahoo.com> References: <20111031184907.GA12984@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1153826804==" Return-path: In-Reply-To: <20111031184907.GA12984@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, =?iso-8859-1?Q?Pasi_K=E4rkk=E4inen?= List-Id: xen-devel@lists.xenproject.org --===============1153826804== Content-Type: multipart/alternative; boundary="-1740618739-1254292987-1320089054=:54459" ---1740618739-1254292987-1320089054=:54459 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Seems to related https://bugs.launchpad.net/ubuntu/+source/xen/+bug/854829 Boris. --- On Mon, 10/31/11, Pasi K=E4rkk=E4inen wrote: From: Pasi K=E4rkk=E4inen Subject: [Xen-devel] Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp = transmit queue timed out) To: xen-devel@lists.xensource.com Date: Monday, October 31, 2011, 2:49 PM Hello, While testing Xen 4.1.2 and HVM guests I noticed the following problem with Fedora 16 HVM guests (using Linux 3.1.0 kernel in the VM): The errors (call trace) happens pretty much immediately when there's some n= etwork traffic going on.. Simple "yum update" in the VM triggers the problem.. [=A0 =A0 0.000000] Linux version 3.1.0-5.fc16.x86_64 (mockbuild@x86-10.phx2= .fedoraproject.org) (gcc version 4.6.1 20111003 (Red Hat 4.6.1-10) (GCC) ) = #1 SMP Thu Oct 27 03:46:50 UTC 2011 [=A0 =A0 0.000000] Command line: BOOT_IMAGE=3D/vmlinuz-3.1.0-5.fc16.x86_64 = root=3D/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=3Dvg_f16test64hvm/l= v_root rd.dm=3D0 SYSFONT=3Dlatarcyrheb-sun16 rhgb KEYTABLE=3Dfi rd.md=3D0 r= d.luks=3D0 rd.lvm.lv=3Dvg_f16test64hvm/lv_swap LANG=3Den_US.UTF-8 console= =3DttyS0,38400 console=3Dtty0 [=A0=A0=A028.998481] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-dupl= ex, lpa 0x05E1 [=A0 149.712071] ------------[ cut here ]------------ [=A0 149.717216] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xf0/= 0x150() [=A0 149.724709] Hardware name: HVM domU [=A0 149.728738] NETDEV WATCHDOG: eth0 (8139cp): transmit queue 0 timed out [=A0 149.735537] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag= _ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables = nf_conntrack 81 39too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last u= nloaded: scsi_wait_scan] [=A0 149.768028] Pid: 0, comm: swapper Not tainted 3.1.0-5.fc16.x86_64 #1 [=A0 149.774639] Call Trace: [=A0 149.777765]=A0 =A0 [] warn_slowpath_common+0x83= /0x9b [=A0 149.784024]=A0 [] warn_slowpath_fmt+0x46/0x48 [=A0 149.790141]=A0 [] ? netif_tx_lock+0x4a/0x7c [=A0 149.799007]=A0 [] dev_watchdog+0xf0/0x150 [=A0 149.806361]=A0 [] run_timer_softirq+0x19b/0x280 [=A0 149.814392]=A0 [] ? sched_clock+0x9/0xd [=A0 149.821650]=A0 [] ? netif_tx_unlock+0x54/0x54 [=A0 149.828926]=A0 [] __do_softirq+0xc9/0x1b5 [=A0 149.836803]=A0 [] ? sched_clock+0x9/0xd [=A0 149.843422]=A0 [] call_softirq+0x1c/0x30 [=A0 149.850067]=A0 [] do_softirq+0x46/0x81 [=A0 149.856760]=A0 [] irq_exit+0x57/0xb1 [=A0 149.863035]=A0 [] xen_evtchn_do_upcall+0x31/0x3e [=A0 149.871144]=A0 [] xen_hvm_callback_vector+0x6e/0x80 [=A0 149.879494]=A0 =A0 [] ? native_safe_halt+0xb/0x= d [=A0 149.888220]=A0 [] default_idle+0x4e/0x86 [=A0 149.894962]=A0 [] cpu_idle+0xae/0xe8 [=A0 149.901461]=A0 [] rest_init+0x72/0x74 [=A0 149.908949]=A0 [] start_kernel+0x3ab/0x3b6 [=A0 149.916617]=A0 [] x86_64_start_reservations+0xaf/0xb= 3 [=A0 149.929148]=A0 [] ? early_idt_handlers+0x140/0x140 [=A0 149.936797]=A0 [] x86_64_start_kernel+0x102/0x111 [=A0 149.944336] ---[ end trace d8786cb7d6a57f8a ]--- [=A0 149.950406] 8139cp 0000:00:03.0: eth0: Transmit timeout, status=A0 d= =A0=A0=A03b=A0=A0=A015 80ff [=A0 149.961879] ------------[ cut here ]------------ [=A0 149.962245] WARNING: at kernel/softirq.c:159 _local_bh_enable_ip+0x44/= 0x8e() [=A0 149.962245] Hardware name: HVM domU [=A0 149.962245] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag= _ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables = nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core= joydev [last unloaded: scsi_wait_scan] [=A0 149.962245] Pid: 0, comm: swapper Tainted: G=A0 =A0 =A0 =A0 W=A0=A0=A0= 3.1.0-5.fc16.x86_64 #1 [=A0 149.962245] Call Trace: [=A0 149.962245]=A0 =A0 [] warn_slowpath_common+0x83= /0x9b [=A0 149.962245]=A0 [] ? skb_release_data+0xca/0xcf [=A0 149.962245]=A0 [] warn_slowpath_null+0x1a/0x1c [=A0 149.962245]=A0 [] _local_bh_enable_ip+0x44/0x8e [=A0 149.962245]=A0 [] local_bh_enable_ip+0xe/0x10 [=A0 149.962245]=A0 [] _raw_spin_unlock_bh+0x15/0x17 [=A0 149.962245]=A0 [] destroy_conntrack+0x9d/0xdc [nf_co= nntrack] [=A0 149.962245]=A0 [] nf_conntrack_destroy+0x19/0x1b [=A0 149.962245]=A0 [] skb_release_head_state+0xa7/0xef [=A0 149.962245]=A0 [] __kfree_skb+0x13/0x83 [=A0 149.962245]=A0 [] consume_skb+0x56/0x6b [=A0 149.962245]=A0 [] cp_clean_rings+0xb4/0x114 [8139cp] [=A0 149.962245]=A0 [] cp_tx_timeout+0x88/0x10e [8139cp] [=A0 149.962245]=A0 [] dev_watchdog+0x104/0x150 [=A0 149.962245]=A0 [] run_timer_softirq+0x19b/0x280 [=A0 149.962245]=A0 [] ? sched_clock+0x9/0xd [=A0 149.962245]=A0 [] ? netif_tx_unlock+0x54/0x54 [=A0 149.962245]=A0 [] __do_softirq+0xc9/0x1b5 [=A0 149.962245]=A0 [] ? sched_clock+0x9/0xd [=A0 149.962245]=A0 [] call_softirq+0x1c/0x30 [=A0 149.962245]=A0 [] do_softirq+0x46/0x81 [=A0 149.962245]=A0 [] irq_exit+0x57/0xb1 [=A0 149.962245]=A0 [] xen_evtchn_do_upcall+0x31/0x3e [=A0 149.962245]=A0 [] xen_hvm_callback_vector+0x6e/0x80 [=A0 149.962245]=A0 =A0 [] ? native_safe_halt+0xb/0x= d [=A0 149.962245]=A0 [] default_idle+0x4e/0x86 [=A0 149.962245]=A0 [] cpu_idle+0xae/0xe8 [=A0 149.962245]=A0 [] rest_init+0x72/0x74 [=A0 149.962245]=A0 [] start_kernel+0x3ab/0x3b6 [=A0 149.962245]=A0 [] x86_64_start_reservations+0xaf/0xb= 3 [=A0 149.962245]=A0 [] ? early_idt_handlers+0x140/0x140 [=A0 149.962245]=A0 [] x86_64_start_kernel+0x102/0x111 [=A0 149.962245] ---[ end trace d8786cb7d6a57f8b ]--- Full guest kernel dmesg attached to this email. The host is running F16 with Xen 4.1.2 and Linux 3.1.0 dom0 kernel. Xen cfgfile for the HVM domain: kernel =3D "hvmloader" builder=3D'hvm' device_model =3D 'qemu-dm' name =3D "f16test64hvm" memory =3D 1024 vcpus=3D1 pae=3D1 acpi=3D1 apic=3D1 vif =3D [ 'type=3Dioemu, mac=3D00:16:3f:03:01:14, bridge=3Dvirbr0' ] disk =3D [ 'phy:/dev/vg_f16/f16test64hvm,hda,w', 'file:/root/iso/Fedora-16-= Final-RC2-x86_64-DVD.iso,hdc:cdrom,r' ] boot=3D'cd' xen_platform_pci=3D0 on_poweroff =3D 'destroy' on_reboot=A0=A0=A0=3D 'restart' on_crash=A0 =A0 =3D 'restart' sdl=3D0 vnc=3D1 vncpasswd=3D'' stdvga=3D0 serial=3D'pty' tsc_mode=3D0 usb=3D1 usbdevice=3D'tablet' keymap=3D'fi' Using "model=3De1000" instead for the vif works OK.. no problems with the e= mulated intel nic. Any ideas what the problem with the emulated realtek nic?=20 Thanks, -- Pasi -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ---1740618739-1254292987-1320089054=:54459 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Seems to related

https://bugs.launchpa= d.net/ubuntu/+source/xen/+bug/854829

Boris.

--- On Mon, 10= /31/11, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:

From: Pasi K=E4rkk=E4inen <pasik@iki.fi>
S= ubject: [Xen-devel] Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp t= ransmit queue timed out)
To: xen-devel@lists.xensource.com
Date: Mond= ay, October 31, 2011, 2:49 PM

Hello,
While testing Xen 4.1.2 and HVM guests I noticed the following problem
= with Fedora 16 HVM guests (using Linux 3.1.0 kernel in the VM):

The = errors (call trace) happens pretty much immediately when there's some netwo= rk traffic going on..

Simple "yum update" in the VM triggers the problem..


[    0.000000] Linux version 3.1.0-5.fc16.x= 86_64 (mockbuild@x86= -10.phx2.fedoraproject.org) (gcc version 4.6.1 20111003 (Red Hat 4.6.1-= 10) (GCC) ) #1 SMP Thu Oct 27 03:46:50 UTC 2011
[    0.000000]= Command line: BOOT_IMAGE=3D/vmlinuz-3.1.0-5.fc16.x86_64 root=3D/dev/mapper= /vg_f16test64hvm-lv_root ro rd.lvm.lv=3Dvg_f16test64hvm/lv_root rd.dm=3D0 S= YSFONT=3Dlatarcyrheb-sun16 rhgb KEYTABLE=3Dfi rd.md=3D0 rd.luks=3D0 rd.lvm.= lv=3Dvg_f16test64hvm/lv_swap LANG=3Den_US.UTF-8 console=3DttyS0,38400 conso= le=3Dtty0
<snip>

[   28.998481] 8139cp 0000:= 00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
[  149.712= 071] ------------[ cut here ]------------
[  149.717216] WARNING: a= t net/sched/sch_generic.c:255 dev_watchdog+0xf0/0x150()
[  149.7247= 09] Hardware name: HVM domU
[  149.728738] NETDEV WATCHDOG: eth0 (8139cp): transmit queue= 0 timed out
[  149.735537] Modules linked in: ip6t_REJECT nf_connt= rack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter x= t_state ip6_tables nf_conntrack 81
39too 8139cp ppdev parport_pc mii par= port i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
[  1= 49.768028] Pid: 0, comm: swapper Not tainted 3.1.0-5.fc16.x86_64 #1
[&nb= sp; 149.774639] Call Trace:
[  149.777765]  <IRQ>  = [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
[  149.78= 4024]  [<ffffffff81057b11>] warn_slowpath_fmt+0x46/0x48
[&nbs= p; 149.790141]  [<ffffffff813ef49d>] ? netif_tx_lock+0x4a/0x7c[  149.799007]  [<ffffffff813ef613>] dev_watchdog+0xf0/0x= 150
[  149.806361]  [<ffffffff81064b51>] run_timer_softi= rq+0x19b/0x280
[  149.814392]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.821650]&nb= sp; [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
[  149.8= 28926]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
[  = 149.836803]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[&nbs= p; 149.843422]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
[=   149.850067]  [<ffffffff81010b45>] do_softirq+0x46/0x81[  149.856760]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1[  149.863035]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+= 0x31/0x3e
[  149.871144]  [<ffffffff814be76e>] xen_hvm_c= allback_vector+0x6e/0x80
[  149.879494]  <EOI>  [&l= t;ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
[  149.888220]&n= bsp; [<ffffffff81015b7e>] default_idle+0x4e/0x86
[  149.89496= 2]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
[  149.901461]  [<ffffffff814934ee>] rest_init+0x72/0x74
[ = ; 149.908949]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
= [  149.916617]  [<ffffffff81b762c4>] x86_64_start_reservati= ons+0xaf/0xb3
[  149.929148]  [<ffffffff81b76140>] ? ear= ly_idt_handlers+0x140/0x140
[  149.936797]  [<ffffffff81b76= 3ca>] x86_64_start_kernel+0x102/0x111
[  149.944336] ---[ end tr= ace d8786cb7d6a57f8a ]---
[  149.950406] 8139cp 0000:00:03.0: eth0:= Transmit timeout, status  d   3b   15 8= 0ff
[  149.961879] ------------[ cut here ]------------
[  = 149.962245] WARNING: at kernel/softirq.c:159 _local_bh_enable_ip+0x44/0x8e(= )
[  149.962245] Hardware name: HVM domU
[  149.962245] Mod= ules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_i= pv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [las= t unloaded: scsi_wait_scan]
[  149.962245] Pid: 0, comm: swapper Ta= inted: G        W   3.1.0-5.fc16.x86_64 = #1
[  149.962245] Call Trace:
[  149.962245]  <IRQ&= gt;  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
[&nb= sp; 149.962245]  [<ffffffff813ce599>] ? skb_release_data+0xca/0x= cf
[  149.962245]  [<ffffffff81057a88>] warn_slowpath_nu= ll+0x1a/0x1c
[  149.962245]  [<ffffffff8105d462>] _local= _bh_enable_ip+0x44/0x8e
[  149.962245]  [<ffffffff8105d4ba&= gt;] local_bh_enable_ip+0xe/0x10
[  149.962245]  [<ffffffff= 814b5db4>] _raw_spin_unlock_bh+0x15/0x17
[  149.962245]  [&= lt;ffffffffa0053969>] destroy_conntrack+0x9d/0xdc [nf_conntrack]
[&nb= sp; 149.962245]  [<ffffffff813fa343>] nf_conntrack_destroy+0x19/0x1b
[  149.962245]  [<ffffffff8= 13ce7ad>] skb_release_head_state+0xa7/0xef
[  149.962245]  = [<ffffffff813ce5b1>] __kfree_skb+0x13/0x83
[  149.962245]&nbs= p; [<ffffffff813ce677>] consume_skb+0x56/0x6b
[  149.962245]&= nbsp; [<ffffffffa003c1b9>] cp_clean_rings+0xb4/0x114 [8139cp]
[&nb= sp; 149.962245]  [<ffffffffa003c371>] cp_tx_timeout+0x88/0x10e [= 8139cp]
[  149.962245]  [<ffffffff813ef627>] dev_watchdo= g+0x104/0x150
[  149.962245]  [<ffffffff81064b51>] run_t= imer_softirq+0x19b/0x280
[  149.962245]  [<ffffffff81014fec= >] ? sched_clock+0x9/0xd
[  149.962245]  [<ffffffff813ef= 523>] ? netif_tx_unlock+0x54/0x54
[  149.962245]  [<ffff= ffff8105d6b3>] __do_softirq+0xc9/0x1b5
[  149.962245]  [<= ;ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.962245]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
[&n= bsp; 149.962245]  [<ffffffff81010b45>] do_softirq+0x46/0x81
[=   149.962245]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
[=   149.962245]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x= 31/0x3e
[  149.962245]  [<ffffffff814be76e>] xen_hvm_cal= lback_vector+0x6e/0x80
[  149.962245]  <EOI>  [<= ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
[  149.962245]&nbs= p; [<ffffffff81015b7e>] default_idle+0x4e/0x86
[  149.962245]=   [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
[  149.962245]=   [<ffffffff814934ee>] rest_init+0x72/0x74
[  149.962245= ]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
[  149.= 962245]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb= 3
[  149.962245]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
[  149.962245]  [<ffffffff8= 1b763ca>] x86_64_start_kernel+0x102/0x111
[  149.962245] ---[ en= d trace d8786cb7d6a57f8b ]---

Full guest kernel dmesg attached to th= is email.
The host is running F16 with Xen 4.1.2 and Linux 3.1.0 dom0 ke= rnel.

Xen cfgfile for the HVM domain:

kernel =3D "hvmloader"<= br>builder=3D'hvm'
device_model =3D 'qemu-dm'
name =3D "f16test64hvm"=
memory =3D 1024
vcpus=3D1
pae=3D1
acpi=3D1
apic=3D1
vif = =3D [ 'type=3Dioemu, mac=3D00:16:3f:03:01:14, bridge=3Dvirbr0' ]
disk = =3D [ 'phy:/dev/vg_f16/f16test64hvm,hda,w', 'file:/root/iso/Fedora-16-Final= -RC2-x86_64-DVD.iso,hdc:cdrom,r' ]
boot=3D'cd'
xen_platform_pci=3D0on_poweroff =3D 'destroy'
on_reboot   =3D 'restart'
= on_crash    =3D 'restart'
sdl=3D0
vnc=3D1
vncpasswd=3D''=
stdvga=3D0
serial=3D'pty'
tsc_mode=3D0
usb=3D1
usbdevice=3D= 'tablet'
keymap=3D'fi'


Using "model=3De1000" instead for the vif works OK.. no problems with the emulat= ed intel nic.

Any ideas what the problem with the emulated realtek n= ic?

Thanks,


-- Pasi


-----Inline Attachm= ent Follows-----

__________________________= _____________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel<= /a>
---1740618739-1254292987-1320089054=:54459-- --===============1153826804== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1153826804==--