Keep transaction attribute in address_space_map()
cover 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.
Fea.Wang (1):
softmmu/physmem.c: Keep transaction attribute in address_space_map()
system/physmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.34.1
PATCH 1/1 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.
--- system/physmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
system/physmem.c +1 -1
@@ -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); }
Signature · 1 line
2.34.1
Re: [PATCH 1/1] softmmu/physmem.c: Keep transaction attribute in address_space_map()
Quoted 4 lines · Fea.Wang
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.
Doh, long standing bug...
Quoted 18 lines
Signed-off-by Fea.Wang <[email protected]>--- system/physmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)system/physmem.c +1
-1@@ -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); }
Re: [PATCH 1/1] softmmu/physmem.c: Keep transaction attribute in address_space_map()
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 4 lines · Fea.Wang
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.Doh, long standing bug...
Fixes f26404fbee ("Make address_space_map() take a MemTxAttrs argument")Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Thanks, queued with these attached.
Signature · 1 line
Peter Xu