From owner-freebsd-xen@freebsd.org Sun Aug 19 18:50:59 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC4F8107455A for ; Sun, 19 Aug 2018 18:50:58 +0000 (UTC) (envelope-from nathan.friess@gmail.com) Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C039854A6 for ; Sun, 19 Aug 2018 18:50:58 +0000 (UTC) (envelope-from nathan.friess@gmail.com) Received: by mail-pf1-x443.google.com with SMTP id b11-v6so5661834pfo.3 for ; Sun, 19 Aug 2018 11:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=sIP71a+fHy9YjMG5XmaBM7snzpe5ucn3rSJ2pG91/0M=; b=QXlo4PCElY7gnR3N+l//W2NqKP/jehMM3ti97zWIQmvpkA9eH+nG1ROlBGfeU4pCII oP21CxL4u838dQjKH1KuFeHWahaTziqqMxLo+24wx13gdr2bHs4/iQ8IavvL56p/Pqd/ O8vjFKuGpzLA0l0eWIYyqkpibD1n64lzvU10qlOcaspmMQeXGONcjmuebsVVgBznrVnl XkY1ghtLSvvGBjnyEaxtz0+kBExdWd0mt1l+od0nnWRtXmbbQg5bqjpsuc+FN84xqM9N jw9cryKNITv9efW6z75gwXgY6mfyXC1Pe9uFFzPL4Y6UN/y3QHzkGdkLNsVlTEpd9VtR lU9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=sIP71a+fHy9YjMG5XmaBM7snzpe5ucn3rSJ2pG91/0M=; b=Khd58iKnUT2RaxWmS/XIx6SiuJ8kPcUkcpAUqT9acRnjwiAZAiGsEWcW/Wf6kq0nYy 3Victe7P4OisRG8b98JBQ73DVflqQpgmbIerzuqJ3SBdzQQQJF6LsRXvTQzy8JpQ4zb0 c4LZJqM4vDiGvuxBA0cO4FBlP3ZNRovm9LRARNgc5547u9E0UWAA1CLqpVBjY/QeQyk+ bYMij+lMXbUj77kM2k4jI63nzyufG5B799o7QLt+LS+fEWQ+vXaI7P/5agNIt+j5Vk9r SnukSwQYKdJ4ZrbzumaioAsn02enD1iNlGr345AbCimDEKloDXnSnFv4lXRkns4Q08ny O7Vg== X-Gm-Message-State: AOUpUlE5aLkYKD3M3u342j4uKgjCAuvw2BnCeBwI73KsdtFU5Yt1eVUD OlMaqv8JUorr+1hKugzlaLE+jlIV X-Google-Smtp-Source: AA+uWPz2r5igQgS9XVLbXCGdTEvuyCuAd/ZEOO/ZeHoGrzyyF1kURSWKBlFjEf1XnG2aNUV5pcjCww== X-Received: by 2002:a63:9248:: with SMTP id s8-v6mr1424470pgn.141.1534704656985; Sun, 19 Aug 2018 11:50:56 -0700 (PDT) Received: from [10.2.1.1] (S01060018e7c4b870.cg.shawcable.net. [70.72.182.108]) by smtp.gmail.com with ESMTPSA id z8-v6sm9520016pfe.163.2018.08.19.11.50.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 11:50:56 -0700 (PDT) To: freebsd-xen@freebsd.org From: Nathan Friess Subject: xen+vimage kernel panic Message-ID: <1f010180-30c3-3a28-a2ca-b9f6279aee9c@gmail.com> Date: Sun, 19 Aug 2018 12:50:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.27 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, 19 Aug 2018 18:50:59 -0000 Hi, While testing out the new PVH support in a domU (which is running great!), I discovered a kernel panic related to xen and vimage support when trying to add an xn interface into a bridge. I'm running r337024 from svn. Removing vimage (which seems to be turned on in 12-CURRENT now) allows using the bridge with no panics. As part of attempting to debug this I enabled vimage in my 11.2 domU and that also panics in the same code. I'm not sure if the problem is a xen issue or a vimage issue so I haven't submitted a PR yet. The kernel output is listed below. It looks like netfront_backend_changed() calls netfront_send_fake_arp(), which calls arp_ifinit() on the interface. The first line of the call stack with arprequest+0x454 corresponds to a call to ARPSTAT_INC(txrequests) at the end of arprequest, which expands to VNET_PCPUSTAT_ADD(). I tried to debug further and I got a little lost, but that's where I figured out that vimage is involved somehow. Are there any thoughts on why the xn interface would cause a panic there? Thanks, Nathan ======= Steps to reproduce: # ifconfig bridge create bridge0 # ifconfig bridge0 addm xn0 (panic...) ====== Kernel output: xn0: performing interface reset due to feature change (... lock reversal) xn0: backend features: feature-sg feature-gso-tcp4 Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 02 fault virtual address = 0x28 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80d15db4 stack pointer = 0x0:0xfffffe0000483840 frame pointer = 0x0:0xfffffe0000483940 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 14 (xenwatch) [ thread pid 14 tid 100033 ] Stopped at arprequest+0x454: movq ll+0x7(%rax),%rax db> bt Tracing pid 14 tid 100033 td 0xfffff800032f5000 arprequest() at arprequest+0x454/frame 0xfffffe0000483940 arp_ifinit() at arp_ifinit+0x58/frame 0xfffffe0000483980 netfront_backend_changed() at netfront_backend_changed+0x144/frame 0xfffffe0000483a40 xenwatch_thread() at xenwatch_thread+0x182/frame 0xfffffe0000483a70 fork_exit() at fork_exit+0x84/frame 0xfffffe0000483ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0000483ab0 ====== From owner-freebsd-xen@freebsd.org Sun Aug 19 20:47:41 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7D001077554 for ; Sun, 19 Aug 2018 20:47:41 +0000 (UTC) (envelope-from zec@fer.hr) Received: from mail.fer.hr (mail.fer.hr [161.53.72.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.fer.hr", Issuer "TERENA SSL CA 3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 226728A1CC for ; Sun, 19 Aug 2018 20:47:40 +0000 (UTC) (envelope-from zec@fer.hr) Received: from x23 (31.147.45.91) by MAIL.fer.hr (161.53.72.233) with Microsoft SMTP Server (TLS) id 14.3.399.0; Sun, 19 Aug 2018 22:47:27 +0200 Date: Sun, 19 Aug 2018 22:48:52 +0200 From: Marko Zec To: Nathan Friess CC: Subject: Re: xen+vimage kernel panic Message-ID: <20180819224852.40754d2a@x23> In-Reply-To: <1f010180-30c3-3a28-a2ca-b9f6279aee9c@gmail.com> References: <1f010180-30c3-3a28-a2ca-b9f6279aee9c@gmail.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/5WN0LEJF/eawDrcVx6qa0bP" X-Originating-IP: [31.147.45.91] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.27 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, 19 Aug 2018 20:47:41 -0000 --MP_/5WN0LEJF/eawDrcVx6qa0bP Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, 19 Aug 2018 12:50:55 -0600 Nathan Friess wrote: > Hi, > > While testing out the new PVH support in a domU (which is running > great!), I discovered a kernel panic related to xen and vimage > support when trying to add an xn interface into a bridge. > > I'm running r337024 from svn. Removing vimage (which seems to be > turned on in 12-CURRENT now) allows using the bridge with no panics. > As part of attempting to debug this I enabled vimage in my 11.2 domU > and that also panics in the same code. > > I'm not sure if the problem is a xen issue or a vimage issue so I > haven't submitted a PR yet. The kernel output is listed below. > > It looks like netfront_backend_changed() calls > netfront_send_fake_arp(), which calls arp_ifinit() on the interface. > The first line of the call stack with arprequest+0x454 corresponds to > a call to ARPSTAT_INC(txrequests) at the end of arprequest, which > expands to VNET_PCPUSTAT_ADD(). I tried to debug further and I got a > little lost, but that's where I figured out that vimage is involved > somehow. > > Are there any thoughts on why the xn interface would cause a panic > there? The xn driver calls arp_ifinit() without setting the vnet context first. Perhaps the attached patch could help (not even compile tested...) Marko > > Thanks, > > Nathan > > > > > ======= > > Steps to reproduce: > > # ifconfig bridge create > bridge0 > # ifconfig bridge0 addm xn0 > (panic...) > > > ====== > > Kernel output: > > xn0: performing interface reset due to feature change > (... lock reversal) > xn0: backend features: feature-sg feature-gso-tcp4 > > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; apic id = 02 > fault virtual address = 0x28 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80d15db4 > stack pointer = 0x0:0xfffffe0000483840 > frame pointer = 0x0:0xfffffe0000483940 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 14 (xenwatch) > [ thread pid 14 tid 100033 ] > Stopped at arprequest+0x454: movq ll+0x7(%rax),%rax > > db> bt > Tracing pid 14 tid 100033 td 0xfffff800032f5000 > arprequest() at arprequest+0x454/frame 0xfffffe0000483940 > arp_ifinit() at arp_ifinit+0x58/frame 0xfffffe0000483980 > netfront_backend_changed() at netfront_backend_changed+0x144/frame > 0xfffffe0000483a40 > xenwatch_thread() at xenwatch_thread+0x182/frame 0xfffffe0000483a70 > fork_exit() at fork_exit+0x84/frame 0xfffffe0000483ab0 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0000483ab0 > > ====== > > _______________________________________________ > freebsd-xen@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" --MP_/5WN0LEJF/eawDrcVx6qa0bP Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xn_vnet.diff" Index: sys/dev/xen/netfront/netfront.c =================================================================== --- sys/dev/xen/netfront/netfront.c (revision 335557) +++ sys/dev/xen/netfront/netfront.c (working copy) @@ -942,11 +942,13 @@ struct ifaddr *ifa; ifp = info->xn_ifp; + CURVNET_SET(ifp->if_vnet); TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { if (ifa->ifa_addr->sa_family == AF_INET) { arp_ifinit(ifp, ifa); } } + CURVNET_RESTORE(); } #endif --MP_/5WN0LEJF/eawDrcVx6qa0bP-- From owner-freebsd-xen@freebsd.org Mon Aug 20 09:50:25 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E702108AD36 for ; Mon, 20 Aug 2018 09:50:25 +0000 (UTC) (envelope-from prvs=76356e8f4=roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [185.25.65.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.citrix.com", Issuer "DigiCert SHA2 Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC30084573 for ; Mon, 20 Aug 2018 09:50:24 +0000 (UTC) (envelope-from prvs=76356e8f4=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.53,264,1531785600"; d="scan'208";a="77850597" Date: Mon, 20 Aug 2018 11:49:04 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Marko Zec CC: Nathan Friess , Subject: Re: xen+vimage kernel panic Message-ID: <20180820094904.xdvsdowllpjcivlx@mac> References: <1f010180-30c3-3a28-a2ca-b9f6279aee9c@gmail.com> <20180819224852.40754d2a@x23> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180819224852.40754d2a@x23> User-Agent: NeoMutt/20180716 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.27 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, 20 Aug 2018 09:50:25 -0000 On Sun, Aug 19, 2018 at 10:48:52PM +0200, Marko Zec wrote: > On Sun, 19 Aug 2018 12:50:55 -0600 > Nathan Friess wrote: > > > Hi, > > > > While testing out the new PVH support in a domU (which is running > > great!), I discovered a kernel panic related to xen and vimage > > support when trying to add an xn interface into a bridge. > > > > I'm running r337024 from svn. Removing vimage (which seems to be > > turned on in 12-CURRENT now) allows using the bridge with no panics. > > As part of attempting to debug this I enabled vimage in my 11.2 domU > > and that also panics in the same code. > > > > I'm not sure if the problem is a xen issue or a vimage issue so I > > haven't submitted a PR yet. The kernel output is listed below. > > > > It looks like netfront_backend_changed() calls > > netfront_send_fake_arp(), which calls arp_ifinit() on the interface. > > The first line of the call stack with arprequest+0x454 corresponds to > > a call to ARPSTAT_INC(txrequests) at the end of arprequest, which > > expands to VNET_PCPUSTAT_ADD(). I tried to debug further and I got a > > little lost, but that's where I figured out that vimage is involved > > somehow. > > > > Are there any thoughts on why the xn interface would cause a panic > > there? > > The xn driver calls arp_ifinit() without setting the vnet context > first. Perhaps the attached patch could help (not even compile > tested...) I know nothing about VNET, so is this initialization required now that VNET is enabled? Is this an existing bug in netfront that was harmless before VNET was activated? Can you please file a bug report and attach the patch? Thanks, Roger. From owner-freebsd-xen@freebsd.org Thu Aug 23 16:26:20 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52BFD1091E0A for ; Thu, 23 Aug 2018 16:26:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 E3F25791E7 for ; Thu, 23 Aug 2018 16:26:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A3D061091E09; Thu, 23 Aug 2018 16:26:19 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 927641091E08 for ; Thu, 23 Aug 2018 16:26:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 348E9791E1 for ; Thu, 23 Aug 2018 16:26:19 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5D907234EA for ; Thu, 23 Aug 2018 16:26:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NGQIrd057581 for ; Thu, 23 Aug 2018 16:26:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7NGQItf057563 for xen@FreeBSD.org; Thu, 23 Aug 2018 16:26:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 230845] VIMAGE regression: breaks netfront suspend/resume Date: Thu, 23 Aug 2018 16:26:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.27 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, 23 Aug 2018 16:26:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230845 --- Comment #2 from Roger Pau Monn=C3=83=C2=A9 --- (In reply to Kristof Provost from comment #1) Thanks! That does indeed seems to solve the issue, it just has a minor typo: s/vnet/if_vnet/. Would you like to commit it? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Thu Aug 23 17:09:15 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E32E51092C78 for ; Thu, 23 Aug 2018 17:09:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8050D7B087 for ; Thu, 23 Aug 2018 17:09:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 454B61092C76; Thu, 23 Aug 2018 17:09:14 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 340861092C74 for ; Thu, 23 Aug 2018 17:09:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C9F387B084 for ; Thu, 23 Aug 2018 17:09:13 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 09ADD23A20 for ; Thu, 23 Aug 2018 17:09:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NH99CN011996 for ; Thu, 23 Aug 2018 17:09:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7NGrYZl063404 for xen@FreeBSD.org; Thu, 23 Aug 2018 16:53:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 230845] VIMAGE regression: breaks netfront suspend/resume Date: Thu, 23 Aug 2018 16:53:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.27 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, 23 Aug 2018 17:09:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230845 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: kp Date: Thu Aug 23 16:52:53 UTC 2018 New revision: 338256 URL: https://svnweb.freebsd.org/changeset/base/338256 Log: xen/netfront: Ensure curvnet is set netfront_backend_changed() is called from the xenwatch_thread(), which me= ans that the curvnet is not set. We have to set it before we can call things = like arp_ifinit(). PR: 230845 Changes: head/sys/dev/xen/netfront/netfront.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Thu Aug 23 15:29:24 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B2241090718 for ; Thu, 23 Aug 2018 15:29:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 EC7407691A for ; Thu, 23 Aug 2018 15:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B0D751090715; Thu, 23 Aug 2018 15:29:23 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F82A1090714 for ; Thu, 23 Aug 2018 15:29:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3737A76917 for ; Thu, 23 Aug 2018 15:29:23 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8803C22C7A for ; Thu, 23 Aug 2018 15:29:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NFTMed037035 for ; Thu, 23 Aug 2018 15:29:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7NFTMLG036974 for xen@FreeBSD.org; Thu, 23 Aug 2018 15:29:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 230845] VIMAGE regression: breaks netfront suspend/resume Date: Thu, 23 Aug 2018 15:29:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to keywords 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.27 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, 23 Aug 2018 15:29:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230845 Roger Pau Monn=C3=83=C2=A9 changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |xen@FreeBSD.org Keywords| |panic, vimage --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Thu Aug 23 16:09:11 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9F3110916AC for ; Thu, 23 Aug 2018 16:09:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 6528377F1F for ; Thu, 23 Aug 2018 16:09:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2501810916A6; Thu, 23 Aug 2018 16:09:11 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13B6C10916A5 for ; Thu, 23 Aug 2018 16:09:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 675BF77F1A for ; Thu, 23 Aug 2018 16:09:10 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A9BB42324A for ; Thu, 23 Aug 2018 16:09:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NG99oh085828 for ; Thu, 23 Aug 2018 16:09:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7NG3fPO070576 for xen@FreeBSD.org; Thu, 23 Aug 2018 16:03:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 230845] VIMAGE regression: breaks netfront suspend/resume Date: Thu, 23 Aug 2018 16:03:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.27 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, 23 Aug 2018 16:09:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230845 Kristof Provost changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kp@freebsd.org --- Comment #1 from Kristof Provost --- This likely means you wound up calling arp_ifnet() without a curvnet set. That's important context for basically all networking operations, but it's = not going to be set when called from a kernel thread, as appears to be the case here. Usually all you have to do is ensure that the correct vnet is set. This is untested (and may not even compile), but might fix it: diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfron= t.c index ba8ac3caf7f..12938354f9c 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -962,6 +962,8 @@ netfront_backend_changed(device_t dev, XenbusState newstate) DPRINTK("newstate=3D%d\n", newstate); + CURVNET_SET(sc->xn_ifp->vnet); + switch (newstate) { case XenbusStateInitialising: case XenbusStateInitialised: @@ -994,6 +996,8 @@ netfront_backend_changed(device_t dev, XenbusState newstate) #endif break; } + + CURVNET_RESTORE(); } /** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Fri Aug 24 04:14:49 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC2DE10A0B5A for ; Fri, 24 Aug 2018 04:14:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8281D760E7 for ; Fri, 24 Aug 2018 04:14:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4876610A0B54; Fri, 24 Aug 2018 04:14:48 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3751210A0B53 for ; Fri, 24 Aug 2018 04:14:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCBE1760DF for ; Fri, 24 Aug 2018 04:14:47 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1E8B69FF3 for ; Fri, 24 Aug 2018 04:14:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7O4EkUC019515 for ; Fri, 24 Aug 2018 04:14:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7O4EkGw019514 for xen@FreeBSD.org; Fri, 24 Aug 2018 04:14:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 230845] VIMAGE regression: breaks netfront suspend/resume Date: Fri, 24 Aug 2018 04:14:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, regression, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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.27 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: Fri, 24 Aug 2018 04:14:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230845 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Fri Aug 24 07:56:54 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FA5B10827A5 for ; Fri, 24 Aug 2018 07:56:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 E26337BEE5 for ; Fri, 24 Aug 2018 07:56:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A392310827A3; Fri, 24 Aug 2018 07:56:53 +0000 (UTC) Delivered-To: xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9245310827A1 for ; Fri, 24 Aug 2018 07:56:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32BC67BEE1 for ; Fri, 24 Aug 2018 07:56:53 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 796DCC001 for ; Fri, 24 Aug 2018 07:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7O7uqLB098459 for ; Fri, 24 Aug 2018 07:56:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7O7uqjf098458 for xen@FreeBSD.org; Fri, 24 Aug 2018 07:56:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 230845] VIMAGE regression: breaks netfront suspend/resume Date: Fri, 24 Aug 2018 07:56:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, regression, vimage X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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.27 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: Fri, 24 Aug 2018 07:56:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230845 Roger Pau Monn=C3=83=C2=A9 changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Sat Aug 25 16:55:18 2018 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66BA41090447 for ; Sat, 25 Aug 2018 16:55:18 +0000 (UTC) (envelope-from kai_otto@duckster.net) Received: from woodhouse.mariphil-volunteers.com (woodhouse.mariphil-volunteers.com [IPv6:2a03:4000:10:14::dead:beef]) by mx1.freebsd.org (Postfix) with ESMTP id D837A79974; Sat, 25 Aug 2018 16:55:17 +0000 (UTC) (envelope-from kai_otto@duckster.net) Received: from localhost (localhost [127.0.0.1]) by woodhouse.mariphil-volunteers.com (Postfix) with ESMTP id 340613FE; Sat, 25 Aug 2018 18:56:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at woodhouse.mariphil-volunteers.com Received: from woodhouse.mariphil-volunteers.com ([127.0.0.1]) by localhost (woodhouse.mariphil-volunteers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id E8wVq-cD7Ov9; Sat, 25 Aug 2018 18:56:15 +0200 (CEST) Received: from [IPv6:2001:16b8:2211:6e0:2c60:5ab1:74a7:1d94] (200116b8221106e02c605ab174a71d94.dip.versatel-1u1.de [IPv6:2001:16b8:2211:6e0:2c60:5ab1:74a7:1d94]) by woodhouse.mariphil-volunteers.com (Postfix) with ESMTPSA id 3F1722C3; Sat, 25 Aug 2018 18:56:15 +0200 (CEST) Subject: Re: HEADS UP: merged PVHv2 support and future plans To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= References: <20180719090444.jojyziar2c6wy735@mac> <20180730101924.aatt5ug33kg6dfil@mac.bytemobile.com> <3781a579-f00f-96fd-8f73-f3f344cd0aad@duckster.net> <20180813171954.2nilwiwsq6yyji66@mac> Cc: freebsd-xen@freebsd.org From: Kai Otto Message-ID: <9d28c30b-36f5-4533-c9b4-e40dca3c1621@duckster.net> Date: Sat, 25 Aug 2018 18:54:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180813171954.2nilwiwsq6yyji66@mac> Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.27 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: Sat, 25 Aug 2018 16:55:18 -0000 On 13/08/18 19:19, Roger Pau Monné wrote: > On Mon, Aug 13, 2018 at 05:24:04PM +0200, Kai Otto wrote: >> On 30/07/18 12:19, Roger Pau Monné wrote: >>> Packages for Xen 4.11 are now available in pkg. >>> >>> Remember that in order to use those you need a very recent FreeBSD >>> kernel (r336475 or newer) and the Xen command line has slightly changed, >>> so dom0=pvh must be used instead of dom0pvh in order to boot. I will >>> see about changing this in the handbook. >>> >>> Roger. >>> _______________________________________________ >>> freebsd-xen@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-xen >>> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" >>> >> >> Hi Roger, >> I tried to get some VMs running on >> FreeBSD-12.0-CURRENT-amd64-20180802-r337160. >> System is a Supermicro X9DRi-LN4F+ mainboard with dual Intel E5-2680v2 >> (ivy bridge). [...] >> When using xen-tools411/xen-kernel411, I can boot without problems, but >> when running "xl create", neither a PVH nor HVM config work (see configs >> and logs attached). >> They both throw "libxl: info: >> libxl_create.c:109:libxl__domain_build_info_setdefault: qemu-xen is >> unavailable, using qemu-xen-traditional instead: No such file or directory" > > Hello, > > This is a mistake of the port makefile which should be fixed in > r477080 that I've just committed. I hope updated packages will be > generated soon. Thanks for the testing! > Hello again :-) Today I gave it another try with FreeBSD 12.0-ALPHA3 r338287 and the current packages for xen-tools411 and xen-kernel411. Sadly, I didn't get very far, even with the above bug being fixed. When attempting to start a HVM config, the console (xl console ) stays empty and unresponsive. Connecting via vnc, the screen only shows this message: "Guest has not initialized the display (yet)". When repeatedly running 'xl list', I can see that the domU almost consumes 1 second of CPU per second walltime. Trying out PVH, the console also doesn't show any sign of life, and VNC says: "This VM has no graphic display device." Running 'xl list' shows, that the domU consumed about 1.4s of CPU, and then switched to 'blocked' state. I can't see any errors in the log file either. Do you or anyone else have a working .cfg file that you could share, or any ideas what might be going wrong? - Kai