diff options
| author | David Gibson | 2016-02-09 01:15:12 +0100 |
|---|---|---|
| committer | David Gibson | 2016-02-16 23:59:30 +0100 |
| commit | 8dfe8e7f4facef400ef1c220f29196ae5cfc526c (patch) | |
| tree | c9f6ffa2005dc259fab2730cf40d2e719b09118b /include | |
| parent | pseries: Simplify handling of the hash page table fd (diff) | |
| download | qemu-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
