From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZryCr-0002ZE-Ur for qemu-devel@nongnu.org; Thu, 29 Oct 2015 21:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZryCn-0005bR-U6 for qemu-devel@nongnu.org; Thu, 29 Oct 2015 21:10:13 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:34276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZryCn-0005bL-NW for qemu-devel@nongnu.org; Thu, 29 Oct 2015 21:10:09 -0400 Received: by wmff134 with SMTP id f134so1195741wmf.1 for ; Thu, 29 Oct 2015 18:10:09 -0700 (PDT) References: <1446128855-26637-1-git-send-email-shannon.zhao@linaro.org> <563262AB.3080207@redhat.com> From: Shannon Zhao Message-ID: <5632C365.5060606@linaro.org> Date: Fri, 30 Oct 2015 09:09:57 +0800 MIME-Version: 1.0 In-Reply-To: <563262AB.3080207@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 0/8] Add system_powerdown support on ARM for ACPI and DT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wei Huang , qemu-devel@nongnu.org, peter.maydell@linaro.org, mst@redhat.com, imammedo@redhat.com Cc: Hangaohuai , peter.huangpeng@huawei.com, zhaoshenglong@huawei.com On 2015/10/30 2:17, Wei Huang wrote: > On 10/29/2015 09:27 AM, Shannon Zhao wrote: >> ACPI SPEC 5.0 defines GPIO-signaled ACPI Events for Hardware-reduced >> platforms(like ARM). It uses GPIO pin to trigger an event to the guest. >> For QEMU, here we add PL061 GPIO controller and use PIN 3 for >> system_powerdown, reserving PIN 0, 1, 2 for PCI hotplug, CPU hotplug and >> memory hotplug. >> >> This patchset adds system_powerdown support on ARM through both ACPI and >> DT ways. It adds a GPIO controller(here is PL061) in machine virt and >> uses GPIO-singled event for ACPI while gpio-keys for DT. It can be >> fetched from [1] and has been tested for the guests starting by ACPI or >> DT while guests use systemd or acpid. >> >> a) ACPI way. Since Graeme send a patchset to make ACPI on ARM64 support >> amba device[2], it could use PL061 directly without modification to its >> kernel driver code. In addition, we should use ACPI to start VM, >> referring to below script. QEMU_EFI.fd can be fetched from [3]. > > Hi Shannon, > > Thanks for re-sending it. This is a desired feature because we don't > want to rely on tricks (such as guest-agent) for external VM power > management. I have tested V1 recently by back-porting to my in-house > kernel; it worked well. > > I will help review this new version. > Thanks for your help:) -- Shannon