[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 4/6] softmmu/physmem.c: Keep transaction attribute in address_s
From: |
Peter Xu |
Subject: |
[PULL v2 4/6] softmmu/physmem.c: Keep transaction attribute in address_space_map() |
Date: |
Wed, 18 Sep 2024 14:31:49 -0400 |
From: "Fea.Wang" <fea.wang@sifive.com>
The follow-up transactions may use the data in the attribution, so keep
the value of attribution from the function parameter just as
flatview_translate() above.
Signed-off-by: Fea.Wang <fea.wang@sifive.com>
Cc: qemu-stable@nongnu.org
Fixes: f26404fbee ("Make address_space_map() take a MemTxAttrs argument")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: 20240912070404.2993976-2-fea.wang@sifive.com">https://lore.kernel.org/r/20240912070404.2993976-2-fea.wang@sifive.com
Signed-off-by: Peter Xu <peterx@redhat.com>
---
system/physmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/physmem.c b/system/physmem.c
index d71a2b1bbd..dc1db3a384 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -3274,7 +3274,7 @@ void *address_space_map(AddressSpace *as,
bounce->len = l;
if (!is_write) {
- flatview_read(fv, addr, MEMTXATTRS_UNSPECIFIED,
+ flatview_read(fv, addr, attrs,
bounce->buffer, l);
}
--
2.45.0
- [PULL v2 0/6] Migration 20240917 patches, Peter Xu, 2024/09/18
- [PULL v2 1/6] tests/qtest/migration: Move a couple of slow tests under g_test_slow, Peter Xu, 2024/09/18
- [PULL v2 3/6] migration/multifd: Fix loop conditions in multifd_zstd_send_prepare and multifd_zstd_recv, Peter Xu, 2024/09/18
- [PULL v2 2/6] migration/multifd: Fix build for qatzip, Peter Xu, 2024/09/18
- [PULL v2 4/6] softmmu/physmem.c: Keep transaction attribute in address_space_map(),
Peter Xu <=
- [PULL v2 6/6] migration/multifd: Fix rb->receivedmap cleanup race, Peter Xu, 2024/09/18
- [PULL v2 5/6] migration/savevm: Remove extra load cleanup calls, Peter Xu, 2024/09/18
- Re: [PULL v2 0/6] Migration 20240917 patches, Peter Maydell, 2024/09/19