From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXd1n-00032j-0U for qemu-devel@nongnu.org; Mon, 25 Aug 2008 10:26:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXd1m-00031u-6N for qemu-devel@nongnu.org; Mon, 25 Aug 2008 10:26:42 -0400 Received: from [199.232.76.173] (port=44497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXd1l-00031W-To for qemu-devel@nongnu.org; Mon, 25 Aug 2008 10:26:41 -0400 Received: from wr-out-0506.google.com ([64.233.184.234]:51751) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KXd1l-0003Bh-Px for qemu-devel@nongnu.org; Mon, 25 Aug 2008 10:26:41 -0400 Received: by wr-out-0506.google.com with SMTP id c46so1598257wra.18 for ; Mon, 25 Aug 2008 07:26:40 -0700 (PDT) Message-ID: <48B2C0F3.6080101@codemonkey.ws> Date: Mon, 25 Aug 2008 09:25:55 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2 1/6] Use IO port for qemu<->guest BIOS communication. References: <20080825095800.18703.30602.stgit@gleb-debian.qumranet.com.qumranet.com> <20080825095805.18703.63202.stgit@gleb-debian.qumranet.com.qumranet.com> In-Reply-To: <20080825095805.18703.63202.stgit@gleb-debian.qumranet.com.qumranet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Gleb Natapov wrote: > Use PIO to get configuration info between qemu process and guest BIOS. > > Signed-off-by: Gleb Natapov > --- > > hw/pc.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 59 insertions(+), 0 deletions(-) > > diff --git a/hw/pc.c b/hw/pc.c > index 213ead8..8caa48f 100644 > --- a/hw/pc.c > +++ b/hw/pc.c > @@ -44,6 +44,7 @@ > > /* Leave a chunk of memory at the top of RAM for the BIOS ACPI tables. */ > #define ACPI_DATA_SIZE 0x10000 > +#define BIOS_CFG_IOPORT 0x1234 > I don't think this is a very safe IO port to use. Avi suggested that we advertise the IO port that we use as reserved in the ACPI tables. I would have chosen something in the low 400/500 range since Bochs is already using this range for debugging. Regards, Anthony Liguori