From owner-freebsd-current@freebsd.org Mon Jun 22 07:46:15 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 65C9C34353A for ; Mon, 22 Jun 2020 07:46:15 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (gate.utahime.jp [183.180.29.210]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49r1gV1jfXz4KG4 for ; Mon, 22 Jun 2020 07:46:13 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (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) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id AA8AEA77 for ; Mon, 22 Jun 2020 16:46:09 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1592811969; bh=b3UOfNOOwSveVDJEIhdtkVAUsGDsUppWaJkCm2CdPyc=; h=Date:To:Subject:From:In-Reply-To:References; b=LbX9VNd3ZvZXWZWrzuclkm1Z8+nybkEM8SVL/XX9FJYi43SoXIGS7nkclbFy53hBa mXbgyQpd1ygzwnpZOxMYvoXDfsETIlso+ShRjOtKNJrOrbhoGOp91VZ4RzV9qI7eKk K6nS9r74UeJJoHsVDTDom8c8R8PWZIgXh5JTNadSMmVMugNs4HAl7nDawZO6IpoyMa FJufvSftALxj6BC1rpzJpmucoIiP+jNogC6aPfNF22ZaUhL14Mg8Y5OSDn7bGoAkl1 y1vr1qMskoXZSUcJMMPiZckWdNaj72tGCdVP11cwusW24YcSvh9ffUOFwZ771GLYGl 7l8aewBO09n4A== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 86A9C4AA81; Mon, 22 Jun 2020 16:46:08 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at eastasia.home.utahime.org Date: Mon, 22 Jun 2020 16:45:23 +0900 (JST) Message-Id: <20200622.164523.492970231904065687.yasu@utahime.org> To: freebsd-current@freebsd.org Subject: Re: `shutdown -p now` fails to power off with VirtualBox UEFI boot From: Yasuhiro KIMURA In-Reply-To: <20200619.052348.232031363704679601.yasu@utahime.org> References: <20200619.052348.232031363704679601.yasu@utahime.org> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49r1gV1jfXz4KG4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=LbX9VNd3; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [-1.66 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; NEURAL_HAM_MEDIUM(-1.02)[-1.022]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.03)[-1.033]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[utahime.org]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; DKIM_TRACE(0.00)[utahime.org:+]; NEURAL_HAM_SHORT(-0.61)[-0.607]; MID_CONTAINS_FROM(1.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 07:46:15 -0000 From: Yasuhiro KIMURA Subject: `shutdown -p now` fails to power off with VirtualBox UEFI boot Date: Fri, 19 Jun 2020 05:23:48 +0900 (JST) > I have VirtualBox VM running 13-CURRENT. In order to switch from > legacy BIOS to UEFI I reinstalled OS by using > FreeBSD-13.0-CURRENT-amd64-20200611-r362037-disc1.iso. After that > `shutdow -p now` (or select 'ACPI shutdown' in VM menu) fails to power > off. Shutdown itself completes successfully. But power off never > happens and CPU usage keeps high until either closing or resetting VM. > > I reinstalled OS by using > FreeBSD-13.0-CURRENT-amd64-20200618-r362292-disc1.iso but the problem > still happens. If I switch back to legacy BIOS then the problem > disappears. And it doesn't happen with either 11.4-RELEASE and > 12.1-RELEASE. I tried bisect and found this problem happens with r342108 and after. Commit message of r342108 says as following. yasu@rolling-vm-freebsd5[1012]% LANG=C svn log -c 342108 ------------------------------------------------------------------------ r342108 | cem | 2018-12-15 14:46:04 +0900 (Sat, 15 Dec 2018) | 7 lines efirt: When present, attempt to use EFI runtime services to shutdown PR: maybe related to 233998 (inconclusive at this time) Submitted by: byuu (previous version) Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D18506 ------------------------------------------------------------------------ yasu@rolling-vm-freebsd5[1013]% Judging from it, I think it's very likely that this commit caused the problem. Then is there anything I can do for further investigation? --- Yasuhiro KIMURA