diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-07-22 10:02:50 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-29 11:47:09 -0500 |
commit | 9fc1babd959abeb01001a5a507c515c34209fe84 (patch) | |
tree | e41320f09c47a41e1f39bc4ee8236833a1874de2 /hw | |
parent | 413fb2412d1ff956099e1b1a76ee9a7e41c69e4a (diff) | |
download | qemu-9fc1babd959abeb01001a5a507c515c34209fe84.tar.gz |
Add machine type aliases
Add an 'alias' field to QEMUMachine and display it in the output of
'qemu -M ?' with an '(aliased to foo)' suffix.
Aliases can change targets in newer versions of qemu, so management tools
may choose canonicalize machine types to ensure that if a user chooses an
alias, that the actual machine type used will remain compatible in
future.
This is intended to mimic a symlink to a machine description file.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/boards.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/boards.h b/hw/boards.h index 11acb89fce..d8893413d4 100644 --- a/hw/boards.h +++ b/hw/boards.h @@ -14,6 +14,7 @@ typedef void QEMUMachineInitFunc(ram_addr_t ram_size, typedef struct QEMUMachine { const char *name; + const char *alias; const char *desc; QEMUMachineInitFunc *init; int use_scsi; |