From patchwork Mon Mar 12 09:35:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 146055 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0AE22B6FA8 for ; Mon, 12 Mar 2012 21:11:08 +1100 (EST) Received: from localhost ([::1]:37660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S71fD-0001C4-B5 for incoming@patchwork.ozlabs.org; Mon, 12 Mar 2012 05:35:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S71f3-000177-Pr for qemu-devel@nongnu.org; Mon, 12 Mar 2012 05:35:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S71ez-0007D8-1K for qemu-devel@nongnu.org; Mon, 12 Mar 2012 05:35:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S71ey-0007D1-P1 for qemu-devel@nongnu.org; Mon, 12 Mar 2012 05:35:20 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2C9ZIHe027599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Mar 2012 05:35:18 -0400 Received: from redhat.com (vpn-200-178.tlv.redhat.com [10.35.200.178]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id q2C9ZFW2017355; Mon, 12 Mar 2012 05:35:16 -0400 Date: Mon, 12 Mar 2012 11:35:29 +0200 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <20120312093510.GA32194@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Alex Williamson , mtosatti@redhat.com, Anthony Liguori , gleb@redhat.com Subject: [Qemu-devel] [PATCH] acpi: beginnings of piix acpi interface doc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Before we start tweaking and enhancing hardware, I think it makes sense to document what we currently have, to make sure we stay compatible. This documents the hotplug interface for piix. Stubs for cpu hotplug, PM. Signed-off-by: Michael S. Tsirkin --- docs/acpi.txt | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 docs/acpi.txt diff --git a/docs/acpi.txt b/docs/acpi.txt new file mode 100644 index 0000000..4938d48 --- /dev/null +++ b/docs/acpi.txt @@ -0,0 +1,32 @@ +QEMU exposes the following registers to guests, +intended primarily for use by the ACPI interface. + +PCI Hotplug +---- + +Events use the standard GPE register: +GPE 0xafe0 - an ACPI GPE register + +Hotplug events set GPE bit 1 (mask 0x2) + +The following registers are used for PCI hotplug. +Each register is 32 bit (4 bytes) long, and has little endian format. +Bits 0-31 in each register correspond to slots 0-31 on the root bus, +respectively. + +UP 0xae00 - RO - Bit set by host on device insertion (note:existing implementations + trigger device check event) +DOWN 0xae04 - RO - Bit set by host on user eject request +EJ0 0xae08 - WO - Bit set by guest removes all power to device +RMV 0xae0c - RO - Bit set by host if slot supports hotplug + (can not change while guest is up) + + +Power management +---- +TODO + + +CPU hotplug +---- +TODO