From owner-freebsd-current@freebsd.org Sun Jun 21 10:41:23 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 648AC349E26 for ; Sun, 21 Jun 2020 10:41:23 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49qTc259Wmz3V0G; Sun, 21 Jun 2020 10:41:22 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A607D5C00D1; Sun, 21 Jun 2020 06:34:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 21 Jun 2020 06:34:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.dev; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=a epHQd2+xBWgo8sbxfH/bg3uMWFkZuvXZjEs+oAuRzM=; b=OGwiVbLbpgMfQBAp+ AodXzZv1PXE1++TYNJ+tsWbrtA9kPQbWkVCgI8eluWiottRcNaMKREF0a6/7qBNt 8Asrd8ydeJw+uzpACRfazIFc11k9l9XX8dgfgTMJebFAwI/sVwW6S+HmyxGqeFxS LYyclLUwbTylKINB6lv6uAbmWOWY4kDxD3n9kJ+5FO97PGQKmjwAJDuS/xHTHhWT two9ZtSWzW3rixCx/bh+gCFCSNHUd/VKc2JBuJ5mx1Nf1Zqd2+fwdY/G92U9vioG fYLefo9lXINhdw4IECjU01F/pYASG5SFmhLr7BgHD2dRkejSuqnOOnYpdqAm5R/u Imc2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=aepHQd2+xBWgo8sbxfH/bg3uMWFkZuvXZjEs+oAuR zM=; b=oqtNMPfWOyiYUEJJzooFLc+L9WmXsUHk9Nq3AEKNJo1OFUK38QKsEUkuF 9/fX3Urwk9LffIQrhfuDaIUHjMZrLrEJVyHV/dkf72ICivLLpUP1IA7aKt1uzIMt D7H7KObsgi21sqXXhX/9GlmooPayhX0Ge/auZ2iomn5ZJq2j6dXzBt28K2BjTByB DVt1ljYcyxjWWNLK/y3/oZCckhvKc0ber3hXUT/B2CTIgtZ9mf23xy+UhCfCrwb1 JwVM8lHWh89v3fNyu2EzWbKoa7pmvwQI5VX/TTG4M30ul/2nFWqFqGnKonpElB4M zhe2xB/0aWXAn91ROVa/pgo5eCqDg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudektddgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomhepjghurhhi ucfrrghnkhhovhcuoeihuhhrihhpvheshihurhhiphhvrdguvghvqeenucggtffrrghtth gvrhhnpeduueffgedthefftdfffeekhffgleeiieetgffhueegleefudffgedtueefkefg vdenucfkphepledurddvgedtrdduvdegrddufeejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhephihurhhiphhvseihuhhrihhpvhdruggvvh X-ME-Proxy: Received: from [192.168.1.6] (unknown [91.240.124.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 7115E3066D81; Sun, 21 Jun 2020 06:34:43 -0400 (EDT) Subject: Re: `shutdown -p now` fails to power off with VirtualBox UEFI boot To: =?UTF-8?Q?Olivier_Cochard-Labb=c3=a9?= , Yasuhiro KIMURA Cc: freebsd-current References: <20200619.052348.232031363704679601.yasu@utahime.org> From: Yuri Pankov Message-ID: <0a52c783-d3b2-837c-047c-e6c3cf354cd2@yuripv.dev> Date: Sun, 21 Jun 2020 13:34:41 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 49qTc259Wmz3V0G X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.dev header.s=fm1 header.b=OGwiVbLb; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=oqtNMPfW; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.dev designates 66.111.4.25 as permitted sender) smtp.mailfrom=yuripv@yuripv.dev X-Spamd-Result: default: False [4.92 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(0.00)[yuripv.dev:s=fm1,messagingengine.com:s=fm3]; NEURAL_HAM_MEDIUM(-0.35)[-0.346]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(0.00)[+ip4:66.111.4.25:c]; RECEIVED_SPAMHAUS_XBL(5.00)[91.240.124.137:received]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[yuripv.dev]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.25:from]; BAD_REP_POLICIES(0.10)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yuripv.dev:+,messagingengine.com:+]; NEURAL_SPAM_LONG(0.68)[0.676]; NEURAL_HAM_SHORT(-0.31)[-0.310]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; GREYLIST(0.00)[pass,body]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.25:from] 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: Sun, 21 Jun 2020 10:41:23 -0000 Olivier Cochard-Labbé wrote: > On Thu, Jun 18, 2020 at 10:26 PM Yasuhiro KIMURA wrote: > >> 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. >> >> >> Hi, > > Same problem using FreeBSD current UEFI guests with bhyve, so it should > happen in any kind of hypervisor. > It is an old regression (in the sense of -current, so older than 6 months). > My idea was to generate very light UEFI VM images (because the snapshot VM > images are BIOS based) and scripting a bisector tool, but I never took the > time to do it. FWIW, shutdown works for me in VMware Workstation (Windows) and ESXi VMs, UEFI boot.