summary refs log tree commit diff stats
path: root/hw/char/lm32_uart.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2016-05-04 16:52:19 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2016-05-27 09:40:23 +1000
commitfec5d3a1cd8fea7d70778f8b408589d75c88c3e7 (patch)
treed7d34dbfb3b2d5f5c8e98e711791464939fe3e4d /hw/char/lm32_uart.c
parentf94819d6012fbc2a6022eeacd65608e58dacbada (diff)
downloadfocaccia-qemu-fec5d3a1cd8fea7d70778f8b408589d75c88c3e7.tar.gz
focaccia-qemu-fec5d3a1cd8fea7d70778f8b408589d75c88c3e7.zip
spapr_iommu: Move table allocation to helpers
At the moment presence of vfio-pci devices on a bus affect the way
the guest view table is allocated. If there is no vfio-pci on a PHB
and the host kernel supports KVM acceleration of H_PUT_TCE, a table
is allocated in KVM. However, if there is vfio-pci and we do yet not
KVM acceleration for these, the table has to be allocated by
the userspace. At the moment the table is allocated once at boot time
but next patches will reallocate it.

This moves kvmppc_create_spapr_tce/g_malloc0 and their counterparts
to helpers.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/char/lm32_uart.c')
0 files changed, 0 insertions, 0 deletions