qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 1/7] plugins: fix mem callback array size


From: Richard Henderson
Subject: Re: [PATCH v4 1/7] plugins: fix mem callback array size
Date: Wed, 3 Jul 2024 11:39:48 -0700
User-agent: Mozilla Thunderbird

On 7/2/24 11:44, Pierrick Bouvier wrote:
data was correctly copied, but size of array was not set
(g_array_sized_new only reserves memory, but does not set size).

As a result, callbacks were not called for code path relying on
plugin_register_vcpu_mem_cb().

Found when trying to trigger mem access callbacks for atomic
instructions.

Reviewed-by: Xingtao Yao<yaoxt.fnst@fujitsu.com>
Signed-off-by: Pierrick Bouvier<pierrick.bouvier@linaro.org>
---
  accel/tcg/plugin-gen.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]