summaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-07 17:32:33 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-07 17:32:33 +0000
commit08d8f8418d46798d3738e1ab4c350a7cb209bea0 (patch)
treed8ade34df31c450b8d597a396f29269a749deb45 /sysemu.h
parent2f17248fec61ef6d7dd27a583817a4df70bf9e99 (diff)
downloadqemu-08d8f8418d46798d3738e1ab4c350a7cb209bea0.tar.gz
qemu-08d8f8418d46798d3738e1ab4c350a7cb209bea0.tar.bz2
qemu-08d8f8418d46798d3738e1ab4c350a7cb209bea0.zip
add "serial" parameter to -drive flag (Gleb Natapov)
Windows calculates HW "uniqueness" based on a hard drive serial number among other things. The patch allows to specify drive serial number from a command line. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6214 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index 6e24e8a95e..b37d3015c0 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -131,6 +131,7 @@ typedef struct DriveInfo {
BlockInterfaceType type;
int bus;
int unit;
+ char serial[21];
} DriveInfo;
#define MAX_IDE_DEVS 2
@@ -142,6 +143,7 @@ extern DriveInfo drives_table[MAX_DRIVES+1];
extern int drive_get_index(BlockInterfaceType type, int bus, int unit);
extern int drive_get_max_bus(BlockInterfaceType type);
+extern const char *drive_get_serial(BlockDriverState *bdrv);
/* serial ports */