[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] virtio-pci: fix host notifiers on bi-endian arc
From: |
Greg Kurz |
Subject: |
Re: [Qemu-devel] [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
- [Qemu-devel] [PATCH] virtio-pci: fix host notifiers on bi-endian architectures, Greg Kurz, 2015/03/11
- Re: [Qemu-devel] [PATCH] virtio-pci: fix host notifiers on bi-endian architectures, Michael S. Tsirkin, 2015/03/11
- Re: [Qemu-devel] [PATCH] virtio-pci: fix host notifiers on bi-endian architectures, Michael S. Tsirkin, 2015/03/12
- Re: [Qemu-devel] [PATCH] virtio-pci: fix host notifiers on bi-endian architectures, Paolo Bonzini, 2015/03/12
- Re: [Qemu-devel] [PATCH] virtio-pci: fix host notifiers on bi-endian architectures,
Greg Kurz <=
- [Qemu-devel] [PATCH 1/2] memory: make adjust_endianness() generic, Greg Kurz, 2015/03/13
- [Qemu-devel] [PATCH 2/2] memory: fix the eventfd data endianness according to the host, Greg Kurz, 2015/03/13
- Re: [Qemu-devel] [PATCH 2/2] memory: fix the eventfd data endianness according to the host, Paolo Bonzini, 2015/03/13
- Re: [Qemu-devel] [PATCH 2/2] memory: fix the eventfd data endianness according to the host, Greg Kurz, 2015/03/13
- Re: [Qemu-devel] [PATCH 2/2] memory: fix the eventfd data endianness according to the host, Paolo Bonzini, 2015/03/13
- Re: [Qemu-devel] [PATCH 2/2] memory: fix the eventfd data endianness according to the host, Michael S. Tsirkin, 2015/03/13
- Re: [Qemu-devel] [PATCH 2/2] memory: fix the eventfd data endianness according to the host, Michael S. Tsirkin, 2015/03/13