- ppc/xive: Fix ESB length overflow on 32-bit hosts - target/hppa: Fix PSW V-bit packaging in cpu_hppa_get for hppa64 - target/ppc: Fix migration of CPUs with TLB_EMB TLB type - target/arm: Clear high SVE elements in handle_vec_simd_wshli - module: Prevent crash by resetting local_err in module_load_qom_all() - tests/docker: update debian i686 and mipsel images to bookworm - target/arm: Fix SVE SDOT/UDOT/USDOT (4-way, indexed) - docs/sphinx/depfile.py: Handle env.doc2path() returning a Path not a str - block/blkio: use FUA flag on write zeroes only if supported - virtio-pci: Fix the use of an uninitialized irqfd - hw/cxl: Ensure there is enough data to read the input header in cmd_get_physical_port_state() - intel_iommu: Send IQE event when setting reserved bit in IQT_TAIL - virtio-net: Avoid indirection_table_mask overflow - Fix calculation of minimum in colo_compare_tcp - target/riscv/csr.c: Fix an access to VXSAT - linux-user: Clean up unused header - raw-format: Fix error message for invalid offset/size - hw/loongarch/virt: Remove unnecessary 'cpu.h' inclusion - tests: Wait for migration completion on destination QEMU to avoid failures - acpi: ged: Add macro for acpi sleep control register - hw/intc/openpic: Improve errors for out of bounds property values - hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge - docs/tools/qemu-img.rst: fix typo (sumarizes) - audio/pw: Report more accurate error when connecting to PipeWire fails - audio/pw: Report more accurate error when connecting to PipeWire fails - dma: Fix function names in documentation Ensure the function names match. - edu: fix DMA range upper bound check - platform-bus: fix refcount leak - hw/net/can/sja1000: fix bug for single acceptance filter and standard frame - tests/avocado: fix typo in replay_linux - util/userfaultfd: Remove unused uffd_poll_events - Consider discard option when writing zeros - crypto: factor out conversion of QAPI to gcrypt constants - crypto: drop gnutls debug logging support - crypto: use consistent error reporting pattern for unsupported cipher modes - hw/gpio/aspeed_gpio: Avoid shift into sign bit Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com> (cherry picked from commit b6e04df301d30895427ab41a1edff0f40149bdd9)
56 lines
1.9 KiB
Diff
56 lines
1.9 KiB
Diff
From fa282d002c45e1cc1cca6a2541b75ab5889c8c01 Mon Sep 17 00:00:00 2001
|
|
From: Arman Nabiev <nabiev.arman13@gmail.com>
|
|
Date: Thu, 22 Aug 2024 19:56:53 +0300
|
|
Subject: [PATCH] target/ppc: Fix migration of CPUs with TLB_EMB TLB type
|
|
|
|
In vmstate_tlbemb a cut-and-paste error meant we gave
|
|
this vmstate subsection the same "cpu/tlb6xx" name as
|
|
the vmstate_tlb6xx subsection. This breaks migration load
|
|
for any CPU using the TLB_EMB CPU type, because when we
|
|
see the "tlb6xx" name in the incoming data we try to
|
|
interpret it as a vmstate_tlb6xx subsection, which it
|
|
isn't the right format for:
|
|
|
|
$ qemu-system-ppc -drive
|
|
if=none,format=qcow2,file=/home/petmay01/test-images/virt/dummy.qcow2
|
|
-monitor stdio -M bamboo
|
|
QEMU 9.0.92 monitor - type 'help' for more information
|
|
(qemu) savevm foo
|
|
(qemu) loadvm foo
|
|
Missing section footer for cpu
|
|
Error: Error -22 while loading VM state
|
|
|
|
Correct the incorrect vmstate section name. Since migration
|
|
for these CPU types was completely broken before, we don't
|
|
need to care that this is a migration compatibility break.
|
|
|
|
This affects the PPC 405, 440, 460 and e200 CPU families.
|
|
|
|
Cc: qemu-stable@nongnu.org
|
|
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2522
|
|
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Signed-off-by: Arman Nabiev <nabiev.arman13@gmail.com>
|
|
Signed-off-by: Fabiano Rosas <farosas@suse.de>
|
|
(cherry picked from commit 203beb6f047467a4abfc8267c234393cea3f471c)
|
|
Signed-off-by: zhujun2 <zhujun2_yewu@cmss.chinamobile.com>
|
|
---
|
|
target/ppc/machine.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/target/ppc/machine.c b/target/ppc/machine.c
|
|
index 68cbdffecd..3e010f3a07 100644
|
|
--- a/target/ppc/machine.c
|
|
+++ b/target/ppc/machine.c
|
|
@@ -621,7 +621,7 @@ static bool tlbemb_needed(void *opaque)
|
|
}
|
|
|
|
static const VMStateDescription vmstate_tlbemb = {
|
|
- .name = "cpu/tlb6xx",
|
|
+ .name = "cpu/tlbemb",
|
|
.version_id = 1,
|
|
.minimum_version_id = 1,
|
|
.needed = tlbemb_needed,
|
|
--
|
|
2.41.0.windows.1
|
|
|