- hw/virtio/virtio-crypto: Protect from DMA re-entrancy bugs(CVE-2024-3446) - hw/char/virtio-serial-bus: Protect from DMA re-entrancy bugs(CVE-2024-3446) - hw/display/virtio-gpu: Protect from DMA re-entrancy bugs(CVE-2024-3446) - hw/virtio: Introduce virtio_bh_new_guarded() helper - hw: replace most qemu_bh_new calls with qemu_bh_new_guarded - checkpatch: add qemu_bh_new/aio_bh_new checks - async: avoid use-after-free on re-entrancy guard - async: Add an optional reentrancy guard to the BH API - hw/sd/sdhci: Do not update TRNMOD when Command Inhibit (DAT) is set(CVE-2024-3447) - rtl8139: Remove unused variable - tulip: Remove unused variable - virtio-mem: Fix the bitmap index of the section offset - virtio-mem: Fix the iterator variable in a vmem->rdl_list loop - system/memory: use ldn_he_p/stn_he_p - block: Fix crash when loading snapshot on inactive node - smmu: Clear SMMUPciBus pointer cache when system reset - block/mirror: Fix NULL s->job in active writes - amd_iommu: Fix APIC address check - virtio-crypto: fix NULL pointer dereference in virtio_crypto_free_reques - libqos/virtio.c: Correct 'flags' reading in qvirtqueue_kick cherry-pick from 66e411885a23c96ff73742d06b793fec3ceaebb7 - ivshmem-test.c: enable test_ivshmem_server for ppc64 arch - ivshmem.c: change endianness to LITTLE_ENDIAN - hw/ppc/mac.h: Remove MAX_CPUS macro - configure: remove dead variables - virtio-gpu: do not byteswap padding - hw/intc: clean-up error reporting for failed ITS cmd - qemu-iotests: Discard stderr when probing devices - linux-user: un-parent OBJECT(cpu) when closing thread - hw/net/rocker: Avoid undefined shifts with more than 31 ports - contrib/vhost-user-blk: Clean up deallocation of VuVirtqElement - scsi-disk: fix overflow when block size is not a multiple of BDRV_SECTOR_SIZE Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com> (cherry picked from commit bf54b48c2963c869dfdc89977c57be4bd9e772aa)
70 lines
2.4 KiB
Diff
70 lines
2.4 KiB
Diff
From d193565aa9b9b293337a82f347fa1c877814d871 Mon Sep 17 00:00:00 2001
|
|
From: Luo Yifan <luoyifan_yewu@cmss.chinamobile.com>
|
|
Date: Thu, 28 Mar 2024 14:00:37 +0800
|
|
Subject: [PATCH] ivshmem-test.c: enable test_ivshmem_server for ppc64 arch
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
cherry picked from commit d04aeb6862a18540b7f72617b05be19846e1b047
|
|
|
|
This test, if enabled by hand, was failing when the ivhsmem device was
|
|
being declared as DEVICE_NATIVE_ENDIAN with the following error:
|
|
|
|
/ppc64/ivshmem/pair: OK
|
|
/ppc64/ivshmem/server:
|
|
**
|
|
ERROR:/home/danielhb/qemu/tests/qtest/ivshmem-test.c:367:test_ivshmem_server:
|
|
assertion failed (ret != 0): (0 != 0)
|
|
Aborted
|
|
|
|
After the endianness change done in the previous patch, we can verify in
|
|
both a a Power 9 little-endian host and in a Power 8 big-endian host
|
|
that this test is now passing:
|
|
|
|
$ QTEST_QEMU_BINARY=./ppc64-softmmu/qemu-system-ppc64 ./tests/qtest/ivshmem-test -m slow
|
|
/ppc64/ivshmem/single: OK
|
|
/ppc64/ivshmem/hotplug: OK
|
|
/ppc64/ivshmem/memdev: OK
|
|
/ppc64/ivshmem/pair: OK
|
|
/ppc64/ivshmem/server: OK
|
|
|
|
Let's keep it that way by officially enabling it for ppc64.
|
|
|
|
Acked-by: Thomas Huth <thuth@redhat.com>
|
|
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
Message-Id: <20211124092948.335389-3-danielhb413@gmail.com>
|
|
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
|
Signed-off-by: Luo Yifan <luoyifan_yewu@cmss.chinamobile.com>
|
|
---
|
|
tests/qtest/ivshmem-test.c | 5 +----
|
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
diff --git a/tests/qtest/ivshmem-test.c b/tests/qtest/ivshmem-test.c
|
|
index dfa69424ed..fe94dd3b96 100644
|
|
--- a/tests/qtest/ivshmem-test.c
|
|
+++ b/tests/qtest/ivshmem-test.c
|
|
@@ -463,7 +463,6 @@ static gchar *mktempshm(int size, int *fd)
|
|
int main(int argc, char **argv)
|
|
{
|
|
int ret, fd;
|
|
- const char *arch = qtest_get_arch();
|
|
gchar dir[] = "/tmp/ivshmem-test.XXXXXX";
|
|
|
|
g_test_init(&argc, &argv, NULL);
|
|
@@ -488,9 +487,7 @@ int main(int argc, char **argv)
|
|
qtest_add_func("/ivshmem/memdev", test_ivshmem_memdev);
|
|
if (g_test_slow()) {
|
|
qtest_add_func("/ivshmem/pair", test_ivshmem_pair);
|
|
- if (strcmp(arch, "ppc64") != 0) {
|
|
- qtest_add_func("/ivshmem/server", test_ivshmem_server);
|
|
- }
|
|
+ qtest_add_func("/ivshmem/server", test_ivshmem_server);
|
|
}
|
|
|
|
out:
|
|
--
|
|
2.27.0
|
|
|