From nobody Sun Jul 10 17:28:05 2022 X-Original-To: current@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 CF84117F843E; Sun, 10 Jul 2022 17:28:07 +0000 (UTC) (envelope-from glebius@freebsd.org) Received: from cell.glebi.us (glebi.us [162.251.186.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lgv9g0RL2z3WPZ; Sun, 10 Jul 2022 17:28:06 +0000 (UTC) (envelope-from glebius@freebsd.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.16.1/8.16.1) with ESMTPS id 26AHS5Vn034274 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 10 Jul 2022 10:28:05 -0700 (PDT) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.glebi.us (8.16.1/8.16.1/Submit) id 26AHS55l034273; Sun, 10 Jul 2022 10:28:05 -0700 (PDT) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@freebsd.org using -f Date: Sun, 10 Jul 2022 10:28:05 -0700 From: Gleb Smirnoff To: Andriy Gapon Cc: current@freebsd.org, virtualization@freebsd.org Subject: Re: problem with bhyve, ryzen 5800x, freebsd guest Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Lgv9g0RL2z3WPZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 162.251.186.162 is neither permitted nor denied by domain of glebius@freebsd.org) smtp.mailfrom=glebius@freebsd.org X-Spamd-Result: default: False [-3.10 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[current,virtualization]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:27348, ipnet:162.251.186.0/24, country:US]; ARC_NA(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[freebsd.org]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[glebius]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; HAS_XAW(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Jul 07, 2022 at 03:29:04PM +0300, Andriy Gapon wrote: A> I have a strange issue with running an 'appliance' image based on A> FreeBSD 12 in bhyve on a machine with Ryzen 5800x processor. A> A> The problem is that the guest would run for a while and then the host A> would suddenly reset itself. It appears like a triple fault or A> something with similar consequences. A> A> The time may be from a few dozens of minutes to many hours. A> A> Just to be clear, no such thing occurs if I do not run the guest. A> Also, I have an older AMD system (pre-Zen), the problem does not happen A> there. A> A vanilla FreeBSD 12.3 installation that just sits idle also does not A> cause the problem. A> A> Does anyone have an idea what the problem could be? A> What workaround or diagnostics to try? A> Anybody else seen something like this? A> A> Since it's the host that resets it would be hard to capture any traces. I also run bhyve on Ryzen since late 2021 and never had such an issue. But not FreeBSD 12, I run the head. -- Gleb Smirnoff