[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio |
Date: |
Mon, 14 Apr 2014 15:41:53 +0300 |
On Mon, Apr 14, 2014 at 02:38:14PM +0200, Alexander Graf wrote:
>
> On 14.04.14 14:34, Michael S. Tsirkin wrote:
> >On Mon, Apr 14, 2014 at 02:31:06PM +0200, Alexander Graf wrote:
> >>On 14.04.14 14:28, Michael S. Tsirkin wrote:
> >>>On Mon, Apr 14, 2014 at 02:22:36PM +0200, Alexander Graf wrote:
> >>>>Could we try to poison any non-virtio, non-endian-specific memory
> >>>>accessors when this file is included? That way we don't fall into
> >>>>pitfalls where we end up running stl_p in a tiny corner case
> >>>>somewhere still.
> >>>>
> >>>>
> >>>>Alex
> >>>Not sure about all users but it looks like the only file including this
> >>>is virtio.c right?
> >>>I'm guessing that's safe there.
> >>any virtio device implementations, since they need to communicate
> >>with the guest :).
> >In that case how can we poison regular memory accesses?
> >Devices normally do more than virtio related things.
>
> Device should never do anything based on the guest endianness
> (because they don't know), so stx_p and ldx_p should always be
> poisoned.
>
>
> Alex
Makes sense.
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio, Alexander Graf, 2014/04/14
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio, Greg Kurz, 2014/04/14
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio, Alexander Graf, 2014/04/14
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio, Greg Kurz, 2014/04/14
Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio, Alexander Graf, 2014/04/14
[Qemu-devel] [PATCH v7 2/8] virtio: allow byte swapping for vring and config access, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 3/8] virtio-net: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 4/8] virtio-balloon: use virtio wrappers to access page frame numbers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 5/8] virtio-blk: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 6/8] virtio-scsi: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 7/8] virtio-serial-bus: use virtio wrappers to access headers, Greg Kurz, 2014/04/14