From: Steven Smith Subject: Re: RFC: Xen VMDq patch for ixgbe Date: Thu, 22 Jan 2009 09:58:53 +0000 Message-ID: <20090122095853.GA32717@weybridge.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1014561961==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Santos, Jose Renato G" Cc: "steven.smith@eu.citrix.com" , "Williams, Mitch A" , "xen-devel@lists.xensource.com" , "Ronciak, John" List-Id: xen-devel@lists.xenproject.org --===============1014561961== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Maybe, you are not running in VMDq mode. > Do you see the following message when you run "dmesg" in dom0? > "Netchannel2 using vmq mode for guest n" >=20 > I just noticed the tip of the current netchannel2 does not include the mo= difications of a previous changeset. I suspect this may have been lost in a= merge with latest xen code. Without this missing code MSI is disabled by X= en which causes VMDq to be disabled. > I needed to appply this patch (attached) maually to enable MSI and be abl= e to run in VMDq mode. Oops, sorry about that. I've (re-)applied the patch to tip and pushed it out. Steven. > > -----Original Message----- > > From: Williams, Mitch A [mailto:mitch.a.williams@intel.com]=20 > > Sent: Wednesday, January 21, 2009 4:21 PM > > To: Santos, Jose Renato G; xen-devel@lists.xensource.com > > Cc: steven.smith@eu.citrix.com; Ronciak, John > > Subject: RE: [Xen-devel] RFC: Xen VMDq patch for ixgbe > >=20 > > I'll take a look. I've been running this code, so I=20 > > (obviously) didn't see any failure. > >=20 > > They've just updated ixgbe on sourceforge, so I'm spinning a=20 > > new patch that will work with that driver. I'll probably get=20 > > that out tomorrow. I'll double-check to make sure we're not=20 > > allocating memory before the queue is activated. > >=20 > >=20 > > -Mitch=20 > >=20 > > >-----Original Message----- > > >From: Santos, Jose Renato G [mailto:joserenato.santos@hp.com] > > >Sent: Wednesday, January 21, 2009 4:17 PM > > >To: Williams, Mitch A; xen-devel@lists.xensource.com > > >Cc: steven.smith@eu.citrix.com; Ronciak, John > > >Subject: RE: [Xen-devel] RFC: Xen VMDq patch for ixgbe > > > > > >=20 > > >Mitch, > > > > > >It seems this last patch is not working properly I get a=20 > > kernel panic=20 > > >when the driver module loads (see panic message below). > > >Apparently the driver is trying to allocate guest memory > > >(vmq_alloc_skb()) before the queue is allocated to a guest=20 > > (there is no=20 > > >guest running when the ixgbe module is loaded). > > >This is probably something easy to fix > > > > > >I am able to use the previous version of the patch (version > > >1.3.31.3 attached) with no problem. Not sure what changed=20 > > from version=20 > > >1.3.31.3 to this new version 1.3.47. I am also attaching the buggy=20 > > >patch for version 1.3.47 that I am using so you can verify if I am=20 > > >using the right patch ... > > > > > >Could you please take a look at this? > > > > > >Thanks > > > > > >Renato > > > > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > >Unable to handle kernel paging request at 0000000000007800 RIP:=20 > > > [] vmq_alloc_skb+0x64/0x1f0 PGD 79807067 PUD=20 > > >79710067 PMD 0 > > >Oops: 0000 [1] SMP > > >CPU 0 > > >Modules linked in: video thermal fan button battery=20 > > asus_acpi ac ixgbe > > >Pid: 0, comm: swapper Not tainted 2.6.18.8-xen0 #73 > > >RIP: e030:[] []=20 > > >vmq_alloc_skb+0x64/0x1f0 > > >RSP: e02b:ffffffff80793ca0 EFLAGS: 00010206 > > >RAX: ffff88007acc5dd8 RBX: 0000000000000000 RCX: 0000000000080000 > > >RDX: ffff88007b5d7740 RSI: 0000000000000001 RDI: ffff88007a450000 > > >RBP: ffffffff80793cd0 R08: 0000000000000001 R09: ffff88007a450c80 > > >R10: 000000000000003f R11: 000000000000012c R12: 0000000000007800 > > >R13: 0000000000000000 R14: 0000000000000500 R15: 00000000000005f4 > > >FS: 00002ba4a6b1eda0(0000) GS:ffffffff80737000(0000)=20 > > >knlGS:0000000000000000 > > >CS: e033 DS: 0000 ES: 0000 > > >Process swapper (pid: 0, threadinfo ffffffff8074c000, task > > >ffffffff8064d440) > > >Stack: ffff88007a450000 ffffc200118f0000 0000000000000000=20 > > >0000000000000000 ffff88007b279070 ffff88007a450500 ffffffff80793d30= =20 > > >ffffffff88000d2f 000003ff80793d50 ffff880075df0000 ffff88007a450000= =20 > > >ffff88007fe90800 Call Trace: > > > [] :ixgbe:ixgbe_alloc_rx_buffers+0x15f/0x2e0 > > > [] :ixgbe:ixgbe_clean_rx_irq+0x9eb/0xaa0 > > > [] :ixgbe:ixgbe_clean_rxonly_many+0xbe/0x210 > > > [] :ixgbe:__kc_adapter_clean+0x2e/0x50 > > > [] net_rx_action+0xc4/0x1c0 []= =20 > > >__do_softirq+0x9c/0x140 []=20 > > call_softirq+0x1c/0x28 =20 > > >[] do_softirq+0x6c/0x100 []=20 > > >irq_exit+0x48/0x50 []=20 > > evtchn_do_upcall+0x232/0x250 =20 > > >[] do_hypervisor_callback+0x1e/0x2c =20 > > >[] hypercall_page+0x3aa/0x1000 =20 > > []=20 > > >hypercall_page+0x3aa/0x1000 []=20 > > >raw_safe_halt+0xc2/0xf0 [] xen_idle+0x75/0x90 =20 > > >[] cpu_idle+0xba/0xe0 []=20 > > >rest_init+0x26/0x30 [] start_kernel+0x265/0x270 =20 > > >[] _sinittext+0x23d/0x250 > > > > > > > > >Code: 4d 39 a6 00 73 00 00 4d 8d ae e8 72 00 00 0f 84 58 01=20 > > 00 00 RIP =20 > > >[] vmq_alloc_skb+0x64/0x1f0 RSP > > >CR2: 0000000000007800 > > > <0>Kernel panic - not syncing: Aiee, killing interrupt handler! > > > (XEN) Domain 0 crashed: 'noreboot' set - not rebooting. > > > > > > > > >> -----Original Message----- > > >> From: Williams, Mitch A [mailto:mitch.a.williams@intel.com] > > >> Sent: Friday, January 16, 2009 3:57 PM > > >> To: Williams, Mitch A; xen-devel@lists.xensource.com > > >> Cc: steven.smith@eu.citrix.com; Ronciak, John; Santos,=20 > > Jose Renato G > > >> Subject: RE: [Xen-devel] RFC: Xen VMDq patch for ixgbe > > >>=20 > > >> Whoops! Attached the wrong patch file. Please use this one. > > >>=20 > > >> Sorry for the confusion. > > >> -Mitch > > >>=20 > > >> >-----Original Message----- > > >> >From: xen-devel-bounces@lists.xensource.com > > >> >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Mitch= =20 > > >> >Williams > > >> >Sent: Friday, January 16, 2009 3:06 PM > > >> >To: xen-devel@lists.xensource.com > > >> >Cc: steven.smith@eu.citrix.com; Ronciak, John; > > >> joserenato.santos@hp.com > > >> >Subject: [Xen-devel] RFC: Xen VMDq patch for ixgbe > > >> > > > >> >Attached is a patch to enable Xen VMDq (AKA Netchannel2 > > >vmq) for the > > >> >ixgbe driver. This is intended for testing and development > > >purposes > > >> >and should not be considered to be production-quality code. > > >> > > > >> >Please note that this does NOT apply to the Xen Linux kernel; it=20 > > >> >applies to the ixgbe 1.3.47 release, available from=20 > > >> >http://sourceforge.net/projects/e1000/. You'll obviously > > >> also need an > > >> >Intel 82598-based 10 Gigabit network card and some sort of link=20 > > >> >partner. This will build against the current Netchannel2 source=20 > > >> >available from http:xenbits.xen.org/ext/netchannel2. > > >You'll need to > > >> >enable "Net channel 2 support for multi-queue devices" in > > >> your kernel > > >> >config. > > >> > > > >> >To enable VMDq functionality, load the driver with the=20 > > command-line=20 > > >> >parameter VMDQ=3D, as in: > > >> > > > >> >$ insmod ~/ixgbe-1.3.47/src/ixgbe.ko VMDQ=3D8 > > >> > > > >> >You can then set up PV domains to use the device by > > >> modifying your VM > > >> >configuration file from > > >> > vif =3D [ '' ] > > >> >to > > >> > vif2 =3D [ 'pdev=3D' ] > > >> >where is the interface name for your 82598 board, > > >> e.g peth0 in > > >> >dom0. > > >> > > > >> >Known issues (at least, known by me): > > >> >1) Must manually attach bridge device after starting domU vm. > > >> >Netchannel2 backend devices show up as ethNN, not vifN.M, so the=20 > > >> >scripts don't automatically attach the interface. Once your > > >> VM starts, > > >> >do ifconfig -a to see which new interface got added. Then > > >> use "brctl > > >> >addif" to add this new interface the the bridge. > > >> >2) No broadcast replication. This is a big one. Incoming > > >> broadcasts > > >> >will ONLY go to dom0. This means that your VMs can send ARP > > >> requests > > >> >and initiate IP sessions to outside machines, but outside=20 > > machines=20 > > >> >cannot initiate connections because the ARP requests don't > > >go to the > > >> >domU VMs. > > >> >3) No loopback. VMs cannot communicate with other VMs (including > > >> >dom0) on the same machine. > > >> > > > >> >Once I get this out, I'll start working on a proper=20 > > backport of the=20 > > >> >driver into the Xen kernel (2.6.18.8) tree. I'll remove as > > >> much of the > > >> >compatibility cruft as is prudent and properly integrate it into > > >> >the Kbuild stuff. When that's done, I'll send a complete=20 > > >> patchset to > > >> >this list, including signed-off-by lines which can then be > > >> checked in > > >> >to Mercurial. > > >> > > > >> >Please review and comment, and if possible test. > > >> > > > >> >Thanks, > > >> >Mitch > > >> > > > > > >=20 --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJeENdvAgSWYI3DVMRAhHJAJ9R90cWILv5PUp3IOHCQ+CiEyBB+ACcCCy4 AHbDsBfA39f0/lxxAFVbn2k= =XeYl -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB-- --===============1014561961== 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 --===============1014561961==--