qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/4] virtio-rng: use virtqueue_get_avail_bytes,


From: Amit Shah
Subject: Re: [Qemu-devel] [PATCH 1/4] virtio-rng: use virtqueue_get_avail_bytes, fix migration
Date: Wed, 21 Nov 2012 11:23:20 +0530

On (Tue) 20 Nov 2012 [19:44:55], Anthony Liguori wrote:
> Amit Shah <address@hidden> writes:
> 
> > Popping an elem from the vq just to find out its length causes problems
> > with save/load later on.  Use the new virtqueue_get_avail_bytes()
> > function instead, saves us the complexity in the migration code, as well
> > as makes the migration endian-safe.
> >
> > Signed-off-by: Amit Shah <address@hidden>
> 
> To be clear, migration is already endian safe but this is definitely a
> very nice cleanup.

The in_addr and out_addr fields have pointers -- so endian- plus
word-length safety isn't guaranteed if migrating across architectures.

                Amit



reply via email to

[Prev in Thread] Current Thread [Next in Thread]