On Fri, 15 Jan 2016 13:41:51 +0100 Paolo Bonzini <pbonz...@redhat.com> wrote:
> Move allocation to virtio functions also when loading/saving a > VirtQueueElement. This will also let the load/save functions > keep backwards compatibility when the VirtQueueElement layout > is changed. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > hw/block/virtio-blk.c | 10 +++------- > hw/char/virtio-serial-bus.c | 10 +++------- > hw/scsi/virtio-scsi.c | 7 ++----- > hw/virtio/virtio.c | 13 +++++++++++++ > include/hw/virtio/virtio.h | 2 ++ > 5 files changed, 23 insertions(+), 19 deletions(-) Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com>