qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH] virtio-pci: fix host notifiers on bi-endian archi


From: Greg Kurz
Subject: Re: [Qemu-ppc] [PATCH] virtio-pci: fix host notifiers on bi-endian architectures
Date: Fri, 13 Mar 2015 09:03:12 +0100

On Thu, 12 Mar 2015 17:25:15 +0100
Paolo Bonzini <address@hidden> wrote:
> 
> 
> On 12/03/2015 08:08, Michael S. Tsirkin wrote:
> > But common header format is simple, it's always LE.
> > It does not depend on target.
> > To me this looks like a bug in memory_region_add_eventfd,
> > it should do the right thing depending on device
> > endian-ness.
> 
> I agree it seems to be a QEMU bug.
> 
> Paolo
> 

Yes you're right ! QEMU swaps the virtqueue id (adjust_endianness) according
to TARGET_WORDS, like it was coming from the guest but in fact it comes from
the host. The id should be fixed according to HOST_WORDS instead. Of course
this went unnoticed until TARGET_WORDS_BIGENDIAN != HOST_WORDS_BIGENDIAN,
which we have now with ppc64le hosts.

Patches to follow.

Thanks.

--
Greg




reply via email to

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