From owner-freebsd-xen@FreeBSD.ORG Mon Sep 5 11:07:24 2011 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03D071065672 for ; Mon, 5 Sep 2011 11:07:24 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CC66F8FC0C for ; Mon, 5 Sep 2011 11:07:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p85B7NHq066084 for ; Mon, 5 Sep 2011 11:07:23 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p85B7NgY066082 for freebsd-xen@FreeBSD.org; Mon, 5 Sep 2011 11:07:23 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Sep 2011 11:07:23 GMT Message-Id: <201109051107.p85B7NgY066082@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 11:07:24 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/155468 xen [xen] Xen PV i386 multi-kernel CPU system is not worki o kern/155353 xen [xen] [patch] put "nudging TOD" message under boot_ver o kern/154833 xen [xen]: xen 4.0 - DomU freebsd8.2RC3 i386, XEN kernel. o kern/154473 xen [xen] xen 4.0 - DomU freebsd8.1 i386, XEN kernel. Not o kern/154472 xen [xen] xen 4.0 - DomU freebsd8.1 i386 xen kernel reboot o kern/154428 xen [xen] xn0 network interface and PF - Massive performan o kern/154302 xen [xen] [panic] [patch] xn0: Error 2 parsing device/vif/ o kern/153789 xen [xen] [regression] FreeBSD 8.2-RC1 crashes under Solar o kern/153674 xen [xen] i386/XEN idle thread shows wrong percentages o kern/153672 xen [xen] [panic] i386/XEN panics under heavy fork load o kern/153620 xen [xen] Xen guest system clock drifts in AWS EC2 (FreeBS o kern/153477 xen [xen] XEN pmap code abuses vm page queue lock o kern/153150 xen [xen] xen/ec2: disable checksum offloading on interfac o kern/152228 xen [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 o kern/144629 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143398 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143340 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor f kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after f kern/135667 xen ufs filesystem corruption on XEN DomU system f kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. f kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i p kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all f i386/124516 xen [xen] FreeBSD-CURRENT Xen Kernel Segfaults when config o kern/118734 xen [xen] FreeBSD 6.3-RC1 and FreeBSD 7.0-BETA 4 fail to b 24 problems total. From owner-freebsd-xen@FreeBSD.ORG Tue Sep 6 11:29:28 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3C74106564A for ; Tue, 6 Sep 2011 11:29:28 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 9E2BB8FC08 for ; Tue, 6 Sep 2011 11:29:28 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id A263F45B; Tue, 6 Sep 2011 11:29:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id dZI-vt7u8uKj; Tue, 6 Sep 2011 11:28:46 +0000 (UTC) Received: from [192.168.1.1] (static-b4-252-232.telepac.pt [81.193.252.232]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 9F22A454; Tue, 6 Sep 2011 11:28:45 +0000 (UTC) Message-ID: <4E6603F1.3050509@barafranca.com> Date: Tue, 06 Sep 2011 12:28:49 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Ben C." References: <4E3AE57D.3050600@barafranca.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------060606000700070501080209" Cc: freebsd-xen@freebsd.org Subject: Re: 9.0-BETA1: PV network still won't work with NetBSD dom0 [FIXED] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 11:29:29 -0000 This is a multi-part message in MIME format. --------------060606000700070501080209 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 08/27/11 18:46, Ben C. wrote: > Hello, > > Yes indeed. I've verified on 8.2 and BETA1. Seemingly exact same > issue. Running a NetBSD(-CURRENT) dom0. Happy to see progress but > it's not quite there yet I guess. > > I've tried changing the model= line around and some other random, > brute-force like tweaks but nothing seems to work. I can ping > internal and external hosts, but just can't seem to carry on a regular > TCP/IP conversation. > > I also found this : > http://www.mail-archive.com/freebsd-xen@freebsd.org/msg00516.html > > Where someone running a Debian Lenny dom0 was experiencing almost the > exact same issues I have. > > FreeBSD (or, any OS) has pretty poor performance running under full > HVM .. PV drivers only work for i386 and I wouldn't be surprised if I > experienced the same issues. (No time to test really..) > > Does anyone else have any input on this? > > Thanks, Ben C. Hello Ben, Someone (I don't recall who, cleared my INBOX and then read this mail..) sent me a patch about 2 weeks ago which solved the issue for me. If you [reader]'re the one who wrote the patch, once again my thanks, you made it possible for me to complete the project I was working on. I'm not sure if this has been committed in the mean time, so here's the reminder to do so before 9.0-RELEASE, in case this one got lost! Keep up the good work! Regards, Hugo --------------060606000700070501080209 Content-Type: text/plain; name="netfront.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="netfront.diff" -- sys/dev/xen/netfront/netfront.c.orig 2011-08-09 17:48:50.188600897 +0400 +++ sys/dev/xen/netfront/netfront.c 2011-08-09 17:52:47.289424716 +0400 @@ -261,6 +261,7 @@ u_int irq; u_int copying_receiver; u_int carrier; + u_int sg_allowed; /* Receive-ring batched refills. */ #define RX_MIN_TARGET 32 @@ -1494,7 +1495,7 @@ * deal with nfrags > MAX_TX_REQ_FRAGS, which is a quirk of * the Linux network stack. */ - if (nfrags > MAX_TX_REQ_FRAGS) { + if (nfrags > (sc->sg_allowed? MAX_TX_REQ_FRAGS : 1)) { m = m_defrag(m_head, M_DONTWAIT); if (!m) { /* @@ -1879,6 +1880,39 @@ if_link_state_change(ifp, LINK_STATE_DOWN); } +static void +xennet_set_features(device_t dev, struct netfront_info *np) +{ + struct ifnet *ifp; + int val; + + device_printf(dev, "backend features:"); + + if (xs_scanf(XST_NIL, xenbus_get_otherend_path(np->xbdev), + "feature-sg", NULL, "%d", &val) < 0) + val = 0; + + np->sg_allowed = val; + + if (val) + printf(" feature-sg"); + + if (xs_scanf(XST_NIL, xenbus_get_otherend_path(np->xbdev), + "feature-gso-tcpv4", NULL, "%d", &val) < 0) + val = 0; + + if (val == 0) { + ifp = np->xn_ifp; + ifp->if_capabilities &= ~(IFCAP_TSO4|IFCAP_LRO); + ifp->if_capenable &= ~(IFCAP_TSO4|IFCAP_LRO); + ifp->if_hwassist &= ~(CSUM_TSO); + xn_enable_lro = 0; + } else + printf(" feature-gso-tcp4"); + + printf("\n"); +} + /* START of Xenolinux helper functions adapted to FreeBSD */ int network_connect(struct netfront_info *np) @@ -1910,6 +1944,8 @@ if (error) return (error); + xennet_set_features(np->xbdev, np); + /* Step 1: Reinitialise variables. */ netif_release_tx_bufs(np); --------------060606000700070501080209-- From owner-freebsd-xen@FreeBSD.ORG Thu Sep 8 19:12:50 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 407CC106566B for ; Thu, 8 Sep 2011 19:12:50 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2AB7D8FC15 for ; Thu, 8 Sep 2011 19:12:49 +0000 (UTC) Received: by mail.lifanov.com (Postfix, from userid 65534) id 7B7B3136EA6; Thu, 8 Sep 2011 18:55:55 +0000 (UTC) Received: from lifanovmacbookpro0.local (cpe-174-109-056-204.nc.res.rr.com [174.109.56.204]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id 3C4D7136B60 for ; Thu, 8 Sep 2011 18:55:55 +0000 (UTC) Message-ID: <4E6911AF.30903@mail.lifanov.com> Date: Thu, 08 Sep 2011 15:04:15 -0400 From: Nikolai Lifanov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <4E690F7C.9030306@mail.lifanov.com> In-Reply-To: <4E690F7C.9030306@mail.lifanov.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: just launched an ec2 ami X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 19:12:50 -0000 On 9/8/11 2:54 PM, Nikolai Lifanov wrote: > The ami is FreeBSD-9 Base (ami-7a41b713) > Visibility is public. > > I just launched one, but I can't log in with my keys. > Does anyone happen to know how to log in? > Sorry, I launched a different AMI and it works. Never mind. From owner-freebsd-xen@FreeBSD.ORG Thu Sep 8 19:12:50 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BF2F1065675 for ; Thu, 8 Sep 2011 19:12:50 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2AB2C8FC14 for ; Thu, 8 Sep 2011 19:12:49 +0000 (UTC) Received: by mail.lifanov.com (Postfix, from userid 65534) id 21C53136EA3; Thu, 8 Sep 2011 18:46:32 +0000 (UTC) Received: from lifanovmacbookpro0.local (cpe-174-109-056-204.nc.res.rr.com [174.109.56.204]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id D86B4136B60 for ; Thu, 8 Sep 2011 18:46:31 +0000 (UTC) Message-ID: <4E690F7C.9030306@mail.lifanov.com> Date: Thu, 08 Sep 2011 14:54:52 -0400 From: Nikolai Lifanov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: just launched an ec2 ami X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 19:12:50 -0000 The ami is FreeBSD-9 Base (ami-7a41b713) Visibility is public. I just launched one, but I can't log in with my keys. Does anyone happen to know how to log in?