From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jybdo-0003tU-P7 for qemu-devel@nongnu.org; Tue, 20 May 2008 19:53:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jybdl-0003rz-7P for qemu-devel@nongnu.org; Tue, 20 May 2008 19:53:12 -0400 Received: from [199.232.76.173] (port=37534 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jybdk-0003rt-Pc for qemu-devel@nongnu.org; Tue, 20 May 2008 19:53:08 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:43827) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jybdd-0004wG-Th for qemu-devel@nongnu.org; Tue, 20 May 2008 19:53:08 -0400 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 56423DBAE3AD for ; Wed, 21 May 2008 01:52:56 +0200 (CEST) Received: from [88.64.29.161] (helo=[192.168.1.198]) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1JybdY-0007W0-00 for qemu-devel@nongnu.org; Wed, 21 May 2008 01:52:56 +0200 Message-ID: <48336457.6030504@web.de> Date: Wed, 21 May 2008 01:52:55 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: jan.kiszka@web.de Subject: [Qemu-devel] [PATCH 2/3] Introduce a per-machine option set 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 Simple patch to enable machine implementers to provide a machine-specific option set. It is automatically registered when the machine is registered. Signed-off-by: Jan Kiszka --- hw/boards.h | 1 + vl.c | 2 ++ 2 files changed, 3 insertions(+) Index: b/hw/boards.h =================================================================== --- a/hw/boards.h +++ b/hw/boards.h @@ -16,6 +16,7 @@ typedef struct QEMUMachine { QEMUMachineInitFunc *init; #define RAMSIZE_FIXED (1 << 0) ram_addr_t ram_require; + QEMUOptionSet *option_set; struct QEMUMachine *next; } QEMUMachine; Index: b/vl.c =================================================================== --- a/vl.c +++ b/vl.c @@ -6748,6 +6748,8 @@ int qemu_register_machine(QEMUMachine *m pm = &(*pm)->next; m->next = NULL; *pm = m; + if (m->option_set) + qemu_register_option_set(m->option_set); return 0; }