[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 2/7] plugins: save value during memory accesses
From: |
Alex Bennée |
Subject: |
Re: [PATCH v6 2/7] plugins: save value during memory accesses |
Date: |
Mon, 08 Jul 2024 11:55:56 +0100 |
Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
> Different code paths handle memory accesses:
> - tcg generated code
> - load/store helpers
> - atomic helpers
>
> This value is saved in cpu->neg.plugin_mem_value_{high,low}. Values are
> written only for accessed word size (upper bits are not set).
>
> Atomic operations are doing read/write at the same time, so we generate
> two memory callbacks instead of one, to allow plugins to access distinct
> values.
>
> For now, we can have access only up to 128 bits, thus split this in two
> 64 bits words. When QEMU will support wider operations, we'll be able to
> reconsider this.
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH v6 0/7] plugins: access values during a memory read/write, Pierrick Bouvier, 2024/07/06
- [PATCH v6 1/7] plugins: fix mem callback array size, Pierrick Bouvier, 2024/07/06
- [PATCH v6 2/7] plugins: save value during memory accesses, Pierrick Bouvier, 2024/07/06
- Re: [PATCH v6 2/7] plugins: save value during memory accesses,
Alex Bennée <=
- [PATCH v6 3/7] plugins: extend API to get latest memory value accessed, Pierrick Bouvier, 2024/07/06
- [PATCH v6 5/7] tests/tcg: allow to check output of plugins, Pierrick Bouvier, 2024/07/06
- [PATCH v6 6/7] tests/plugin/mem: add option to print memory accesses, Pierrick Bouvier, 2024/07/06
- [PATCH v6 7/7] tests/tcg/x86_64: add test for plugin memory access, Pierrick Bouvier, 2024/07/06