]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
exec: allow to get a pointer for some mmio memory region
authorKONRAD Frederic <fred.konrad@greensocs.com>
Wed, 19 Oct 2016 13:06:49 +0000 (15:06 +0200)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 27 Jun 2017 13:09:15 +0000 (15:09 +0200)
commitc93567463532f46f7c860fc6b431566b71adbd6b
tree78bce090046159a6a2c619c2b818493520a4f224
parent7cc2298c46a6afa4f4ff7e5cd262809c782d701b
exec: allow to get a pointer for some mmio memory region

This introduces a special callback which allows to run code from some MMIO
devices.

SysBusDevice with a MemoryRegion which implements the request_ptr callback will
be notified when the guest try to execute code from their offset. Then it will
be able to eg: pre-load some code from an SPI device or ask a pointer from an
external simulator, etc..

When the pointer or the data in it are no longer valid the device has to
invalidate it.

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
accel/tcg/cputlb.c
include/exec/memory.h
memory.c