diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-08-08 14:19:44 +1000 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2023-09-06 11:19:33 +0200 |
commit | 7b8589d7ce7e23f26ff53338d575a5cbd7818e28 (patch) | |
tree | 968c39ad81380b9a568ccfea6d9c6b2cdc4a3312 /hw/ppc | |
parent | 2c71b4f6049ef1ed8c75bce7091102be7209a473 (diff) | |
download | qemu-7b8589d7ce7e23f26ff53338d575a5cbd7818e28.zip qemu-7b8589d7ce7e23f26ff53338d575a5cbd7818e28.tar.gz qemu-7b8589d7ce7e23f26ff53338d575a5cbd7818e28.tar.bz2 |
ppc/vof: Fix missed fields in VOF cleanup
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>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/vof.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/vof.c b/hw/ppc/vof.c index 18c3f92..e3b430a 100644 --- a/hw/ppc/vof.c +++ b/hw/ppc/vof.c @@ -1024,6 +1024,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) |