PPC: mac99: Move NVRAM to page boundary when necessary
authorAlexander Graf <agraf@suse.de>
Fri, 11 Jul 2014 01:24:39 +0000 (03:24 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:47 +0000 (12:50 +0200)
commit261265cc912b375649fcdf7aded0f87359dba544
tree3b92fe4e08e7984bcc566c4c6cde696b67484904
parentef9514431d33e52eb611f799670ca86618c1b7d9
PPC: mac99: Move NVRAM to page boundary when necessary

When running KVM we have to adhere to host page boundaries for memory slots.
Unfortunately the NVRAM on mac99 is a 4k RAM hole inside of an MMIO flash
area.

So if our host is configured with 64k page size, we can't use the mac99 target
with KVM. This is a real shame, as this limitation is not really an issue - we
can easily map NVRAM somewhere else and at least Linux and Mac OS X use it
at their new location.

So in that emergency case when it's about failing to run at all and moving NVRAM
to a place it shouldn't be at, choose the latter.

This patch enables -M mac99 with KVM on 64k page size hosts.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/mac_newworld.c
include/hw/ppc/ppc.h