All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 2/3] Introduce a per-machine option set
@ 2008-05-20 23:52 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2008-05-20 23:52 UTC (permalink / raw)
  To: qemu-devel

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 <jan.kiszka@web.de>
---
 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;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-20 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 23:52 [Qemu-devel] [PATCH 2/3] Introduce a per-machine option set Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.