From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1a5R-0001qV-OP for qemu-devel@nongnu.org; Mon, 30 Jun 2014 07:49:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1a5I-0002dY-Fk for qemu-devel@nongnu.org; Mon, 30 Jun 2014 07:49:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1a5I-0002dN-79 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 07:49:20 -0400 Message-ID: <1404128955.24066.32.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 30 Jun 2014 13:49:15 +0200 In-Reply-To: <1403565068-15229-15-git-send-email-benh@kernel.crashing.org> References: <1403565068-15229-1-git-send-email-benh@kernel.crashing.org> <1403565068-15229-15-git-send-email-benh@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 14/14] ppc/spapr/vga: Switch VGA endian on H_SET_MODE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: qemu-devel@nongnu.org On Di, 2014-06-24 at 09:11 +1000, Benjamin Herrenschmidt wrote: > When the guest switches the interrupt endian mode, which essentially > means a global machine endian switch, we want to change the VGA > framebuffer endian mode as well in order to be backward compatible > with existing guests who don't know about the new endian control > register. I'd tend to add a notifier (see include/qemu/notify.h) for endian switches instead, so anybody interested could register himself. cheers, Gerd