]> git.proxmox.com Git - qemu.git/commit
pseries: Correctly create ibm,segment-page-sizes property
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 18 Jun 2012 19:56:30 +0000 (19:56 +0000)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:45 +0000 (01:04 +0200)
commit5af9873d301cf5affec57e2f93650e8700f8251a
treee4fa36f89baf3ed07710e8d584a25fecd544e475
parent4656e1f01289cc3aa20986deb6a407165826abe5
pseries: Correctly create ibm,segment-page-sizes property

The core tcg/kvm code for ppc64 now has at least the outline
capability to support pagesizes beyond the standard 4k and 16MB.  The
CPUState is initialized with information advertising the available
pagesizes and their correct encodings, and under the right KVM setup
this will be populated with page sizes beyond the standard.

Obviously guests can't use the extra page sizes unless they know
they're present.  For the pseries machine, at least, there is a
defined method for conveying exactly this information, the
"ibm-segment-page-sizes" property in the guest device tree.

This patch generates this property using the supported page size
information that's already in the CPUState.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr.c