pseries: Switch VGA endian on H_SET_MODE
commiteefaccc02bab659c8cb4c994b2f385c3f0a27551
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 10 Feb 2015 04:36:16 +0000 (10 15:36 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 14:00:03 +0000 (9 15:00 +0100)
tree93412a0758b772c7a04d5e9571a983912f0c2228
parent3c2784fc864d943ff70a2a5c9dea8e9a9b4d9e1d
pseries: Switch VGA endian on H_SET_MODE

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.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_hcall.c
hw/ppc/spapr_pci.c
include/hw/ppc/spapr.h