From owner-freebsd-xen@freebsd.org Sun Nov 8 19:31:35 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1E8BA29440 for ; Sun, 8 Nov 2015 19:31:35 +0000 (UTC) (envelope-from park.daniel45@yahoo.com) Received: from nm45-vm3.bullet.mail.bf1.yahoo.com (nm45-vm3.bullet.mail.bf1.yahoo.com [216.109.115.62]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DC1612A9 for ; Sun, 8 Nov 2015 19:31:35 +0000 (UTC) (envelope-from park.daniel45@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1447010894; bh=R6cGNleGOaGab7EqPlmTCwEgtZ7EpKh3vsza45++mAY=; h=From:To:Date:Subject:From:Subject; b=LPZFTLKea3Pmydd/DCTMsbV8mVvTv4XpcZBZ1V93VPfpFybViuJL8p38pT6HQofCRTHpP1LO5rXINl2jffgaT2td+jOBZX2zu7bjgEjAb4ZXQoP5LRMtqTy77bs4YFzbcrej+dfZ7cTL8XDQ6+UaUKOVZXRO2/btdICLBTy12GJ4BJ9loFPguEtqE4WnI8mZFDAgALjB3oXe8Lx6hSY0RhJjBjGetRPQ3WHGzHaIHE7LjFDqKHcylBX4Ha21tO8e8iyYZBMIYa90AzeQ/fPy5xJOVTyaHtnMb+mYT2zk1sSh2WNX7wl2kz02vOPN2Xn44iqsucXSxDpXruEvsiRNZA== Received: from [98.139.170.182] by nm45.bullet.mail.bf1.yahoo.com with NNFMP; 08 Nov 2015 19:28:14 -0000 Received: from [98.139.211.196] by tm25.bullet.mail.bf1.yahoo.com with NNFMP; 08 Nov 2015 19:28:14 -0000 Received: from [127.0.0.1] by smtp205.mail.bf1.yahoo.com with NNFMP; 08 Nov 2015 19:28:14 -0000 X-Yahoo-Newman-Id: 6735.53224.bm@smtp205.mail.bf1.yahoo.com Message-ID: <6735.53224.bm@smtp205.mail.bf1.yahoo.com> X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: OEhm34wVM1l9Daf1RasiqV3HNx22dhVHZ5rluXNPlausw6b r_Zm5MZnnxKEd_KT_LSrw20r4eClppJN2jSIXRLbXS4abcOmo2Q8y95C0dbw vDIg_gvZrJA399wsJ2ZdKO79lLNDWdeVWN6K7APqxLhnhIzrTbRLpPzVllLm zKVTLd9p5Aa5BkZPnksRmprFP4Ur2tHrGvlKadfT51YpZMB6Y5V5ul3cxPTm wY22hYDqpmhjGurtUzyOrC5WnJZq6sG6NYqYmGik5YFuVdJitHVlbkZX3s.2 ogCS_8Uus_bm4aN0UdDfbfaIZpnilN2I0vPVlQ8_QI5GgZVb8UTgcJ98.fui V8ELQgRjLv9pl6R2vWPgwPRwI2R51o0xSh_eK0lD6eyPH6MK75ZQXqVvP1Ru mGMooxZB.Y2hRQV5Gg3M4yNzUe9W_GrrANG0i2NflIpditsz0FQCQBYrx4Qf v3hnnYgI1L1wqpGELISWXjNlynmEo7aIVcB17SGncKpLgj02ZkqFm9xivDNa FIUxK_Rs8_KOY7ySasfkvEU2ATXLN01Kg4sD8dx8kCbrulwTu5bOIxFJHqV7 P562g X-Yahoo-SMTP: Vf7G5GSswBBxkoFaChO312Ijw_BF7BmGtTY- From: "Ray*Ban Sunglasses" To: freebsd-xen@freebsd.org Date: 9 Nov 2015 03:28:14 +0800 Subject: Urgent:advertisement}27 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 08 Nov 2015 19:31:35 -0000 From owner-freebsd-xen@freebsd.org Mon Nov 9 10:23:03 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4F91A2AFCB for ; Mon, 9 Nov 2015 10:23:03 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from smtp.krpservers.com (smtp.krpservers.com [62.13.128.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.krpservers.com", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 881961292 for ; Mon, 9 Nov 2015 10:23:03 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from [10.12.30.106] (vpn01-01.tdx.co.uk [62.13.130.213] (may be forged)) (authenticated bits=0) by smtp.krpservers.com (8.14.9/8.14.9) with ESMTP id tA9AMnwj076701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Nov 2015 10:22:51 GMT (envelope-from kpielorz_lst@tdx.co.uk) Date: Mon, 09 Nov 2015 10:22:48 +0000 From: Karl Pielorz To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , freebsd-xen@freebsd.org Subject: Re: 'Live' Migrate messes up NTP on FreeBSD domU - any suggestions? Message-ID: <2CCED8DD6371A49B7BA2F909@[10.12.30.106]> In-Reply-To: <563898B0.5040100@citrix.com> References: <151F73F1EF071C3C48F17866@[10.12.30.106]> <5637A01B.1010307@citrix.com> <8448B4CE863936ADEF762C0F@[10.12.30.106]> <563898B0.5040100@citrix.com> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 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, 09 Nov 2015 10:23:04 -0000 --On 03 November 2015 12:21 +0100 Roger Pau Monn=C3=A9 = =20 wrote: > Is XenServer also synchronized using ntpd? When a guest resumes from > migration is updates it's current time based on the time provided by the > hypervisor, so if the hosts themselves are not synchronized you could > see skews like that. I've tested this on two pools now. The original production pool (Xeon=20 E3-1220 v3 @ 3.10GHz) has the issue. Our office / test pool (Xeon L5630 @ 2.13Ghz) also -has the issue-. Both=20 are setup pretty much identical (same storage solution, both running=20 FreeBSD 10.1/10.2-R with 'xe-guest-utilities' installed). Running or not=20 running NTP doesn't make a difference. Live migrates result in the domU gaining several seconds (thus breaking NTP = if it is running) else leaving the host 'running in the future' vs. both=20 external clocks, and NTP sync'd clocks on the xenserver. As it's easily reproducible I guess I'll file it as a bug... -Karl From owner-freebsd-xen@freebsd.org Tue Nov 10 09:35:07 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23836A2B08E for ; Tue, 10 Nov 2015 09:35:07 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0779B199C for ; Tue, 10 Nov 2015 09:35:07 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: by mailman.ysv.freebsd.org (Postfix) id 069A0A2B08D; Tue, 10 Nov 2015 09:35:07 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 062B5A2B08B for ; Tue, 10 Nov 2015 09:35:07 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail.eeeit.de (mail.eeeit.de [37.120.160.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE54F199B for ; Tue, 10 Nov 2015 09:35:06 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from localhost (localhost [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by mail.eeeit.de (Postfix) with ESMTPSA id 43F9C3265; Tue, 10 Nov 2015 10:34:58 +0100 (CET) Received: from ppp-93-104-7-181.dynamic.mnet-online.de (ppp-93-104-7-181.dynamic.mnet-online.de [93.104.7.181]) by mail.eeeit.de (Horde Framework) with HTTP; Tue, 10 Nov 2015 10:34:58 +0100 Date: Tue, 10 Nov 2015 10:34:58 +0100 Message-ID: <20151110103458.Horde.H363qPg0Pt7dxArnT4Xwun9@mail.eeeit.de> From: Michael Reifenberger To: Roger Pau =?utf-8?b?TW9ubsOp?= Cc: xen@freebsd.org Subject: Re: Current shortcomings (XEN dom0 & FreeBSD) References: <20150918194154.Horde.PQcchwucJFPQY4U0K75MgpW@mail.eeeit.de> <56027D61.70207@citrix.com> <20150923163642.Horde.C2gq8tfwkC45mOK8NwCIAj-@mail.eeeit.de> <5602BD02.7050004@citrix.com> <20151106132308.Horde.wqlInItwP9c68Ih_23aoBbQ@mail.eeeit.de> <563CBFA7.30502@citrix.com> In-Reply-To: <563CBFA7.30502@citrix.com> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 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, 10 Nov 2015 09:35:07 -0000 Zitat von Roger Pau Monné : > Hello, > > El 06/11/15 a les 13.23, Michael Reifenberger ha escrit: >> Hi, >> before analyzing deeper I just wanted to ask if the following symptoms >> are already known: >> >> - Often / Mostly the FreeBSD dom0 hangs without further output during >> poweroff (reboot works though) > > Yes, I'm aware of this issue, unfortunately the way to solve it it's not > clear. > > In order to do a proper power off when running as Dom0 we would have to > modify ACPICA code, which is a separate upstream project that's used by > a bunch of different OSes. Linux does it this way, but then they have to > keep all this local modifications on top of upstream ACPICA, which > increases the maintainership burden. > How big are the diffs to the original version? Have you asked upstream already if the Patches would be accepted? >> - The same happens mostly for the Centos7 guests I'm currently testing. > > Do you mean that CentOS 7 guests do not poweroff properly? Are those PV > or HVM guests? > Yes, as it seems. They are HVM for first installation and PV afterwards. BTW: How can one specify pv disks to a HVM guest (Some guests get more than 4 disks)? Something like the following is not accepted: ... disk= [ '/dev/zvol/zdata/VM/cnt_nw1/root,raw,hda,w', '/dev/zvol/zdata/VM/cnt_nw1/swap,raw,xvdb,w', '/dev/zvol/zdata/VM/cnt_nw1/sapmnt,raw,xvdc,w', '/VM/ISO/CentOS-7-x86_64-Minimal-1503-01.iso,raw,hdc:cdrom,r' ... > I usually use Debian guests when I have to test Linux and have never > experienced this. > SUSE SLES11SP2 also seems not affected. >> - Sometimes (usually after some uptime and/or many guest reboots) the >> blockback >> (ZFS Zvols in my case) seems to get wedged (guest hang during startup)... > > Yes, I've also experienced this once or twice. The problem is that the > blkback error path can get deadlocked depending on the situation. I have > to look into cleaning it when I have some time. > Since bapt@ stepped down from maintaining the xen ports: Has someone already tried to use xen 4.6 kernel and tools? Thanks! Greetings --- Michael Gruß --- Michael Reifenberger From owner-freebsd-xen@freebsd.org Tue Nov 10 23:13:22 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71E27A2B848 for ; Tue, 10 Nov 2015 23:13:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60B6A1C32 for ; Tue, 10 Nov 2015 23:13:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tAANDM1s011850 for ; Tue, 10 Nov 2015 23:13:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 204424] When live migrating FreeBSD domU's under XenServer the domU moves it's clock several seconds into the future. Date: Tue, 10 Nov 2015 23:13:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 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, 10 Nov 2015 23:13:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204424 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-xen@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-xen@freebsd.org Wed Nov 11 15:58:46 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A93FA2C8E2 for ; Wed, 11 Nov 2015 15:58:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7DD1B164F for ; Wed, 11 Nov 2015 15:58:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tABFwkY2048076 for ; Wed, 11 Nov 2015 15:58:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 204424] When live migrating FreeBSD domU's under XenServer the domU moves it's clock several seconds into the future. Date: Wed, 11 Nov 2015 15:58:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: royger@freebsd.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 11 Nov 2015 15:58:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204424 Roger Pau Monn=C3=83=C2=A9 changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress Assignee|freebsd-xen@FreeBSD.org |royger@freebsd.org --- Comment #1 from Roger Pau Monn=C3=83=C2=A9 --- Created attachment 163013 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D163013&action= =3Dedit Proposed fix Can you give the attached patch a spin? It's against HEAD, if it doesn't ap= ply cleanly against your current sources drop me a line and I will rebase it. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Wed Nov 11 17:04:41 2015 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8DD7A2C56D for ; Wed, 11 Nov 2015 17:04:41 +0000 (UTC) (envelope-from prvs=7503460ff=wei.liu2@citrix.com) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Verizon Public SureServer CA G14-SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C8151B82; Wed, 11 Nov 2015 17:04:41 +0000 (UTC) (envelope-from prvs=7503460ff=wei.liu2@citrix.com) X-IronPort-AV: E=Sophos;i="5.20,276,1444694400"; d="scan'208";a="311610458" Date: Wed, 11 Nov 2015 17:04:31 +0000 From: Wei Liu To: Roger Pau =?iso-8859-1?Q?Monn=E9?= CC: Larry Baird , , , Wei Liu , Subject: Re: Checksum forwarding issue on XEN Message-ID: <20151111170431.GG10274@zion.uk.xensource.com> References: <20151103201250.GA92469@gta.com> <563B72B2.6060308@citrix.com> <20151105160057.GA2268@gta.com> <563B840E.1050205@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <563B840E.1050205@citrix.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-DLP: MIA2 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 11 Nov 2015 17:04:41 -0000 On Thu, Nov 05, 2015 at 05:30:06PM +0100, Roger Pau Monné wrote: > El 05/11/15 a les 17.00, Larry Baird ha escrit: > > Roger, > > > >> Adding the persons that contributed that code in case they can shed some > >> light. > >> > >> El 03/11/15 a les 21.12, Larry Baird ha escrit: > >>> Has anybody made any progress on "Bug 188261 - [xen] FreeBSD DomU PVHVM > >>> guests cannot 'route' traffic for other Xen PV guests on same Dom0 Host." > >>> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188261)? > >>> > >>> The code for checksum calculation in the function xnb_add_mbuf_cksum() looks > >>> suspect. > >>> > >>> switch (iph->ip_p) { > >>> case IPPROTO_TCP: > >>> if (mbufc->m_pkthdr.csum_flags & CSUM_IP_VALID) { > >>> size_t tcplen = ntohs(iph->ip_len) - sizeof(struct ip); > >>> struct tcphdr *th = (struct tcphdr*)(iph + 1); > >>> th->th_sum = in_pseudo(iph->ip_src.s_addr, > >>> iph->ip_dst.s_addr, htons(IPPROTO_TCP + tcplen)); > >>> th->th_sum = in_cksum_skip(mbufc, > >>> sizeof(struct ether_header) + ntohs(iph->ip_len), > >>> sizeof(struct ether_header) + (iph->ip_hl << 2)); > >>> } > >>> break; > >>> case IPPROTO_UDP: > >>> if (mbufc->m_pkthdr.csum_flags & CSUM_IP_VALID) { > >>> size_t udplen = ntohs(iph->ip_len) - sizeof(struct ip); > >>> struct udphdr *uh = (struct udphdr*)(iph + 1); > >>> uh->uh_sum = in_pseudo(iph->ip_src.s_addr, > >>> iph->ip_dst.s_addr, htons(IPPROTO_UDP + udplen)); > >>> uh->uh_sum = in_cksum_skip(mbufc, > >>> sizeof(struct ether_header) + ntohs(iph->ip_len), > >>> sizeof(struct ether_header) + (iph->ip_hl << 2)); > >>> } > >>> break; > >>> default: > >>> break; > >>> } > >>> > >>> > >>> Both in_pseudo() and in_cksum_skip() set the same checksum. Does this > >>> make since to anybody? > >> > >> The bug you are referring to affects FreeBSD when running as a guest > >> using xen-netfront, but the code snipped above and the function > >> referenced (xnb_add_mbuf_cksum) is only used on FreeBSD when running as > >> a host (AKA Dom0) by xen-netback. > >> > >> TBH, I don't know that much about FreeBSD network subsystem to have an > >> opinion, but it certainly looks weird. Patches are welcome :). > > > > Xyper-V has a similar forward issue. I found they were misusing csum_flags > > and were always attempting to do checksum offloading if CSUM_IP_VALID was > > set. I have given them a patch that fixes the issue. I was hoping that > > Xen's issue was similar. I found the issue above by looking at all uses > > of csum_flags in sys/dev/xen. It is hard to tell what the correct fix > > is, without fulling understand the protocal used when communicating between > > backend and frontend of Xen. > > > > > I am sure issue with XEN guest forwarding has to with checksum offloading. > > If I am not misinterpreting your comments, I can ignore code in netback and > > concentrate on code in netfront when trying to understand what is going wrong. > > Yes, this issue is related to netfront (sys/dev/xen/netfront/netfront.c) > only, netback code is not involved. The code related to the checksum > stuff is on line ~1409 for the TX side, and around line 872 for the RX > side AFAICT. > > You can find more information about the protocol itself in > sys/xen/interface/io/netif.h. > > Adding Wei Liu who is also doing some work to improve netfront, and > knows more about the protocol than myself. > Sorry for the late reply. I think the place to look at, as Roger suggested, is netfront checksum setup code. The relevant flags in Xen network protocol are: XEN_NETTXF_csum_blank -- protocol checksum field is blank XEN_NETTXF_data_validated -- data has been validated I'm not entirely sure FreeBSD netfront is mapping its own CSUM_* flags correctly to Xen's. I think at some point I can look into it, but not in the near future. Wei. > Roger.