From nobody Mon Jun 7 14:21:13 2021 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 91D4E953E38 for ; Mon, 7 Jun 2021 14:23:21 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FzFw73RCbz3Db5 for ; Mon, 7 Jun 2021 14:23:18 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x82f.google.com with SMTP id z4so9661288qts.4 for ; Mon, 07 Jun 2021 07:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=2b2pIsmrx1G16OPbpfXgbTPT8foO57h2nBxVupyvJAo=; b=BkZQFDNoivCotd+azIMggaJk+3IWsW5F3yfrVsdDM3SYWtGDK7FQiBpD8IPL9k3J0Y P21zTR+xkAIA9fiAUXsJGTLQ+O7eCggnalZXqlhhhO8s7DHV4QF22D8haw8cY9DtRzfj PmdSwkgAgMAxAuFkKfNspQGlaFIOhCqcdtsvSwGe98X5zvO7ZTAsOsazo128SnuAf94Y m6XTNnyPc7kb542+bmOaEfFS586/w8LIAIsbvLO+PmfufekZnFRvDIXMY0A42IosepdZ bKjPDcP4A/UTaFBPTkWiHtZjkqTAt9mLfOqBdLDmq5k+muMXnV/8D9I71+Sn719JF7IP tZmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=2b2pIsmrx1G16OPbpfXgbTPT8foO57h2nBxVupyvJAo=; b=bdh8j02vcecUfnmIIOtT7BakoPgnwhPBELja/zViI0GJKtyq9QO78fHKm2M+9uGuGu ZroJdUxzHRE9rK2gYcl5N474n43XYHlEHCDFAT3iKGjqdvx5Ks8d7l3B//F3HOUGOj6f /lpunPwmnd9uIy3lV850r9mUix66cNWCTHMgNB5/sCppdAEFyrjFMEv3RIAHNuBjKBi0 sZEKsT4T9otnwOrN+pYaU4Bay6t2e4FFWkzFkIiz3rVs2W95ZQV2Uo4JJ085ER7PkV63 3wsF85K+gKTdomYbXQ4eHvVNQyxo2HY6/15XMcbd0xPqQ+I+xS7va1v5rWy/hwvFYjJ6 e8Tw== X-Gm-Message-State: AOAM532+m3ymIyg7nCNiLVBAhTpl+yj1P7ciYTPXEJsNSuRQ+cdlPqsl MAravViu/H3d+A8aFU9yEJE= X-Google-Smtp-Source: ABdhPJza8hTQudibQW6iVJMT5nik/M87G+uDbcuYPd6bOtBnSbpFrcKx96CJk2Ce5NU/5e78Y/vKzA== X-Received: by 2002:ac8:45da:: with SMTP id e26mr7504649qto.193.1623075797752; Mon, 07 Jun 2021 07:23:17 -0700 (PDT) Received: from nuc ([142.126.172.178]) by smtp.gmail.com with ESMTPSA id k8sm1967526qtx.45.2021.06.07.07.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 07:23:17 -0700 (PDT) Sender: Mark Johnston Date: Mon, 7 Jun 2021 10:21:13 -0400 From: Mark Johnston To: Wei Hu Cc: Harry Schmalzbauer , "freebsd-virtualization@freebsd.org" Subject: Re: FreeBSD 12.1 i386 on Hyper-V Fails to Mount Root Message-ID: References: <22bbe4cd-82ed-b826-9ac0-05ef8aceba0e@omnilan.de> <7986b561-dd26-a134-e76d-530900363deb@omnilan.de> List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4FzFw73RCbz3Db5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BkZQFDNo; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::82f as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::82f:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::82f:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82f:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-virtualization] X-ThisMailContainsUnwantedMimeParts: N On Sat, Jun 05, 2021 at 01:00:45PM +0000, Wei Hu via freebsd-virtualization wrote: > Hi Harry, > > Can you test if this patch fixes the problems? > > https://reviews.freebsd.org/D30577 Hi Wei, Harry tested the patch before I submitted the review; it does indeed fix the problems with vmbus on i386/hyperv. > > -----Original Message----- > > From: Harry Schmalzbauer > > Sent: Friday, May 21, 2021 8:50 PM > > To: Konstantin Belousov ; Wei Hu > > Cc: freebsd-virtualization@freebsd.org > > Subject: Re: FreeBSD 12.1 i386 on Hyper-V Fails to Mount Root > > > > Am 19.05.2021 um 13:26 schrieb Harry Schmalzbauer: > > > > ... > > > I can just assure that I tracked it down to the single r332489 committ > > > which makes vmbus(4) failing on i386. > > > Verification done: > > > - built/installed world&kernel on i386 HyV guest with r332488 > > >   reboot fine. > > > - built/installed kernel on the same vm after svnlite up -r 332489 > > >   reboot fails with "vmbus0: cannot find free IDT vector" > > > - loaded kernel.old/kernel, did revert 332489, by 'svnlite up -r > > > 332488' and compiled/reinstalled kernel (again r332488) > > >   reboot fine. > > > > While having hard time catching up with x86 basics, I found another oddity: > > On Hyper-V gen1, the maximum ammount of RAM I can assign a FreeBSD guest > > beeing able to boot i386 is 3914MB, startring with r332489. > > As soon as I configure the guest to have 3916MB or more, FreeBSD-i386 > > r332489 booting leads to guest reset.  Loader starts kernel, machine reboots. > > Either reverting to r332488 or reducing guest-RAM solves this. > > > > The most interesting fact here is that I couldn't reproduce it on ESXi. > > I ducplicated the Hyper-V HDD and started the exactly same code on > > ESXi(v6) guest, where it doesn't crash!  I can boot FreeBSD-i386 r332489 with > > any ammount of guest-RAM on ESXi. > > (speaking for GENERIC, non-PAE) > > > > Host CPU differs significantly though and I have no possibility to test this > > influence.  Ther HyperV is Dual-Socket E5-2630 while the ESXi host is a single > > socket X3470 Xeon (pre SandyBridge). > > > > Maybe someone has an idea how this affects these symptoms. > > > > Thanks, > > -harry > > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"