diff mbox series

[HOTFIX] target/loongarch: Terminate vmstate subsections list

Message ID 20230510062405.127260-1-richard.henderson@linaro.org
State New
Headers show
Series [HOTFIX] target/loongarch: Terminate vmstate subsections list | expand

Commit Message

Richard Henderson May 10, 2023, 6:24 a.m. UTC
This list requires a NULL terminator.

Fixes: 16f5396cec23 ("target/loongarch: Add LSX data type VReg")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---

This failure can be seen 

https://gitlab.com/qemu-project/qemu/-/jobs/4253259728#L5579

  5/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/qom-test                 ERROR           1.38s   killed by signal 6 SIGABRT
 44/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/test-hmp                 ERROR           0.95s   killed by signal 6 SIGABRT
356/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/machine-none-test        ERROR           0.51s   killed by signal 6 SIGABRT

It does not always fail, depending on the layout of the executable,
which is why it was not caught right away.  I plan on applying this
directly to master before processing more pull requests.


r~

---
 target/loongarch/machine.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Song Gao May 10, 2023, 9:31 a.m. UTC | #1
在 2023/5/10 下午2:24, Richard Henderson 写道:
> This list requires a NULL terminator.
>
> Fixes: 16f5396cec23 ("target/loongarch: Add LSX data type VReg")
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>
> This failure can be seen
>
> https://gitlab.com/qemu-project/qemu/-/jobs/4253259728#L5579
>
>    5/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/qom-test                 ERROR           1.38s   killed by signal 6 SIGABRT
>   44/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/test-hmp                 ERROR           0.95s   killed by signal 6 SIGABRT
> 356/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/machine-none-test        ERROR           0.51s   killed by signal 6 SIGABRT
>
> It does not always fail, depending on the layout of the executable,
> which is why it was not caught right away.  I plan on applying this
> directly to master before processing more pull requests.
>
Thank you.

We are adding this job to our internal CI process.

Thanks.
Song Gao
Philippe Mathieu-Daudé May 10, 2023, 3:09 p.m. UTC | #2
On 10/5/23 08:24, Richard Henderson wrote:
> This list requires a NULL terminator.
> 
> Fixes: 16f5396cec23 ("target/loongarch: Add LSX data type VReg")
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> 
> This failure can be seen
> 
> https://gitlab.com/qemu-project/qemu/-/jobs/4253259728#L5579
> 
>    5/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/qom-test                 ERROR           1.38s   killed by signal 6 SIGABRT
>   44/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/test-hmp                 ERROR           0.95s   killed by signal 6 SIGABRT
> 356/789 qemu:qtest+qtest-loongarch64 / qtest-loongarch64/machine-none-test        ERROR           0.51s   killed by signal 6 SIGABRT
> 
> It does not always fail, depending on the layout of the executable,
> which is why it was not caught right away.  I plan on applying this
> directly to master before processing more pull requests.
> 
> 
> r~
> 
> ---
>   target/loongarch/machine.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c
index 7adc1bdff9..d8ac99c9a4 100644
--- a/target/loongarch/machine.c
+++ b/target/loongarch/machine.c
@@ -163,5 +163,6 @@  const VMStateDescription vmstate_loongarch_cpu = {
     .subsections = (const VMStateDescription*[]) {
         &vmstate_fpu,
         &vmstate_lsx,
+        NULL
     }
 };