summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Gibson2016-02-09 01:15:12 +0100
committerDavid Gibson2016-02-16 23:59:30 +0100
commit8dfe8e7f4facef400ef1c220f29196ae5cfc526c (patch)
treec9f6ffa2005dc259fab2730cf40d2e719b09118b /include
parentpseries: Simplify handling of the hash page table fd (diff)
downloadqemu-8dfe8e7f4facef400ef1c220f29196ae5cfc526c.tar.gz
qemu-8dfe8e7f4facef400ef1c220f29196ae5cfc526c.tar.xz
qemu-8dfe8e7f4facef400ef1c220f29196ae5cfc526c.zip
pseries: Add helper to calculate recommended hash page table size
At present we calculate the recommended hash page table (HPT) size for a pseries guest just once in ppc_spapr_init() before allocating the HPT. In future patches we're going to want this calculation in other places, so this splits it out into a helper function. While we're at it, change the calculation to use ctz() instead of an explicit loop. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions