[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [patch 07/18] qemu: move drives_opt for external use
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [patch 07/18] qemu: move drives_opt for external use |
Date: |
Wed, 04 Feb 2009 11:33:10 -0200 |
User-agent: |
quilt/0.46-1 |
Device hotplug will use that structure from a separate
file.
Signed-off-by: Marcelo Tosatti <address@hidden>
Index: trunk/sysemu.h
===================================================================
--- trunk.orig/sysemu.h
+++ trunk/sysemu.h
@@ -154,6 +154,15 @@ extern void drive_remove(int index);
extern const char *drive_get_serial(BlockDriverState *bdrv);
extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv);
+struct drive_opt {
+ const char *file;
+ char opt[1024];
+ int used;
+};
+
+extern struct drive_opt drives_opt[MAX_DRIVES];
+extern int nb_drives_opt;
+
/* serial ports */
#define MAX_SERIAL_PORTS 4
Index: trunk/vl.c
===================================================================
--- trunk.orig/vl.c
+++ trunk/vl.c
@@ -242,12 +242,8 @@ int alt_grab = 0;
unsigned int nb_prom_envs = 0;
const char *prom_envs[MAX_PROM_ENVS];
#endif
-static int nb_drives_opt;
-static struct drive_opt {
- const char *file;
- char opt[1024];
- int used;
-} drives_opt[MAX_DRIVES];
+int nb_drives_opt;
+struct drive_opt drives_opt[MAX_DRIVES];
static CPUState *cur_cpu;
static CPUState *next_cpu;
--
- [Qemu-devel] [patch 00/18] acpi pci hotplug support, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 02/18] qemu: return PCIDevice on net device init and record devfn, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 03/18] qemu: dynamic drive/drive_opt index allocation, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 04/18] qemu: dynamic nic info index allocation, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 05/18] qemu: drive removal support, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 06/18] qemu: record devfn on block driver instance, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 07/18] qemu: move drives_opt for external use,
Marcelo Tosatti <=
- [Qemu-devel] [patch 09/18] qemu: add net_client_uninit / qemu_find_vlan_client, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 08/18] qemu: net/drive add/remove tweaks, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 10/18] qemu: add cpu_unregister_io_memory and make io mem table index dynamic, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 11/18] qemu: add qemu_free_irqs, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 12/18] qemu: add pci_unregister_device, Marcelo Tosatti, 2009/02/04
- [Qemu-devel] [patch 13/18] qemu: warn if PCI region is not power of two, Marcelo Tosatti, 2009/02/04