[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] Introduce a per-machine option set
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 2/3] Introduce a per-machine option set |
Date: |
Wed, 21 May 2008 01:52:55 +0200 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080226) |
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 <address@hidden>
---
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 2/3] Introduce a per-machine option set,
Jan Kiszka <=