qemu/hw/dma
Peter Maydell b01422622b ptimer: Rename ptimer_init() to ptimer_init_with_bh()
Currently the ptimer design uses a QEMU bottom-half as its
mechanism for calling back into the device model using the
ptimer when the timer has expired. Unfortunately this design
is fatally flawed, because it means that there is a lag
between the ptimer updating its own state and the device
callback function updating device state, and guest accesses
to device registers between the two can return inconsistent
device state.

We want to replace the bottom-half design with one where
the guest device's callback is called either immediately
(when the ptimer triggers by timeout) or when the device
model code closes a transaction-begin/end section (when the
ptimer triggers because the device model changed the
ptimer's count value or other state). As the first step,
rename ptimer_init() to ptimer_init_with_bh(), to free up
the ptimer_init() name for the new API. We can then convert
all the ptimer users away from ptimer_init_with_bh() before
removing it entirely.

(Commit created with
 git grep -l ptimer_init | xargs sed -i -e 's/ptimer_init/ptimer_init_with_bh/'
and three overlong lines folded by hand.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191008171740.9679-2-peter.maydell@linaro.org
2019-10-15 18:09:02 +01:00
..
bcm2835_dma.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
etraxfs_dma.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
i8257.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
i82374.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Kconfig hw/core: Add a config switch for the "register" device 2019-08-20 09:11:05 +02:00
Makefile.objs hw/dma: Do not build the xlnx_dpdma device for the MicroBlaze machines 2019-08-19 21:28:25 +02:00
omap_dma.c hw/dma/omap_dma: Move switch 'fall through' comment to correct place 2019-08-21 10:55:23 +02:00
pl080.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
pl330.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
puv3_dma.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
pxa2xx_dma.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
rc4030.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
soc_dma.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
sparc32_dma.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
xilinx_axidma.c ptimer: Rename ptimer_init() to ptimer_init_with_bh() 2019-10-15 18:09:02 +01:00
xlnx_dpdma.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
xlnx-zdma.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
xlnx-zynq-devcfg.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00