OSDN Git Service

target/i386: Use atomic operations for pte updates
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 2 Oct 2022 17:29:55 +0000 (10:29 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Oct 2022 11:58:04 +0000 (13:58 +0200)
commit4a1e9d4d11cd5c0f05f7f04467088ff09fcdafac
tree2ab47a28cecf0efa6c2220473213771be85518c4
parent11b4e971dc3f830584dffb4b8287229d842152c7
target/i386: Use atomic operations for pte updates

Use probe_access_full in order to resolve to a host address,
which then lets us use a host cmpxchg to update the pte.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/279
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221002172956.265735-9-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/sysemu/excp_helper.c