qemu-patch-raspberry4/hw/vfio
Alexey Kardashevskiy e100161b69 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>
2017-09-15 10:29:48 +10:00
..
amd-xgbe.c
calxeda-xgmac.c
ccw.c vfio/ccw: fix initialization of the Object DeviceState pointer in the common base-device 2017-07-25 09:17:42 +02:00
common.c
Makefile.objs
pci-quirks.c
pci.c vfio/pci: fix use of freed memory 2017-07-26 11:38:18 -06:00
pci.h
platform.c vfio/platform: fix use of freed memory 2017-07-26 11:38:17 -06:00
spapr.c vfio, spapr: Fix levels calculation 2017-09-15 10:29:48 +10:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00