arm/ptw: Handle atomic updates of page tables entries in MMIO during PTW.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 19 Feb 2024 16:12:29 +0000 (16:12 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Feb 2024 13:01:42 +0000 (13:01 +0000)
commit7421ddc4dca27b77dbc62e5cc2aaaae116802639
tree8943c92bb777f6c8011f56984fb267f5af885110
parent06005459dcd75aca23c942519046154197ab4542
arm/ptw: Handle atomic updates of page tables entries in MMIO during PTW.

I'm far from confident this handling here is correct. Hence
RFC.  In particular not sure on what locks I should hold for this
to be even moderately safe.

The function already appears to be inconsistent in what it returns
as the CONFIG_ATOMIC64 block returns the endian converted 'eventual'
value of the cmpxchg whereas the TCG_OVERSIZED_GUEST case returns
the previous value.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-id: 20240219161229.11776-1-Jonathan.Cameron@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/ptw.c