From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4HFK-0003P5-3A for qemu-devel@nongnu.org; Thu, 05 Jun 2008 11:19:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4HFJ-0003OY-Hg for qemu-devel@nongnu.org; Thu, 05 Jun 2008 11:19:21 -0400 Received: from [199.232.76.173] (port=56427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4HFJ-0003Nm-7d for qemu-devel@nongnu.org; Thu, 05 Jun 2008 11:19:21 -0400 Received: from yx-out-1718.google.com ([74.125.44.154]:31868) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4HFG-00084Z-CI for qemu-devel@nongnu.org; Thu, 05 Jun 2008 11:19:19 -0400 Received: by yx-out-1718.google.com with SMTP id 3so77451yxi.82 for ; Thu, 05 Jun 2008 08:19:17 -0700 (PDT) Message-ID: <484803E7.1080503@codemonkey.ws> Date: Thu, 05 Jun 2008 10:19:03 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 5/5] Add support for UUID query to vmport interface. References: <20080605083536.11678.439.stgit@gleb-debian.qumranet.com.qumranet.com> <20080605083556.11678.35384.stgit@gleb-debian.qumranet.com.qumranet.com> In-Reply-To: <20080605083556.11678.35384.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: > Answer BOCHS BIOS query about UUID. > > Signed-off-by: Gleb Natapov > --- > > hw/vmport.c | 29 +++++++++++++++++++++++++++++ > 1 files changed, 29 insertions(+), 0 deletions(-) > > diff --git a/hw/vmport.c b/hw/vmport.c > index ebfa921..5d32288 100644 > --- a/hw/vmport.c > +++ b/hw/vmport.c > @@ -26,8 +26,16 @@ > #include "pc.h" > #include "sysemu.h" > > +#ifdef CONFIG_UUID > +#include > +extern uuid_t qemu_uuid; > +#else > +static uint8_t qemu_uuid[16]; > +#endif > Just eliminate the #ifdef and always use uint8_t[16]. Regards, Anthony Liguori