- i386/cpuid: Move leaf 7 to correct group - i386/cpuid: Decrease cpuid_i when skipping CPUID leaf 1F - i386/cpu: Mask with XCR0/XSS mask for FEAT_XSAVE_XCR0_HI and FEAT_XSAVE_XSS_HI leafs - i386/cpu: Clear FEAT_XSAVE_XSS_LO/HI leafs when CPUID_EXT_XSAVE is not available - target/i386: Change wrong XFRM value in SGX CPUID leaf - target/i386: Enable support for XSAVES based features - target/i386: Add kvm_get_one_msr helper - hw/block/hd-geometry: Do not override specified bios-chs-trans mainline inclusion commit fd8a68ad6823d33bedeba20a22857867a1c3890e category: bugfix - linux-user/riscv: Align signal frame to 16 bytes mainline inclusion commit 1eaa63429a9944265c92efdb94c02fabb231f564 category: bugfix - ipmi:smbus: Add a check around a memcpy mainline inclusion commit 3fde641e7286f9b968bdb3b4b922c6465f2a9abc category: bugfix - tests/tcg/linux-test: Fix random hangs in test_socket mainline inclusion commit b9e6074fc5b429b1e956e9c60db7e284a91e0f3d category: bugfix - qemu-options.hx: Don't claim "-serial" has limit of 4 serial ports Before v2.12, the implementation of serial ports was limited to a value of MAX_SERIAL_PORTS = 4. We now dynamically allocate the data structures for serial ports, so this limit is no longer present, but the documentation for the -serial options still reads: - target/ppc: Modify the uncorrect value irq to n_IRQ - block-migration: Ensure we don't crash during migration cleanup - target/s390x: fix handling of zeroes in vfmin/vfmax mainline inclusion commit 13c59eb09bd6d1fbc13f08b708226421f14a232b category: bugfix - hw/virtio/virtio-iommu: Enforce power-of-two notify for both MAP and UNMAP mainline inclusion commit 0522be9a0c0094088ccef7aab352c57f483ca250 category: bugfix - configure: Add missing POSIX-required space mainline inclusion commit 35a7a6fc5624b1df828d82f2dfa74d0e4188b3b2 category: bugfix - vga: fix incorrect line height in 640x200x2 mode mainline inclusion commit 37e7b86766244b62a406747bb78e049390d0b528 category: bugfix - hw/ide/core: set ERR_STAT in unsupported command completion - linux-user/flatload.c: Fix setting of image_info::end_code mainline inclusion commit 734a659ad264ac080457167e845ffabbaaa66d0e category: bugfix - load_elf: fix iterator's type for elf file processing - hw/misc/mps2-scc: Free MPS2SCC::oscclk[] array on finalize() - hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize() - hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[] "pg0-lock" array - chardev/char.c: fix "abstract device type" error message - block/rbd: fix handling of holes in .bdrv_co_block_status - qga: treat get-guest-fsinfo as "best effort" mainline inclusion commit bbb0151cf2e82489120a15df5e2eb9653312b0ec category: bugfix - usb/hcd-xhci: check slotid in xhci_wakeup_endpoint() mainline inclusion commit 84218892f05515d20347fde4506e1944eb11cb25 category: bugfix - hw/display/bcm2835_fb: Fix framebuffer allocation address mainline inclusion commit 5865d99fe88d8c8fa437c18c6b63fb2a8165634f category: bugfix - block/parallels: Fix buffer-based write call mainline inclusion commit eba088f91d21d9e42a81bef847173da30c5da961 category: bugfix - vl: Improve error message for conflicting -incoming and -loadvm - hw/smbios: Fix OEM strings table option validation Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com> (cherry picked from commit 5d1a5160936dce1757c09050d97d12f42642794b)
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
From d8685a2aca40ad07ecab1da84ec97f6384b26a66 Mon Sep 17 00:00:00 2001
|
|
From: zhujun2 <zhujun2_yewu@cmss.chinamobile.com>
|
|
Date: Mon, 4 Mar 2024 01:46:13 -0800
|
|
Subject: [PATCH] hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[]
|
|
"pg0-lock" array
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Commit 0be6bfac62 ("qdev: Implement variable length array properties")
|
|
added the DEFINE_PROP_ARRAY() macro with the following comment:
|
|
|
|
* It is the responsibility of the device deinit code to free the
|
|
* @_arrayfield memory.
|
|
|
|
Commit 9e4aa1fafe added:
|
|
|
|
DEFINE_PROP_ARRAY("pg0-lock",
|
|
XlnxVersalEFuseCtrl, extra_pg0_lock_n16,
|
|
extra_pg0_lock_spec, qdev_prop_uint16, uint16_t),
|
|
|
|
but forgot to free the 'extra_pg0_lock_spec' array. Do it in the
|
|
instance_finalize() handler.
|
|
|
|
Cc: qemu-stable@nongnu.org
|
|
Fixes: 9e4aa1fafe ("hw/nvram: Xilinx Versal eFuse device") # v6.2.0+
|
|
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
|
Message-id: 20231121174051.63038-6-philmd@linaro.org
|
|
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
(cherry picked from commit 4f10c66077e39969940d928077560665e155cac8)
|
|
Signed-off-by: zhujun2 <zhujun2_yewu@cmss.chinamobile.com>
|
|
---
|
|
hw/nvram/xlnx-versal-efuse-ctrl.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/hw/nvram/xlnx-versal-efuse-ctrl.c b/hw/nvram/xlnx-versal-efuse-ctrl.c
|
|
index b35ba65ab5..2d2dc09526 100644
|
|
--- a/hw/nvram/xlnx-versal-efuse-ctrl.c
|
|
+++ b/hw/nvram/xlnx-versal-efuse-ctrl.c
|
|
@@ -725,6 +725,13 @@ static void efuse_ctrl_init(Object *obj)
|
|
sysbus_init_irq(sbd, &s->irq_efuse_imr);
|
|
}
|
|
|
|
+static void efuse_ctrl_finalize(Object *obj)
|
|
+{
|
|
+ XlnxVersalEFuseCtrl *s = XLNX_VERSAL_EFUSE_CTRL(obj);
|
|
+
|
|
+ g_free(s->extra_pg0_lock_spec);
|
|
+}
|
|
+
|
|
static const VMStateDescription vmstate_efuse_ctrl = {
|
|
.name = TYPE_XLNX_VERSAL_EFUSE_CTRL,
|
|
.version_id = 1,
|
|
@@ -762,6 +769,7 @@ static const TypeInfo efuse_ctrl_info = {
|
|
.instance_size = sizeof(XlnxVersalEFuseCtrl),
|
|
.class_init = efuse_ctrl_class_init,
|
|
.instance_init = efuse_ctrl_init,
|
|
+ .instance_finalize = efuse_ctrl_finalize,
|
|
};
|
|
|
|
static void efuse_ctrl_register_types(void)
|
|
--
|
|
2.27.0
|
|
|