diff options
| author | Alexey Kardashevskiy | 2017-09-12 04:53:07 +0200 |
|---|---|---|
| committer | David Gibson | 2017-09-15 02:29:48 +0200 |
| commit | e100161b69f8cf56dae866912dfffe7dcd7140af (patch) | |
| tree | 4c7e6e9d17fd50002c30aa47e9206c4c66f38194 /scripts/modules/module_block.py | |
| parent | spapr_pci: handle FDT creation errors with _FDT() (diff) | |
| download | qemu-e100161b69f8cf56dae866912dfffe7dcd7140af.tar.gz qemu-e100161b69f8cf56dae866912dfffe7dcd7140af.tar.xz qemu-e100161b69f8cf56dae866912dfffe7dcd7140af.zip | |
vfio, spapr: Fix levels calculation
The existing tries to round up the number of pages but @pages is always
calculated as the rounded up value minus one which makes ctz64() always
return 0 and have create.levels always set 1.
This removes wrong "-1" and allows having more than 1 levels. This becomes
handy for >128GB guests with standard 64K pages as this requires blocks
with zone order 9 and the popular limit of CONFIG_FORCE_MAX_ZONEORDER=9
means that only blocks up to order 8 are allowed.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions
