qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Avoid CPU endian memory accesses in devices


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] Avoid CPU endian memory accesses in devices
Date: Fri, 15 Jul 2011 23:02:07 +0300

On Fri, Jul 15, 2011 at 12:56 AM, Alexander Graf <address@hidden> wrote:
>
>
>
>
> Am 14.07.2011 um 21:34 schrieb Blue Swirl <address@hidden>:
>
>> Don't compile virtio.c in hwlib, it depends on memory accesses
>> performed in CPU endianness.
>>
>> Make loads and stores in CPU endianness unavailable to devices
>> and poison them to avoid further bugs.
>
> Very nice :). Couldn't test execute it, but:
>
> Acked-by: Alexander Graf <address@hidden>

By the way, another way would be to change virtio to always use LE
accesses. This would need changes to KVM on PPC and s390x. Would that
be possible?



reply via email to

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