Re: [Qemu-devel] [PATCH 4/8] rdma: implement new QEMUFileOps hooks

2013-04-12 Thread Michael R. Hines
On 04/12/2013 07:05 AM, Paolo Bonzini wrote: Il 12/04/2013 07:52, mrhi...@linux.vnet.ibm.com ha scritto: +void ram_control_load_hook(QEMUFile *f, uint32_t flags) +{ +int ret = 0; + +if (f->ops->hook_ram_load) { +qemu_fflush(f); +ret = f->ops->hook_ram_load(f, f->opaque, f

Re: [Qemu-devel] [PATCH 4/8] rdma: implement new QEMUFileOps hooks

2013-04-12 Thread Paolo Bonzini
Il 12/04/2013 07:52, mrhi...@linux.vnet.ibm.com ha scritto: > > +void ram_control_load_hook(QEMUFile *f, uint32_t flags) > +{ > +int ret = 0; > + > +if (f->ops->hook_ram_load) { > +qemu_fflush(f); > +ret = f->ops->hook_ram_load(f, f->opaque, flags); > +if (ret < 0)

[Qemu-devel] [PATCH 4/8] rdma: implement new QEMUFileOps hooks

2013-04-11 Thread mrhines
From: "Michael R. Hines" These are the actual definitions of the accessor methods which call out to QEMUFileOps hooks during the RAM iteration faces. These hooks are accessed by arch_init.c, which comes later in the patch series. Signed-off-by: Michael R. Hines --- savevm.c | 81 +++