Re: [PATCH v2 8/9] memory: Assert on no ongoing memory transaction before release BQL

2021-07-27 Thread David Hildenbrand
On 23.07.21 21:34, Peter Xu wrote: Make sure we don't have any more ongoing memory transaction when releasing the BQL. This will trigger an abort if we misuse the QEMU memory model, e.g., when calling run_on_cpu() during a memory commit. ... or pause_all_vcpus() during a memory transaction :)

[PATCH v2 8/9] memory: Assert on no ongoing memory transaction before release BQL

2021-07-23 Thread Peter Xu
Make sure we don't have any more ongoing memory transaction when releasing the BQL. This will trigger an abort if we misuse the QEMU memory model, e.g., when calling run_on_cpu() during a memory commit. Signed-off-by: Peter Xu --- include/exec/memory-internal.h | 1 + softmmu/cpus.c