From owner-freebsd-virtualization@freebsd.org Mon Oct 15 16:06:07 2018 Return-Path: Delivered-To: freebsd-virtualization@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 4B96B10B767B for ; Mon, 15 Oct 2018 16:06:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DE43A79FBD for ; Mon, 15 Oct 2018 16:06:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id B7FEA8D4A213 for ; Mon, 15 Oct 2018 16:05:57 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id C22AFD1F855 for ; Mon, 15 Oct 2018 16:05:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id hEe1a4z8MAVj for ; Mon, 15 Oct 2018 16:05:55 +0000 (UTC) Received: from [10.248.98.63] (fresh-ayiya.sbone.de [IPv6:fde9:577b:c1a9:f001::2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 7C3B3D1F84E for ; Mon, 15 Oct 2018 16:05:55 +0000 (UTC) From: "Bjoern A. Zeeb" To: "FreeBSD virtualization mailing list" Subject: bhyve on reboot loses tap(4) configuration Date: Mon, 15 Oct 2018 16:05:54 +0000 X-Mailer: MailMate (2.0BETAr6123) Message-ID: <02210D52-A45B-4E54-BCEE-EC61026B70C0@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 16:06:07 -0000 Hi, I tried to use bhyve with the tap(4)/vtnet(4) solution as documented in the handbook (tap needs autoopen). However, I am using no bridge(4) interface but a “point-to-point” configuration. Example: guest configures vtnet0 to 192.0.2.2/24 host configures tap0 to 192.0.2.1/24 When rebooting the guest inside the bhyve, it seems bhyve loses the outside tap0 configuration. I assume that is because the tap0 interface is closed and re-opened on the “warm restart”. Apart from using devd and possibly tracking tap interfaces to come up and track things there, is there are better solution for not having to reconfigure the host interface on every guest reboot? /bz From owner-freebsd-virtualization@freebsd.org Mon Oct 15 16:11:06 2018 Return-Path: Delivered-To: freebsd-virtualization@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 6D50810B79C7 for ; Mon, 15 Oct 2018 16:11:06 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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 CAD457A1FB for ; Mon, 15 Oct 2018 16:11:05 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: by mail-lf1-x12f.google.com with SMTP id o21-v6so14527089lfe.0 for ; Mon, 15 Oct 2018 09:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=6cQ+tclRbzB+Ta6XY9lxovlhUCdZdvHMP+VRN2G3jrA=; b=ZnJbVFYUE68UAXJU7gAl1oTbN8f0IUOBvFBCwfMDEUqV024MueeB7ohvZCTd4W1V52 Mb+NPCiz5GJTHHTJ7FwZxEPb0LECHsHhGQXdqXqT7vOSHLRn7LHwZ9WLOU6JvrAlgiZa 2OM8vOKUrMKRSjySTuMpVV++RZfAcdMogF+tbtV6KLufF0NkwdQlOppgoTf9hxP0LS/F QDU8YBNGdRwRMRbSJA2W5yvf7RWwrt8F/2jyfNAxR4Bh+y+oG+YlbjIaCo4KPlGaBOLB FdXEf5UQe7N/3jgH4UkQ00j8QI9F4v7eZqeeJ8e3c+Vfpga7tcyD5PHCyyhaU/ztd5sY bxZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=6cQ+tclRbzB+Ta6XY9lxovlhUCdZdvHMP+VRN2G3jrA=; b=aVvGGHQH71Wgh41HHkpGYmWGTqlZ22wnKmzqOgeulv0Gv1Gz1UN7wByGNEErZbJ36X NN54T0bsLo0OsKUCkDOqxvIycVozMIro+kMaFdYZqSkVJtTRBpjikXqj/oSwwDkfTKVD I7uLifG9pQuGIxUHiKmE3YnUcNZVy2vZPLVy0iaKWJOEMlLG2cRykt9MujLlAXXv5LYA D/0Sr3JniNJmbB7iCUVhANbiq3qFNedcmqAl+yEGPXGbjYSTYlXX3gu5s1m1YvcMZ7UE oMEj6mWa+NNiuPKKTRQsby6z5d+46znotwYM1ARo1SW5gCTkARoCARZ9LZqgcm0f8vMi EYgA== X-Gm-Message-State: ABuFfohqRyqk0Jx23aXZvHJCweA983n+pp4GiZQDo7aMRbfYz4Go6HRS fTi19iePRP8/zC6D8p/yc3OgFJ6wWRxAgEPMlC3RLeuo X-Google-Smtp-Source: ACcGV61QLzzZ+Tbadv9BgkQwkBwP4ei4xiDjGNrxLY8VGlGmWq/Dun6uUHt4ZR0llXyIZ9k2RQ3+cgWwTEbNAvbW9JQ= X-Received: by 2002:a19:4ed5:: with SMTP id u82-v6mr1087738lfk.77.1539619864169; Mon, 15 Oct 2018 09:11:04 -0700 (PDT) MIME-Version: 1.0 References: <02210D52-A45B-4E54-BCEE-EC61026B70C0@lists.zabbadoz.net> In-Reply-To: <02210D52-A45B-4E54-BCEE-EC61026B70C0@lists.zabbadoz.net> Reply-To: araujo@freebsd.org From: Marcelo Araujo Date: Tue, 16 Oct 2018 00:10:50 +0800 Message-ID: Subject: Re: bhyve on reboot loses tap(4) configuration To: bzeeb-lists@lists.zabbadoz.net Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 16:11:06 -0000 Em ter, 16 de out de 2018 =C3=A0s 00:06, Bjoern A. Zeeb < bzeeb-lists@lists.zabbadoz.net> escreveu: > Hi, > > I tried to use bhyve with the tap(4)/vtnet(4) solution as documented in > the handbook (tap needs autoopen). > However, I am using no bridge(4) interface but a =E2=80=9Cpoint-to-point= =E2=80=9D > configuration. > > Example: > guest configures vtnet0 to 192.0.2.2/24 > host configures tap0 to 192.0.2.1/24 > > When rebooting the guest inside the bhyve, it seems bhyve loses the > outside tap0 configuration. I assume that is because the tap0 interface > is closed and re-opened on the =E2=80=9Cwarm restart=E2=80=9D. > > Apart from using devd and possibly tracking tap interfaces to come up > and track things there, is there are better solution for not having to > reconfigure the host interface on every guest reboot? > Not sure if I understood well your case, but have you tried to set this sysctl: net.link.tap.up_on_open? Best, --=20 --=20 Marcelo Araujo (__)araujo@FreeBSD.org \\\'',)http://www.FreeBSD.org \/ \ ^ Power To Server. .\. /_) From owner-freebsd-virtualization@freebsd.org Mon Oct 15 16:14:09 2018 Return-Path: Delivered-To: freebsd-virtualization@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 3A2F610B7C98 for ; Mon, 15 Oct 2018 16:14:09 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C41E97A5AC for ; Mon, 15 Oct 2018 16:14:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 0A1E18D4A213 for ; Mon, 15 Oct 2018 16:14:07 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 198B8D1F855 for ; Mon, 15 Oct 2018 16:14:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 6H4sUuoUkOmb for ; Mon, 15 Oct 2018 16:14:04 +0000 (UTC) Received: from [10.248.98.63] (fresh-ayiya.sbone.de [IPv6:fde9:577b:c1a9:f001::2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 881E5D1F84E for ; Mon, 15 Oct 2018 16:14:04 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-virtualization@freebsd.org Subject: Re: bhyve on reboot loses tap(4) configuration Date: Mon, 15 Oct 2018 16:14:03 +0000 X-Mailer: MailMate (2.0BETAr6123) Message-ID: <683CA96A-EE1A-468E-8041-50721B9215D8@lists.zabbadoz.net> In-Reply-To: References: <02210D52-A45B-4E54-BCEE-EC61026B70C0@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 16:14:09 -0000 On 15 Oct 2018, at 16:10, Marcelo Araujo wrote: > Em ter, 16 de out de 2018 às 00:06, Bjoern A. Zeeb < > bzeeb-lists@lists.zabbadoz.net> escreveu: > >> Hi, >> >> I tried to use bhyve with the tap(4)/vtnet(4) solution as documented >> in >> the handbook (tap needs autoopen). >> However, I am using no bridge(4) interface but a “point-to-point” >> configuration. >> >> Example: >> guest configures vtnet0 to 192.0.2.2/24 >> host configures tap0 to 192.0.2.1/24 >> >> When rebooting the guest inside the bhyve, it seems bhyve loses the >> outside tap0 configuration. I assume that is because the tap0 >> interface >> is closed and re-opened on the “warm restart”. >> >> Apart from using devd and possibly tracking tap interfaces to come up >> and track things there, is there are better solution for not having >> to >> reconfigure the host interface on every guest reboot? >> > > Not sure if I understood well your case, but have you tried to set > this > sysctl: net.link.tap.up_on_open? That only ensures that effectively “an ifconfig tap up” gets issued. The problem, as I assume is, if you close /dev/tap and re-open /dev/tap it seems the configuration (interface addresses) seem to be cleaned up on “close”. /bz From owner-freebsd-virtualization@freebsd.org Mon Oct 15 16:23:49 2018 Return-Path: Delivered-To: freebsd-virtualization@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 242D910C1336 for ; Mon, 15 Oct 2018 16:23:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A9CCA7ACDF for ; Mon, 15 Oct 2018 16:23:48 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 79F6810B476; Mon, 15 Oct 2018 12:23:47 -0400 (EDT) Subject: Re: CFT: Reload LDTR after #VMEXIT on AMD-v in bhyve To: Mike Tancsa , freebsd-virtualization@freebsd.org References: <8282ebc8-7287-04fa-42d7-2c8501c4b979@sentex.net> From: John Baldwin Message-ID: Date: Mon, 15 Oct 2018 09:23:46 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <8282ebc8-7287-04fa-42d7-2c8501c4b979@sentex.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 15 Oct 2018 12:23:47 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 16:23:49 -0000 On 10/11/18 1:04 PM, Mike Tancsa wrote: > On 10/11/2018 3:02 PM, John Baldwin wrote: >> Can someone using bhyve on an AMD host test this patch? Just booting a >> guest to multiuser is probably sufficient testing: >> >> https://github.com/bsdjhb/freebsd/commit/97323364e196900548f5293ac97bfb22b8a2ba72.patch > > well, if I let the box boot fully and then load the vmm.ko, all is good. > But if I load it from /boot/loader.conf, I get a panic at boot up (img > attached) > > But other than that, it works fine. That panic doesn't really make sense. :( The patch only changes behavior when you are actually running a guest, it doesn't affect anything in the vmm.ko initialization. > > > 0{ryzenbsd12}# fetch -o p > https://github.com/bsdjhb/freebsd/commit/97323364e196900548f5293ac97bfb22b8a2ba72.patch > fetch: > https://github.com/bsdjhb/freebsd/commit/97323364e196900548f5293ac97bfb22b8a2ba72.patch: > size of remote file is not known > p                                                     1618  B   15 > MBps    00s > 0{ryzenbsd12}# patch < p > Hmm...  Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |From 97323364e196900548f5293ac97bfb22b8a2ba72 Mon Sep 17 00:00:00 2001 > |From: John Baldwin > |Date: Tue, 9 Oct 2018 14:49:37 -0700 > |Subject: [PATCH] Reload the LDT selector after an AMD-v #VMEXIT. > | > |cpu_switch() always reloads the LDT, so this can only affect the > |hypervisor process itself.  Fix this by explicitly reloading the host > |LDT selector after each #VMEXIT.  The stock bhyve process on FreeBSD > |never uses a custom LDT, so this change is cosmetic. > |--- > | sys/amd64/vmm/amd/svm.c | 13 +++++++++++++ > | 1 file changed, 13 insertions(+) > | > |diff --git a/sys/amd64/vmm/amd/svm.c b/sys/amd64/vmm/amd/svm.c > |index 2597bf9775706..c420db550bc7e 100644 > |--- a/sys/amd64/vmm/amd/svm.c > |+++ b/sys/amd64/vmm/amd/svm.c > -------------------------- > Patching file sys/amd64/vmm/amd/svm.c using Plan A... > Hunk #1 succeeded at 1940. > Hunk #2 succeeded at 2025. > Hunk #3 succeeded at 2064. > done > 0{ryzenbsd12}# > > I confirmed prior to the patch I could run stock 11.2R  i386 and amd64 > guest images on 12.0-ALPHA9 FreeBSD 12.0-ALPHA9 r339287 as the hypervisor > > CPU: AMD Ryzen 5 1600X Six-Core Processor            (3593.34-MHz > K8-class CPU) >   Origin="AuthenticAMD"  Id=0x800f11  Family=0x17  Model=0x1  Stepping=1 >   > Features=0x178bfbff >   > Features2=0x7ed8320b >   AMD Features=0x2e500800 >   AMD > Features2=0x35c233ff >   Structured Extended > Features=0x209c01a9 >   XSAVE Features=0xf >   AMD Extended Feature Extensions ID EBX=0x1007 >   SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 >   TSC: P-state invariant, performance statistics > > > > > with the patched version > > ivhd0: on acpi0 > ivhd0: Flag:b0 > ivhd0: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0 > ivhd0: Extended features[31:0]:22294ada HATS = > 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 > DualPortLogSup = 0x2 DualEventLogSup = 0x2 > ivhd0: Extended features[62:32]:f77ef Max PASID: 0x2f > DevTblSegSup = 0x3 MarcSup = 0x1 > ivhd0: supported paging level:7, will use only: 4 > ivhd0: device range: 0x0 - 0xffff > ivhd0: PCI cap 0x190b640f@0x40 feature:19 Are these messages (ivhd0) new with the patched version and not present with the old one? These shouldn't change due to the patch as these are about the AMD I/O MMU only used by bhyve when doing PCI pass through. -- John Baldwin                                                                              From owner-freebsd-virtualization@freebsd.org Mon Oct 15 17:11:42 2018 Return-Path: Delivered-To: freebsd-virtualization@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 7684210C236B for ; Mon, 15 Oct 2018 17:11:42 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smarthost2.sentex.ca", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A5517C558; Mon, 15 Oct 2018 17:11:42 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5:0:0:0:11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id w9FHBfIj087453 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Oct 2018 13:11:41 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.ca [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id w9FHBcMt050129; Mon, 15 Oct 2018 13:11:39 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: CFT: Reload LDTR after #VMEXIT on AMD-v in bhyve To: John Baldwin , freebsd-virtualization@freebsd.org References: <8282ebc8-7287-04fa-42d7-2c8501c4b979@sentex.net> From: Mike Tancsa Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; prefer-encrypt=mutual; keydata= xsBNBEzcA24BCACpwI/iqOrs0GfQSfhA1v6Z8AcXVeGsRyKEKUpxoOYxXWc2z3vndbYlIP6E YJeifzKhS/9E+VjhhICaepLHfw865TDTUPr5D0Ed+edSsKjlnDtb6hfNJC00P7eoiuvi85TW F/gAxRY269A5d856bYrzLbkWp2lKUR3Bg6NnORtflGzx9ZWAltZbjYjjRqegPv0EQNYcHqWo eRpXilEo1ahT6nmOU8V7yEvT2j4wlLcQ6qg7w+N/vcBvyd/weiwHU+vTQ9mT61x5/wUrQhdw 2gJHeQXeDGMJV49RT2EEz+QVxaf477eyWsdQzPVjAKRMT3BVdK8WvpYAEfBAbXmkboOxABEB AAHNHG1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5jYT7CwHgEEwECACIFAkzcA24CGwMGCwkI BwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEJXHwM2kc8rX+sMH/2V6pTBKsQ5mpWWLgs6wVP2k BC+6r/YKNXv9Rw/PrC6+9hTbgA+sSjJ+8gxsCbJsOQXZrxF0x3l9oYdYfuKcwdwXFX1/FS8p HfBeDkmlH+dI709xT9wgrR4dS5aMmKp0scPrXPIAKiYVOHjOlNItcLYTEEWEFBepheEVsgmk GrNbcrHwOx/u4igUQ8vcpyXPyUki+BsftPw8ZQvBU887igh0OxaCR8AurJppQ5UQd63r81cX E1ZjoFoWCaGK/SjPb/OhpYpu5swoZIhOxQbn7OtakYPsDd5t2A5KhvjI8BMTnd5Go+2xsCmr jlIEq8Bi29gCcfQUvNiClevi13ifmnnOwE0ETNwDbgEIALWGNJHRAhpd0A4vtd3G0oRqMBcM FGThQr3qORmEBTPPEomTdBaHcn+Xl+3YUvTBD/67/mutWBwgp2R5gQOSqcM7axvgMSHbKqBL 9sd1LsLw0UT2O5AYxv3EwzhG84pwRg3XcUqvWA4lA8tIj/1q4Jzi5qOkg1zxq4W9qr9oiYK5 bBR638JUvr3eHMaz/Nz+sDVFgwHmXZj3M6aE5Ce9reCGbvrae7H5D5PPvtT3r22X8SqfVAiO TFKedCf/6jbSOedPN931FJQYopj9P6b3m0nI3ZiCDVSqeyOAIBLzm+RBUIU3brzoxDhYR8pz CJc2sK8l6YjqivPakrD86bFDff8AEQEAAcLAXwQYAQIACQUCTNwDbgIbDAAKCRCVx8DNpHPK 1+iQB/99aqNtez9ZTBWELj269La8ntuRx6gCpzfPXfn6SDIfTItDxTh1hrdRVP5QNGGF5wus N4EMwXouskva1hbFX3Pv72csYSxxEJXjW16oV8WK4KjKXoskLg2RyRP4uXqL7Mp2ezNtVY5F 9nu3fj4ydpHCSaqKy5xd70A8D50PfZsFgkrsa5gdQhPiGGEdxhq/XSeAAnZ4uVLJKarH+mj5 MEhgZPEBWkGrbDZpezl9qbFcUem/uT9x8FYT/JIztMVh9qDcdP5tzANW5J7nvgXjska+VFGY ryZK4SPDczh74mn6GI/+RBi7OUzXXPgpPBrhS5FByjwCqjjsSpTjTds+NGIY Organization: Sentex Communications Message-ID: <5a9c983c-3e10-58fd-be1f-bfffca2d9afd@sentex.net> Date: Mon, 15 Oct 2018 13:11:39 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.83 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 17:11:42 -0000 On 10/15/2018 12:23 PM, John Baldwin wrote: > > That panic doesn't really make sense. :( The patch only changes behavior > when you are actually running a guest, it doesn't affect anything in the > vmm.ko initialization. I dont understand either. I have a few klds to load. Is it possible something is getting initialized out of order at boot up time ?  r339355 seems to have fixed it for me. But I suspect the real issue might come back some other way https://lists.freebsd.org/pipermail/svn-src-head/2018-October/118820.html Regardless, I tested with your patch an amd64 and i386 vm and all seems to work fine     ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 x203 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada From owner-freebsd-virtualization@freebsd.org Mon Oct 15 17:25:45 2018 Return-Path: Delivered-To: freebsd-virtualization@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 AD34A10C2AB0 for ; Mon, 15 Oct 2018 17:25:45 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49CDD7CEC1 for ; Mon, 15 Oct 2018 17:25:45 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 053B310A87D; Mon, 15 Oct 2018 13:25:42 -0400 (EDT) Subject: Re: CFT: Reload LDTR after #VMEXIT on AMD-v in bhyve To: Mike Tancsa , freebsd-virtualization@freebsd.org References: <8282ebc8-7287-04fa-42d7-2c8501c4b979@sentex.net> <5a9c983c-3e10-58fd-be1f-bfffca2d9afd@sentex.net> From: John Baldwin Message-ID: Date: Mon, 15 Oct 2018 10:25:40 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <5a9c983c-3e10-58fd-be1f-bfffca2d9afd@sentex.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 15 Oct 2018 13:25:44 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 17:25:45 -0000 On 10/15/18 10:11 AM, Mike Tancsa wrote: > On 10/15/2018 12:23 PM, John Baldwin wrote: >> >> That panic doesn't really make sense. :( The patch only changes behavior >> when you are actually running a guest, it doesn't affect anything in the >> vmm.ko initialization. > > I dont understand either. I have a few klds to load. Is it possible > something is getting initialized out of order at boot up time ?  r339355 > seems to have fixed it for me. But I suspect the real issue might come > back some other way > > https://lists.freebsd.org/pipermail/svn-src-head/2018-October/118820.html > > Regardless, I tested with your patch an amd64 and i386 vm and all seems > to work fine Ok, thanks! -- John Baldwin                                                                              From owner-freebsd-virtualization@freebsd.org Tue Oct 16 09:33:11 2018 Return-Path: Delivered-To: freebsd-virtualization@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 511DE10C723C for ; Tue, 16 Oct 2018 09:33:11 +0000 (UTC) (envelope-from ofogh.khavarmianeh@gmail.com) Received: from n6.nabble.com (n6.nabble.com [162.255.23.37]) by mx1.freebsd.org (Postfix) with ESMTP id EE20B8398C for ; Tue, 16 Oct 2018 09:33:10 +0000 (UTC) (envelope-from ofogh.khavarmianeh@gmail.com) Received: from n6.nabble.com (localhost [127.0.0.1]) by n6.nabble.com (Postfix) with ESMTP id 79F79A04AA4A for ; Tue, 16 Oct 2018 02:33:04 -0700 (MST) Date: Tue, 16 Oct 2018 02:33:04 -0700 (MST) From: autopartpress To: freebsd-virtualization@freebsd.org Message-ID: <1539682384497-0.post@n6.nabble.com> In-Reply-To: References: Subject: Re: [Bug 216493] [Hyper-V] Mellanox ConnectX-3 VF driver can't work when FreeBSD runs on Hyper-V 2016 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2018 09:33:11 -0000 http://autopartpress.com -- Sent from: http://freebsd.1045724.x6.nabble.com/freebsd-virtualization-f5721547.html From owner-freebsd-virtualization@freebsd.org Thu Oct 18 07:27:03 2018 Return-Path: Delivered-To: freebsd-virtualization@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 79AEF10D1E32 for ; Thu, 18 Oct 2018 07:27:03 +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 16F388022B for ; Thu, 18 Oct 2018 07:27:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D0DBE10D1E31; Thu, 18 Oct 2018 07:27:02 +0000 (UTC) Delivered-To: virtualization@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 BFDDC10D1E30 for ; Thu, 18 Oct 2018 07:27:02 +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 60E8880226 for ; Thu, 18 Oct 2018 07:27:02 +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 AF6EA22933 for ; Thu, 18 Oct 2018 07:27:01 +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 w9I7R1cO022705 for ; Thu, 18 Oct 2018 07:27:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9I7R1Ym022704 for virtualization@FreeBSD.org; Thu, 18 Oct 2018 07:27:01 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: virtualization@FreeBSD.org Subject: [Bug 231797] [hyper-v] hn driver drops UDP traffic with EIO error when TXCSUM_IPV6 flag on Date: Thu, 18 Oct 2018 07:27:01 +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: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: franco@opnsense.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@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-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2018 07:27:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231797 --- Comment #4 from Franco Fichtner --- Thanks for this patch! When will it land? FWIW, the bitwise & should be changed to && and the inner parenthesis are n= ot strictly needed. :) Cheers, Franco --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Oct 18 22:00:27 2018 Return-Path: Delivered-To: freebsd-virtualization@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 52A4EF7690D for ; Thu, 18 Oct 2018 22:00:27 +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 E37D580CB7 for ; Thu, 18 Oct 2018 22:00:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A857CF7690C; Thu, 18 Oct 2018 22:00:26 +0000 (UTC) Delivered-To: virtualization@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 972EFF7690B for ; Thu, 18 Oct 2018 22:00:26 +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 38F1D80CB3 for ; Thu, 18 Oct 2018 22:00:26 +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 679983073 for ; Thu, 18 Oct 2018 22:00:25 +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 w9IM0PF9067079 for ; Thu, 18 Oct 2018 22:00:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9IM0PS2067078 for virtualization@FreeBSD.org; Thu, 18 Oct 2018 22:00:25 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: virtualization@FreeBSD.org Subject: [Bug 231797] [hyper-v] hn driver drops UDP traffic with EIO error when TXCSUM_IPV6 flag on Date: Thu, 18 Oct 2018 22:00:24 +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: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kevin.j.morse@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete 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-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2018 22:00:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231797 Kevin changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #197807|0 |1 is obsolete| | --- Comment #5 from Kevin --- Created attachment 198333 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D198333&action= =3Dedit Updated patch to not discard UDPv6 Hi Franco, Thanks for the review. I believe the team from Microsoft is reviewing the p= atch right now since they emailed me about the bitwise &. It was actually a typo which I have fixed in this patch. Functionally the & worked but switching to && should be faster since && can "short-circuit". Kevin --=20 You are receiving this mail because: You are the assignee for the bug.=