From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgOIF-0002uq-HM for qemu-devel@nongnu.org; Thu, 18 Sep 2008 14:31:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgOIE-0002uJ-KY for qemu-devel@nongnu.org; Thu, 18 Sep 2008 14:31:54 -0400 Received: from [199.232.76.173] (port=45568 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgOIE-0002u6-7l for qemu-devel@nongnu.org; Thu, 18 Sep 2008 14:31:54 -0400 Received: from savannah.gnu.org ([199.232.41.3]:41527 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KgOID-0004fo-U7 for qemu-devel@nongnu.org; Thu, 18 Sep 2008 14:31:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KgOID-0001jW-4c for qemu-devel@nongnu.org; Thu, 18 Sep 2008 18:31:53 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KgOIC-0001jP-PH for qemu-devel@nongnu.org; Thu, 18 Sep 2008 18:31:52 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Thu, 18 Sep 2008 18:31:52 +0000 Subject: [Qemu-devel] [5259] Add UUID to firmware configuration info (Gleb Natapov) 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 Revision: 5259 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5259 Author: blueswir1 Date: 2008-09-18 18:31:52 +0000 (Thu, 18 Sep 2008) Log Message: ----------- Add UUID to firmware configuration info (Gleb Natapov) Modified Paths: -------------- trunk/hw/fw_cfg.c trunk/hw/fw_cfg.h Modified: trunk/hw/fw_cfg.c =================================================================== --- trunk/hw/fw_cfg.c 2008-09-18 18:30:20 UTC (rev 5258) +++ trunk/hw/fw_cfg.c 2008-09-18 18:31:52 UTC (rev 5259) @@ -22,6 +22,7 @@ * THE SOFTWARE. */ #include "hw.h" +#include "sysemu.h" #include "isa.h" #include "fw_cfg.h" @@ -281,6 +282,7 @@ cpu_register_physical_memory(data_addr, FW_CFG_SIZE, io_data_memory); } fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (uint8_t *)"QEMU", 4); + fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16); register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s); qemu_register_reset(fw_cfg_reset, s); fw_cfg_reset(s); Modified: trunk/hw/fw_cfg.h =================================================================== --- trunk/hw/fw_cfg.h 2008-09-18 18:30:20 UTC (rev 5258) +++ trunk/hw/fw_cfg.h 2008-09-18 18:31:52 UTC (rev 5259) @@ -3,6 +3,7 @@ #define FW_CFG_SIGNATURE 0x00 #define FW_CFG_ID 0x01 +#define FW_CFG_UUID 0x02 #define FW_CFG_MAX_ENTRY 0x10 #define FW_CFG_WRITE_CHANNEL 0x4000