You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/system
Steve Sistare e3353d63e1 vfio: return mr from vfio_get_xlat_addr
Modify memory_get_xlat_addr and vfio_get_xlat_addr to return the memory
region that the translated address is found in.  This will be needed by
CPR in a subsequent patch to map blocks using IOMMU_IOAS_MAP_FILE.

Also return the xlat offset, so we can simplify the interface by removing
the out parameters that can be trivially derived from mr and xlat.

Lastly, rename the functions to  to memory_translate_iotlb() and
vfio_translate_iotlb().

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/1747661203-136490-1-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
3 days ago
..
arch_init.c system: Replace arch_type global by qemu_arch_available() helper 3 months ago
async-teardown.c qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd() 10 months ago
balloon.c include: Rename sysemu/ -> system/ 6 months ago
bootdevice.c include: Rename sysemu/ -> system/ 6 months ago
cpu-timers.c include/exec: Split out icount.h 2 months ago
cpus.c system/runstate: add VM state change cb with return value 4 weeks ago
datadir.c pc-bios: Move device tree files in their own subdir 1 month ago
device_tree-stub.c hw/core/machine.c: Make -machine dumpdtb=file.dtb with no DTB an error 3 months ago
device_tree.c hw/core/machine.c: Make -machine dumpdtb=file.dtb with no DTB an error 3 months ago
dirtylimit.c Miscellaneous patches for 2025-04-24 1 month ago
dma-helpers.c include/exec: Split out icount.h 2 months ago
globals-target.c system: Extract target-specific globals to their own compilation unit 3 months ago
globals.c accel/tcg: Restrict 'icount_align_option' global to TCG 3 months ago
ioport.c include/system: Move exec/ioport.h to system/ioport.h 2 months ago
main.c system/main: comment lock rationale 2 weeks ago
memory-internal.h system/memory: Remove DEVICE_HOST_ENDIAN definition 1 month ago
memory.c vfio: return mr from vfio_get_xlat_addr 3 days ago
memory_ldst.c.inc memory: pass MemTxAttrs to memory_access_is_direct() 4 months ago
memory_mapping.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2 months ago
meson.build meson: remove lib{system, user}_ss aliases 2 weeks ago
physmem.c * ci: enable RISC-V cross jobs 1 month ago
qdev-monitor.c system: Replace arch_type global by qemu_arch_available() helper 3 months ago
qemu-seccomp.c include: Rename sysemu/ -> system/ 6 months ago
qtest.c exec: Rename target_words_bigendian() -> target_big_endian() 1 month ago
rtc.c include: Rename sysemu/ -> system/ 6 months ago
runstate-action.c include: Rename sysemu/ -> system/ 6 months ago
runstate-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
runstate.c i386/tdx: Wire TDX_REPORT_FATAL_ERROR with GuestPanic facility 1 week ago
tpm-hmp-cmds.c
tpm.c include: Rename sysemu/ -> system/ 6 months ago
trace-events physmem: fd-based shared memory 4 months ago
trace.h
vl.c hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 1 week ago
watchpoint.c include/exec: Split out watchpoint.h 2 months ago