aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-12-03 16:49:46 +0000
committerroot <root@ceth6.(none)>2014-12-22 14:39:20 +0800
commit9816833d3b8ec9adfb63b6a53f1b56f5304f4c40 (patch)
treea5026e89d84919df7daadc371b2694e105dd2845 /include/sysemu
parent328b3b6c44c17d94df115ed1851f54a0bd59a471 (diff)
downloadqemu-9816833d3b8ec9adfb63b6a53f1b56f5304f4c40.zip
qemu-9816833d3b8ec9adfb63b6a53f1b56f5304f4c40.tar.gz
qemu-9816833d3b8ec9adfb63b6a53f1b56f5304f4c40.tar.bz2
bootdevice: move code about bootorder from vl.c to bootdevice.c
First, we can downsize vl.c, make it simpler by little and little. Second, I can maintain those code and make some improvement. Cc: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/sysemu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 9fea3bc..84798ef 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -216,6 +216,14 @@ void del_boot_device_path(DeviceState *dev, const char *suffix);
void device_add_bootindex_property(Object *obj, int32_t *bootindex,
const char *name, const char *suffix,
DeviceState *dev, Error **errp);
+void restore_boot_order(void *opaque);
+void validate_bootdevices(const char *devices);
+
+/* handler to set the boot_device order for a specific type of QEMUMachine */
+/* return 0 if success */
+typedef int QEMUBootSetHandler(void *opaque, const char *boot_order);
+void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
+int qemu_boot_set(const char *boot_order);
QemuOpts *qemu_get_machine_opts(void);