kvm: ppc: warn user on PAGE_SIZE mismatch
authorAlexander Graf <agraf@suse.de>
Sat, 16 Apr 2011 08:15:11 +0000 (10:15 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 May 2011 20:31:38 +0000 (22:31 +0200)
commit011c2ce3d0423d8925ac6b6f8bb993f5d5b73111
tree9e6f0d4252eae74f939f34ba2697e3f4ee0bbd61
parentce261aa842418c0956f9ef507821d11a25b20ebd
kvm: ppc: warn user on PAGE_SIZE mismatch

On PPC, the default PAGE_SIZE is 64kb. Unfortunately, the hardware
alignments don't match here: There are RAM and MMIO regions within
a single page when it's 64kb in size.

So the only way out for now is to tell the user that he should use 4k
PAGE_SIZE.

This patch gives the user a hint on that, telling him that failing to
register a prefix slot is most likely to be caused by mismatching PAGE_SIZE.

This way it's also more future-proof, as bigger PAGE_SIZE can easily be
supported by other machines then, as long as they stick to 64kb granularities.

Signed-off-by: Alexander Graf <agraf@suse.de>
kvm-all.c