aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-08-02 17:02:01 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-09-12 08:46:21 +0200
commit5accc8408f2dac1e00d888e4fe75e6174ba2a940 (patch)
treeedac711fe67c94fe04af6382b633292195663f7e /include/sysemu
parent2d1fe1873a984d1c2c89ffa3d12949cafc718551 (diff)
downloadqemu-5accc8408f2dac1e00d888e4fe75e6174ba2a940.zip
qemu-5accc8408f2dac1e00d888e4fe75e6174ba2a940.tar.gz
qemu-5accc8408f2dac1e00d888e4fe75e6174ba2a940.tar.bz2
scsi: prefer UUID to VM name for the initiator name
The UUID is unique even across multiple hosts, thus it is better than a VM name even if it is less user-friendly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/sysemu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index b1aa059..e2c6f58 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -17,7 +17,9 @@ extern const char *bios_name;
extern const char *qemu_name;
extern uint8_t qemu_uuid[];
int qemu_uuid_parse(const char *str, uint8_t *uuid);
+
#define UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx"
+#define UUID_NONE "00000000-0000-0000-0000-000000000000"
bool runstate_check(RunState state);
void runstate_set(RunState new_state);