]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Fix user-only probe_access_internal plugin check
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 11 Nov 2024 14:45:40 +0000 (06:45 -0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 17 Nov 2024 03:29:07 +0000 (06:29 +0300)
commit482edc6de5611415a7f58ec84867ed0f969b8f37
tree1680261ffc238e02b02d07e5c8aa85b8f3e1772c
parent7db4f0c07492a4c230862be8fd0d5faa02d8c5c7
accel/tcg: Fix user-only probe_access_internal plugin check

The acc_flag check for write should have been against PAGE_WRITE_ORG,
not PAGE_WRITE.  But it is better to combine two acc_flag checks
to a single check against access_type.  This matches the system code
in cputlb.c.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2647
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: 20241111145002.144995-1-richard.henderson@linaro.org
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
(cherry picked from commit 2a339fee450638b512c5122281cb5ab49331cfb8)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
accel/tcg/user-exec.c