diff options
| author | David Hildenbrand <david@redhat.com> | 2025-02-10 09:46:43 +0100 |
|---|---|---|
| committer | Peter Xu <peterx@redhat.com> | 2025-02-12 10:13:27 -0500 |
| commit | e76d7b6b8cd564d4d5ea6e7c7daea541e100caa4 (patch) | |
| tree | d33a74694419f29c1012a5946ad416b6be924382 /monitor/hmp-cmds-target.c | |
| parent | 52012209e1802e67aa186459e3e965f669e553df (diff) | |
| download | focaccia-qemu-e76d7b6b8cd564d4d5ea6e7c7daea541e100caa4.tar.gz focaccia-qemu-e76d7b6b8cd564d4d5ea6e7c7daea541e100caa4.zip | |
physmem: factor out RAM/ROMD check in memory_access_is_direct()
Let's factor more of the generic "is this directly accessible" check, independent of the "write" condition out. Note that the "!mr->rom_device" check in the write case essentially disallows the memory_region_is_romd() condition again. Further note that RAM DEVICE regions are also RAM regions, so we can check for RAM+ROMD first. This is a preparation for further changes. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20250210084648.33798-3-david@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'monitor/hmp-cmds-target.c')
0 files changed, 0 insertions, 0 deletions