qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Set apic instance number for savevm
@ 2007-08-13 15:57 Avi Kivity
  2007-08-19 11:12 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Avi Kivity @ 2007-08-13 15:57 UTC (permalink / raw)
  To: qemu-devel; +Cc: kvm-devel

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
--- hw/apic.c	3 Apr 2007 16:38:34 -0000	1.13
+++ hw/apic.c	13 Aug 2007 15:54:50 -0000
@@ -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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Set apic instance number for savevm
  2007-08-13 15:57 [Qemu-devel] [PATCH] Set apic instance number for savevm Avi Kivity
@ 2007-08-19 11:12 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-08-19 11:12 UTC (permalink / raw)
  To: Fabrice Bellard, ths; +Cc: kvm-devel, qemu-devel

Avi Kivity wrote:
> 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
> --- hw/apic.c	3 Apr 2007 16:38:34 -0000	1.13
> +++ hw/apic.c	13 Aug 2007 15:54:50 -0000
> @@ -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?

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-19 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-13 15:57 [Qemu-devel] [PATCH] Set apic instance number for savevm Avi Kivity
2007-08-19 11:12 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).