diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-01-27 11:39:15 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-01-30 23:37:38 +1100 |
commit | be18b2b53ebbf2eb3f00e7890d0b9ff8b58d22bf (patch) | |
tree | 6fbc35aefb8ea727717886d9dfda713baacc4e5c /numa.c | |
parent | cd6a9bb6e977864b1b7ec21b983fa0678b4b82e9 (diff) |
target-ppc: Use actual page size encodings from HPTE
At present the 64-bit hash MMU code uses information from the SLB to
determine the page size of a translation. We do need that information to
correctly look up the hash table. However the MMU also allows a
possibly larger page size to be encoded into the HPTE itself, which is used
to populate the TLB. At present qemu doesn't check that, and so doesn't
support the MPSS "Multiple Page Size per Segment" feature.
This makes a start on allowing this, by adding an hpte_page_shift()
function which looks up the page size of an HPTE. We use this to validate
page sizes encodings on faults, and populate the qemu TLB with larger
page sizes when appropriate.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'numa.c')
0 files changed, 0 insertions, 0 deletions