]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Set apic instance number for savevm, by Ari Kivity.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Aug 2007 17:33:08 +0000 (17:33 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Aug 2007 17:33:08 +0000 (17:33 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3144 c046a42c-6fe2-441c-8c8c-71466251a162

hw/apic.c

index f964360c86b321f692e48900860590387b40554e..d503d45f2be39e232dbf43f5c3eb83302d28fae0 100644 (file)
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -832,7 +832,7 @@ int apic_init(CPUState *env)
     }
     s->timer = qemu_new_timer(vm_clock, apic_timer, s);
 
-    register_savevm("apic", 0, 2, apic_save, apic_load, s);
+    register_savevm("apic", s->id, 2, apic_save, apic_load, s);
     qemu_register_reset(apic_reset, s);
     
     local_apics[s->id] = s;