From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZ9DD-0007ZR-4B for qemu-devel@nongnu.org; Fri, 29 Aug 2008 15:00:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZ9DB-0007Xa-P0 for qemu-devel@nongnu.org; Fri, 29 Aug 2008 15:00:46 -0400 Received: from [199.232.76.173] (port=36866 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ9DB-0007XP-GB for qemu-devel@nongnu.org; Fri, 29 Aug 2008 15:00:45 -0400 Received: from il.qumranet.com ([212.179.150.194]:11522) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZ9DB-0002gn-70 for qemu-devel@nongnu.org; Fri, 29 Aug 2008 15:00:45 -0400 Received: from gleb-debian.qumranet.com (gleb-debian.qumranet.com.qumranet.com [172.16.15.143]) by il.qumranet.com (Postfix) with ESMTP id CFA81250EDA for ; Fri, 29 Aug 2008 22:00:41 +0300 (IDT) Date: Fri, 29 Aug 2008 22:00:41 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] [PATCH v3 1/6] Use IO port for qemu<->guest BIOS communication. Message-ID: <20080829190041.GA18301@minantech.com> References: <20080828165232.22851.77678.stgit@gleb-debian.qumranet.com.qumranet.com> <20080828165237.22851.1532.stgit@gleb-debian.qumranet.com.qumranet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Thu, Aug 28, 2008 at 09:04:11PM +0300, Blue Swirl wrote: > On 8/28/08, Gleb Natapov wrote: > > + fw_cfg_add(fw_cfg, FW_CFG_ID, (uint8_t *)&bios_cfg_id, > > + sizeof(bios_cfg_id)); > > On second thought, this is in host byte order, which is not a good idea. > Is there some function to convert from host byte order to target byte order? -- Gleb.