]> git.proxmox.com Git - qemu.git/commitdiff
Add a pc-0.11 machine type and make the pc type an alias
authorMark McLoughlin <markmc@redhat.com>
Wed, 22 Jul 2009 09:02:51 +0000 (10:02 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 29 Jul 2009 16:47:09 +0000 (11:47 -0500)
The pc-0.11 type allows users of qemu-0.11 to use a machine type which
they know will remain compatible when the upgrade to qemu-0.12.

Management tools may choose to canonicalize the 'pc' machine type to
'pc-0.11' so that if the 'pc' alias changes target in future versions
of qemu, the machine type used will remain compatible.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index a50f23d42c31570879fdb9a7cd63c054c16387d6..c55c303bc1626c18085149290747038545e99ed9 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -1512,7 +1512,8 @@ void cmos_set_s3_resume(void)
 }
 
 static QEMUMachine pc_machine = {
-    .name = "pc",
+    .name = "pc-0.11",
+    .alias = "pc",
     .desc = "Standard PC",
     .init = pc_init_pci,
     .max_cpus = 255,