summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorDavid Gibson2016-01-27 01:39:15 +0100
committerDavid Gibson2016-01-30 13:37:38 +0100
commitbe18b2b53ebbf2eb3f00e7890d0b9ff8b58d22bf (patch)
tree6fbc35aefb8ea727717886d9dfda713baacc4e5c /linux-headers
parenttarget-ppc: Rework SLB page size lookup (diff)
downloadqemu-be18b2b53ebbf2eb3f00e7890d0b9ff8b58d22bf.tar.gz
qemu-be18b2b53ebbf2eb3f00e7890d0b9ff8b58d22bf.tar.xz
qemu-be18b2b53ebbf2eb3f00e7890d0b9ff8b58d22bf.zip
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 'linux-headers')
0 files changed, 0 insertions, 0 deletions