qemu-patch-raspberry4/hw/arm
Alex Williamson db0da029a1 vfio: Generalize region support
Both platform and PCI vfio drivers create a "slow", I/O memory region
with one or more mmap memory regions overlayed when supported by the
device. Generalize this to a set of common helpers in the core that
pulls the region info from vfio, fills the region data, configures
slow mapping, and adds helpers for comleting the mmap, enable/disable,
and teardown.  This can be immediately used by the PCI MSI-X code,
which needs to mmap around the MSI-X vector table.

This also changes VFIORegion.mem to be dynamically allocated because
otherwise we don't know how the caller has allocated VFIORegion and
therefore don't know whether to unreference it to destroy the
MemoryRegion or not.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2016-03-10 20:03:16 -07:00
..
allwinner-a10.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
armv7m.c loader: Add data swap option to load-elf 2016-03-04 11:30:21 +00:00
bcm2835_peripherals.c raspi: fix SD card with recent sdhci changes 2016-02-26 15:09:42 +00:00
bcm2836.c raspi: fix SD card with recent sdhci changes 2016-02-26 15:09:42 +00:00
boot.c arm: boot: Support big-endian elfs 2016-03-04 11:30:21 +00:00
collie.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
cubieboard.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
digic.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
digic_boards.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
exynos4_boards.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
exynos4210.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
fsl-imx25.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
fsl-imx31.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
gumstix.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
highbank.c arm/boot: move highbank secure board setup code to common routine 2016-02-03 15:00:46 +00:00
imx25_pdk.c Use error_fatal to simplify obvious fatal errors (again) 2016-02-08 17:22:00 +01:00
integratorcp.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
kzm.c Use error_fatal to simplify obvious fatal errors (again) 2016-02-08 17:22:00 +01:00
mainstone.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
Makefile.objs raspi: add raspberry pi 2 machine 2016-02-03 15:00:47 +00:00
musicpal.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
netduino2.c Use error_fatal to simplify obvious fatal errors (again) 2016-02-08 17:22:00 +01:00
nseries.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
omap1.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
omap2.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
omap_sx1.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
palm.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
pxa2xx_gpio.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx_pic.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
raspi.c raspi: fix SD card with recent sdhci changes 2016-02-26 15:09:42 +00:00
realview.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
spitz.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
stellaris.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
stm32f205_soc.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
strongarm.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
strongarm.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sysbus-fdt.c vfio: Generalize region support 2016-03-10 20:03:16 -07:00
tosa.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
versatilepb.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
vexpress.c device_tree: qemu_fdt_getprop_cell converted to use the error API 2016-02-19 09:42:30 -07:00
virt-acpi-build.c acpi: arm: add fw_cfg device node to dsdt 2016-03-08 12:15:15 +01:00
virt.c hw/arm/virt: Assume EL3 boot rom will handle PSCI if one is provided 2016-03-04 11:30:18 +00:00
xilinx_zynq.c sdhci_sysbus: Create SD card device in users, not the device itself 2016-02-18 14:26:33 +00:00
xlnx-ep108.c sdhci_sysbus: Create SD card device in users, not the device itself 2016-02-18 14:26:33 +00:00
xlnx-zynqmp.c sdhci_sysbus: Create SD card device in users, not the device itself 2016-02-18 14:26:33 +00:00
z2.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00