From: Fea.Wang Date: Thu, 12 Sep 2024 07:04:04 +0000 (+0800) Subject: softmmu/physmem.c: Keep transaction attribute in address_space_map() X-Git-Tag: v7.2.15~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b62dc6d94fc1246bc3a97d094b32f653d67ee389;p=thirdparty%2Fqemu.git softmmu/physmem.c: Keep transaction attribute in address_space_map() 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 Cc: qemu-stable@nongnu.org Fixes: f26404fbee ("Make address_space_map() take a MemTxAttrs argument") Reviewed-by: Philippe Mathieu-Daudé Link: https://lore.kernel.org/r/20240912070404.2993976-2-fea.wang@sifive.com Signed-off-by: Peter Xu (cherry picked from commit d8d5ca40048b04750de5a0ae0b2b9f153a391951) Signed-off-by: Michael Tokarev (Mjt: context fix due to lack of v9.1.0-134-g637b0aa13956 "softmmu: Support concurrent bounce buffers" v9.0.0-564-g69e78f1b3484 "system/physmem: Per-AddressSpace bounce buffering") --- diff --git a/softmmu/physmem.c b/softmmu/physmem.c index 5b176581f6f..b96534ea160 100644 --- a/softmmu/physmem.c +++ b/softmmu/physmem.c @@ -3245,7 +3245,7 @@ void *address_space_map(AddressSpace *as, memory_region_ref(mr); bounce.mr = mr; if (!is_write) { - flatview_read(fv, addr, MEMTXATTRS_UNSPECIFIED, + flatview_read(fv, addr, attrs, bounce.buffer, l); }