[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/30] include/exec/memop: Add bits describing atomicity
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 02/30] include/exec/memop: Add bits describing atomicity |
Date: |
Tue, 28 Feb 2023 17:56:28 +0000 |
User-agent: |
mu4e 1.9.21; emacs 29.0.60 |
Richard Henderson <richard.henderson@linaro.org> writes:
> These bits may be used to describe the precise atomicity
> requirements of the guest, which may then be used to
> constrain the methods by which it may be emulated by the host.
>
> For instance, the AArch64 LDP (32-bit) instruction changes
> semantics with ARMv8.4 LSE2, from
>
> MO_64 | MO_ATMAX_4 | MO_ATOM_IFALIGN
> (64-bits, single-copy atomic only on 4 byte units,
> nonatomic if not aligned by 4),
>
> to
>
> MO_64 | MO_ATMAX_SIZE | MO_ATOM_WITHIN16
> (64-bits, single-copy atomic within a 16 byte block)
>
> The former may be implemented with two 4 byte loads, or
> a single 8 byte load if that happens to be efficient on
> the host. The latter may not, and may also require a
> helper when misaligned.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH v2 00/30] tcg: Improve atomicity support, Richard Henderson, 2023/02/15
- [PATCH v2 01/30] include/qemu/cpuid: Introduce xgetbv_low, Richard Henderson, 2023/02/15
- [PATCH v2 02/30] include/exec/memop: Add bits describing atomicity, Richard Henderson, 2023/02/15
- Re: [PATCH v2 02/30] include/exec/memop: Add bits describing atomicity,
Alex Bennée <=
- [PATCH v2 03/30] accel/tcg: Add cpu_in_serial_context, Richard Henderson, 2023/02/15
- [PATCH v2 04/30] accel/tcg: Introduce tlb_read_idx, Richard Henderson, 2023/02/15
- [PATCH v2 05/30] accel/tcg: Reorg system mode load helpers, Richard Henderson, 2023/02/15
- [PATCH v2 06/30] accel/tcg: Reorg system mode store helpers, Richard Henderson, 2023/02/15
- [PATCH v2 07/30] accel/tcg: Honor atomicity of loads, Richard Henderson, 2023/02/15
- [PATCH v2 08/30] accel/tcg: Honor atomicity of stores, Richard Henderson, 2023/02/15