[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] virtio-serial: Fix endianness bug in the config
From: |
David Gibson |
Subject: |
Re: [Qemu-devel] [PATCH] virtio-serial: Fix endianness bug in the config space |
Date: |
Thu, 21 Apr 2011 00:51:29 +1000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Wed, Apr 20, 2011 at 06:06:45PM +0530, Amit Shah wrote:
> On (Tue) 19 Apr 2011 [12:03:46], David Gibson wrote:
> > From: Alexey Kardashevskiy <address@hidden>
> >
> > The virtio serial specification requres that the values in the config
> > space are encoded in native endian of the guest.
> >
> > The qemu virtio-serial code did not do conversion to the guest endian
> > format what caused problems when host and guest use different format.
> >
> > This patch corrects the qemu side, correctly doing host-native <->
> > guest-native conversions when accessing the config space. This won't
> > break any setups that aren't already broken, and fixes the case
> > of different host and guest endianness.
> >
> > Signed-off-by: Alexey Kardashevskiy <address@hidden>
>
> Thanks; please put your sign-off as well.
Oops.
Signed-off-by: David Gibson <address@hidden>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson