Re: [RFC v5 2/3] memory: add depth assert in address_space_to_flatview

2023-02-08 Thread Juan Quintela
Chuang Xu wrote: > Before using any flatview, sanity check we're not during a memory > region transaction or the map can be invalid. > > Signed-off-by: Chuang Xu Reviewed-by: Juan Quintela I am waiting to see what Paolo thinks (specially of patch 1). Later, JUan.

[RFC v5 2/3] memory: add depth assert in address_space_to_flatview

2023-01-17 Thread Chuang Xu
Before using any flatview, sanity check we're not during a memory region transaction or the map can be invalid. Signed-off-by: Chuang Xu --- include/exec/memory.h | 15 +++ softmmu/memory.c | 5 + 2 files changed, 20 insertions(+) diff --git a/include/exec/memory.h