From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzM3v-00066c-SK for qemu-devel@nongnu.org; Thu, 09 Aug 2012 02:17:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzM3s-0004Xg-6b for qemu-devel@nongnu.org; Thu, 09 Aug 2012 02:17:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzM3r-0004Xc-V3 for qemu-devel@nongnu.org; Thu, 09 Aug 2012 02:17:36 -0400 Message-ID: <502355FA.1010708@redhat.com> Date: Thu, 09 Aug 2012 08:17:30 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1343629462.21647.32.camel@pasglop> <50165D0A.6060608@redhat.com> <1343647217.21647.40.camel@pasglop> <50166F2A.1040507@redhat.com> <1343649267.21647.44.camel@pasglop> <20120730161954.GM29361@garlic.redhat.com> <50194E79.5090409@suse.de> <8739465sea.fsf@codemonkey.ws> <20120803064532.GR29361@garlic.redhat.com> <87boism6sv.fsf@codemonkey.ws> <20120807070055.GA25376@garlic.redhat.com> <5020CB4A.10501@redhat.com> <50212125.6010209@redhat.com> <502204CE.3000303@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Cirrus bugs vs endian: how two bugs cancel each other out List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Erlon Cruz Cc: Avi Kivity , Alon Levy , =?ISO-8859-1?Q?Andreas_F=E4?= =?ISO-8859-1?Q?rber?= , Anthony Liguori , qemu-devel@nongnu.org Hi, >> Maybe the guest driver places the qxl commands in native endian instead >> of big endian into memory? > > The guest drivers places the commands in the memory in its native > endianess. That why the device only works when guest/host has the same > endianess. That's sanit-checks doesn't fails. Ah, ok. this explains it. So we must fix red_parse_qxl.c to byteswap and also the guest driver to byteswap. Then it will work even in case guest and host have different endianess. cheers, Gerd