qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/3] Introduce a per-machine option set
Date: Wed, 21 May 2008 01:52:55 +0200	[thread overview]
Message-ID: <48336457.6030504@web.de> (raw)

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;
 }
 

                 reply	other threads:[~2008-05-20 23:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48336457.6030504@web.de \
    --to=jan.kiszka@web.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).