[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/7] memory: pass MemTxAttrs to memory_access_is_direct()
From: |
Peter Xu |
Subject: |
Re: [PATCH v3 5/7] memory: pass MemTxAttrs to memory_access_is_direct() |
Date: |
Wed, 12 Feb 2025 10:21:56 -0500 |
On Mon, Feb 10, 2025 at 09:46:46AM +0100, David Hildenbrand wrote:
> We want to pass another flag that will be stored in MemTxAttrs. So pass
> MemTxAttrs directly.
>
> Reviewed-by: Peter Xu <peterx@redhat.com>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
> hw/core/loader.c | 2 +-
> hw/remote/vfio-user-obj.c | 2 +-
> include/exec/memory.h | 5 +++--
> system/memory_ldst.c.inc | 18 +++++++++---------
> system/physmem.c | 12 ++++++------
> 5 files changed, 20 insertions(+), 19 deletions(-)
This breaks mac builds.. I'll squash:
diff --git a/hw/display/apple-gfx.m b/hw/display/apple-gfx.m
index aa1455b629..1554f3b801 100644
--- a/hw/display/apple-gfx.m
+++ b/hw/display/apple-gfx.m
@@ -137,7 +137,8 @@ static void apple_gfx_destroy_task(AppleGFXState *s,
PGTask_t *task)
MEMTXATTRS_UNSPECIFIED);
if (!ram_region || ram_region_length < length ||
- !memory_access_is_direct(ram_region, !read_only)) {
+ !memory_access_is_direct(ram_region, !read_only,
+ MEMTXATTRS_UNSPECIFIED)) {
return NULL;
}
--
Peter Xu
- [PATCH v3 0/7] physmem: teach cpu_memory_rw_debug() to write to more memory regions, David Hildenbrand, 2025/02/10
- [PATCH v3 1/7] physmem: factor out memory_region_is_ram_device() check in memory_access_is_direct(), David Hildenbrand, 2025/02/10
- [PATCH v3 2/7] physmem: factor out RAM/ROMD check in memory_access_is_direct(), David Hildenbrand, 2025/02/10
- [PATCH v3 3/7] physmem: factor out direct access check into memory_region_supports_direct_access(), David Hildenbrand, 2025/02/10
- [PATCH v3 5/7] memory: pass MemTxAttrs to memory_access_is_direct(), David Hildenbrand, 2025/02/10
- Re: [PATCH v3 5/7] memory: pass MemTxAttrs to memory_access_is_direct(),
Peter Xu <=
- [PATCH v3 4/7] physmem: disallow direct access to RAM DEVICE in address_space_write_rom(), David Hildenbrand, 2025/02/10
- [PATCH v3 6/7] hmp: use cpu_get_phys_page_debug() in hmp_gva2gpa(), David Hildenbrand, 2025/02/10
- [PATCH v3 7/7] physmem: teach cpu_memory_rw_debug() to write to more memory regions, David Hildenbrand, 2025/02/10
- Re: [PATCH v3 0/7] physmem: teach cpu_memory_rw_debug() to write to more memory regions, Peter Xu, 2025/02/11
- Re: [PATCH v3 0/7] physmem: teach cpu_memory_rw_debug() to write to more memory regions, Stefan Zabka, 2025/02/12