Received: from eggs.gnu.org ([2001:4830:134:3::10]:47020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8Hup-0005na-33 for qemu-devel@nongnu.org; Mon, 05 Jan 2015 19:22:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8Huj-0000rr-Pn for qemu-devel@nongnu.org; Mon, 05 Jan 2015 19:22:31 -0500 Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:53207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8Huj-0000ri-MR for qemu-devel@nongnu.org; Mon, 05 Jan 2015 19:22:25 -0500 Received: by mail-qg0-f53.google.com with SMTP id l89so15858773qgf.26 for ; Mon, 05 Jan 2015 16:22:24 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Mon, 5 Jan 2015 19:22:21 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <77FFD738-1433-4B15-8522-C1EA965B774B@gmail.com> References: <3154DC97-3B67-4DBF-BD02-C64E4A9591E3@gmail.com> Subject: Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel qemu-devel On Jan 5, 2015, at 5:06 PM, Peter Maydell wrote: > On 5 January 2015 at 21:27, Programmingkid = wrote: >> This patches does the following: >>=20 >> - Allows user to select endian format of video display. >> This allows Mac OS X to be used as a guest and show all its colors >> correctly. Just add -display-endian-big to the command line to use >> this feature. >=20 > I don't understand the purpose of this option. There are two > video display endiannesses I can think of: >=20 > (1) The guest video device endianness. We should just get this > correct according to the definition of what the hardware does > (and it's not dependent on which host UI we're using) > (2) The host graphics framebuffer endianness. We should > automatically determine this by either asking the host's > GUI about it or by just knowing it if the host is always one > way. (This isn't dependent on what guest is running, either.) >=20 > So what is this option doing? It shouldn't be needed for either > (1) or (2)... >=20 > thanks > -- PMM http://virtuallyfun.superglobalmegacorp.com/?p=3D3197 This is how Mac OS X looks like in QEMU with a Mac OS X host. The colors = are all wrong.=20 This patch fixes that problem so the colors look normal. Things aren't = always so perfect with computers. Out of all the operating systems I = have ran on qemu-system-ppc, Mac OS X is the only one that has this = color issue. I'm not sure about Mac OS 9 yet. This solution does make = using any operating system in QEMU display the correct colors.=20 Your option 1. QEMU does not emulate any video card that shipped with a = Mac. So we can't use this option.=20 Option 2. I don't know what you mean by asking the host's GUI about it. = I do know that having the user choosing the right option does work.=20 Does any VGA genius know if there is some way to automatically detect = the correct endianness? Or is little endian the format that was required = by the standard?=