Skip to contentSkip to conversation

Set apic instance number for savevm

PATCH In review Avi Kivity 2 participants 2 messages Aug 13, 2007 – Aug 19, 2007 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 Set apic instance number for savevm

This allows save/restore (and live migration on kvm) of smp guests.

Index: hw/apic.c
===================================================================
RCS file: /sources/qemu/qemu/hw/apic.c,v
retrieving revision 1.13

apic.c +1 -1
diff -u -r1.13 apic.c
@@ -832,7 +832,7 @@
     }
     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;
#1 lore raw
Quoted 12 lines · Avi Kivity

This allows save/restore (and live migration on kvm) of smp guests.

Index: hw/apic.c
===================================================================
RCS file: /sources/qemu/qemu/hw/apic.c,v
retrieving revision 1.13
diff -u -r1.13 apic.c

apic.c line 838

Quoted 8 lines
apic.c +1 -1
@@ -832,7 +832,7 @@
     }
     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;

Fabrice or Thiemo, can you take a look at this patch?

Signature · 1 line
error compiling committee.c: too many arguments to function