unicorn/qemu/include/exec
Alexey Kardashevskiy 096ca207af
memory: Add reporting of supported page sizes
Every IOMMU has some granularity which MemoryRegionIOMMUOps::translate
uses when translating, however this information is not available outside
the translate context for various checks.

This adds a get_min_page_size callback to MemoryRegionIOMMUOps and
a wrapper for it so IOMMU users (such as VFIO) can know the minimum
actual page size supported by an IOMMU.

As IOMMU MR represents a guest IOMMU, this uses TARGET_PAGE_SIZE
as fallback.

This removes vfio_container_granularity() and uses new helper in
memory_region_iommu_replay() when replaying IOMMU mappings on added
IOMMU memory region.

Backports the relevant parts of commit f682e9c244af7166225f4a50cc18ff296bb9d43e from qemu
2018-02-24 19:23:28 -05:00
..
address-spaces.h
cpu-all.h qemu-common.h: Drop WORDS_ALIGNED define 2018-02-24 17:01:55 -05:00
cpu-common.h memory: split memory_region_from_host from qemu_ram_addr_from_host 2018-02-24 16:06:49 -05:00
cpu-defs.h
cpu_ldst.h
cpu_ldst_template.h
cputlb.h include/exec: Move cputlb exec.c defs out 2018-02-23 10:52:25 -05:00
exec-all.h cpu-exec: Rename cpu_resume_from_signal() to cpu_loop_exit_noexc() 2018-02-24 17:25:28 -05:00
gen-icount.h gen-icount: Use tcg_set_insn_param 2018-02-23 20:01:17 -05:00
helper-gen.h
helper-head.h
helper-proto.h
helper-tcg.h
hwaddr.h qemu-common: push cpu.h inclusion out of qemu-common.h 2018-02-24 01:50:56 -05:00
ioport.h hw: remove pio_addr_t 2018-02-24 02:43:16 -05:00
memattrs.h
memory-internal.h
memory.h memory: Add reporting of supported page sizes 2018-02-24 19:23:28 -05:00
ram_addr.h memory: remove qemu_get_ram_fd, qemu_set_ram_fd, qemu_ram_block_host_ptr 2018-02-24 03:34:44 -05:00
ramlist.h memory: RCU ram_list.dirty_memory[] for safe RAM hotplug 2018-02-22 15:38:03 -05:00
semihost.h
tb-context.h exec: extract exec/tb-context.h 2018-02-24 02:09:58 -05:00
tb-hash-xx.h exec: add tb_hash_func5, derived from xxhash 2018-02-24 17:36:35 -05:00
tb-hash.h tb hash: hash phys_pc, pc, and flags with xxhash 2018-02-24 18:00:14 -05:00