From owner-freebsd-current@freebsd.org Sun Jun 21 06:37:46 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 963E5343476 for ; Sun, 21 Jun 2020 06:37:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qNBy3Vx1z4RrX for ; Sun, 21 Jun 2020 06:37:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 6E43025709 for ; Sun, 21 Jun 2020 06:37:46 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-pj1-f51.google.com with SMTP id m2so6833642pjv.2 for ; Sat, 20 Jun 2020 23:37:46 -0700 (PDT) X-Gm-Message-State: AOAM533p5UiYg+MOCMjHECu7yCCj9F04dOPeG/289j9MOY99qFC5swy/ 6FsWuub8wAYgssMbHYA2uus5Xr7EsKGI2qyLEQk= X-Google-Smtp-Source: ABdhPJxmNYR12aGVjIsm9B5dTYImbxKYjqhwoNCeMY4NDjcHnl0jnYNBnRU41yt1Aggem7fjeQQPcgk9JBT8/8twzEQ= X-Received: by 2002:a17:90a:6886:: with SMTP id a6mr12909329pjd.170.1592721465366; Sat, 20 Jun 2020 23:37:45 -0700 (PDT) MIME-Version: 1.0 References: <20200619.052348.232031363704679601.yasu@utahime.org> In-Reply-To: <20200619.052348.232031363704679601.yasu@utahime.org> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Sun, 21 Jun 2020 08:37:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: `shutdown -p now` fails to power off with VirtualBox UEFI boot To: Yasuhiro KIMURA Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 06:37:46 -0000 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. Regards, Olivier