On (Tue) 20 Nov 2012 [19:44:55], Anthony Liguori wrote:
> Amit Shah <amit.s...@redhat.com> 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 <amit.s...@redhat.com>
> 
> 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