Re: [Qemu-devel] [PATCH 03/12] KVM/MIPS: Add save/restore state APIs for saving/restoring KVM guests.

2013-03-06 Thread Sanjay Lal
On Mar 2, 2013, at 7:27 AM, Peter Maydell wrote: > 2013/3/2 Sanjay Lal : >> +static void gt64xxx_save(QEMUFile *f, void *opaque) >> +{ >> +GT64120State *s = opaque; >> + >> +/* CPU Configuration */ >> +qemu_put_be32s(f, &s->regs[GT_CPU]); >> +qemu_put_be32s(f, &s->regs[GT_MULTI]);

Re: [Qemu-devel] [PATCH 03/12] KVM/MIPS: Add save/restore state APIs for saving/restoring KVM guests.

2013-03-02 Thread Peter Maydell
2013/3/2 Sanjay Lal : > +static void gt64xxx_save(QEMUFile *f, void *opaque) > +{ > +GT64120State *s = opaque; > + > +/* CPU Configuration */ > +qemu_put_be32s(f, &s->regs[GT_CPU]); > +qemu_put_be32s(f, &s->regs[GT_MULTI]); Definitely no new save/load functions like this in new co

[Qemu-devel] [PATCH 03/12] KVM/MIPS: Add save/restore state APIs for saving/restoring KVM guests.

2013-03-02 Thread Sanjay Lal
--- hw/gt64xxx.c | 317 +++ 1 file changed, 317 insertions(+) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index 977a2c5..3583ca8 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -31,6 +31,8 @@ //#define DEBUG +#define GT64XXX_VM_VERSION