Re: [Qemu-devel] MTTCG and atomicity of loads and stores from QEMU C helper functions

2017-12-15 Thread Richard Henderson
On 12/15/2017 12:14 PM, Peter Maydell wrote: > We have a fair amount of code in QEMU which is helper functions > written in C which make guest memory accesses -- the most common > case being page table walk code. > > Generally in CPU architectures the accesses by things like the > page table walke

[Qemu-devel] MTTCG and atomicity of loads and stores from QEMU C helper functions

2017-12-15 Thread Peter Maydell
We have a fair amount of code in QEMU which is helper functions written in C which make guest memory accesses -- the most common case being page table walk code. Generally in CPU architectures the accesses by things like the page table walker have some atomicity guarantees. For instance Arm requir