- hw/nvme: Avoid dynamic stack allocation - ppc/vof: Fix missed fields in VOF cleanup - ui: fix crash when there are no active_console - tests/qtest/pflash: Clean up local variable shadowing - target/ppc: Fix the order of kvm_enable judgment about kvmppc_set_interrupt() - tulip: Assign default MAC address if not specified - hw/char: fix qcode array bounds check in ESCC impl Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 62083d43f24d801f74b8e0aee7693811c19a366d Mon Sep 17 00:00:00 2001
|
|
From: qihao <qihao_yewu@cmss.chinamobile.com>
|
|
Date: Mon, 18 Sep 2023 15:26:28 +0800
|
|
Subject: [PATCH] ppc/vof: Fix missed fields in VOF cleanup
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
cheery-pick from 7b8589d7ce7e23f26ff53338d575a5cbd7818e28
|
|
|
|
Failing to reset the of_instance_last makes ihandle allocation continue
|
|
to increase, which causes record-replay replay fail to match the
|
|
recorded trace.
|
|
|
|
Not resetting claimed_base makes VOF eventually run out of memory after
|
|
some resets.
|
|
|
|
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>
|
|
Fixes: fc8c745d501 ("spapr: Implement Open Firmware client interface")
|
|
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
|
|
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
|
|
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
|
---
|
|
hw/ppc/vof.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/hw/ppc/vof.c b/hw/ppc/vof.c
|
|
index 73adc44ec2..b1aa0ceb8b 100644
|
|
--- a/hw/ppc/vof.c
|
|
+++ b/hw/ppc/vof.c
|
|
@@ -1026,6 +1026,8 @@ void vof_cleanup(Vof *vof)
|
|
}
|
|
vof->claimed = NULL;
|
|
vof->of_instances = NULL;
|
|
+ vof->of_instance_last = 0;
|
|
+ vof->claimed_base = 0;
|
|
}
|
|
|
|
void vof_build_dt(void *fdt, Vof *vof)
|
|
--
|
|
2.41.0.windows.1
|
|
|