diff --git a/1055-fix-for-vfio-based-mediated-hct-in-index_value.patch b/1055-fix-for-vfio-based-mediated-hct-in-index_value.patch new file mode 100644 index 0000000000000000000000000000000000000000..4c8b13376dad107237b91d300b1ecddd61508a78 --- /dev/null +++ b/1055-fix-for-vfio-based-mediated-hct-in-index_value.patch @@ -0,0 +1,12 @@ +diff --git a/qemu-8.2.0/hw/vfio/hct.c b/qemu-8.2.0/hw/vfio/hct.c +index fb429271b..478eaf1e6 100644 +--- qemu-8.2.0/hw/vfio/hct.c ++++ qemu-8.2.0/hw/vfio/hct.c +@@ -248,6 +248,12 @@ static int hct_get_ccp_index(HCTDevState *state) + return -errno; + } + ++ memset(buf, 0, sizeof(buf)); + ret = read(fd, buf, sizeof(buf)); + if (ret < 0) { + ret = -errno; diff --git a/qemu.spec b/qemu.spec index b2f7ded4259332200a1ab1e337a4e4cf5e239d75..1b730f9f4e58ffe389cac8300f9fef518346b664 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1,4 +1,4 @@ -%define anolis_release 18 +%define anolis_release 19 %bcond_with check @@ -358,6 +358,7 @@ Patch1051: 1051-vfio-Add-vfio-based-mediated-hct-support.patch Patch1052: 1052-hw-net-virtio-net-Update-event-idx-if-guest-has-made.patch Patch1053: 1053-target-i386-csv-Release-CSV3-shared-pages-after-unma.patch Patch1054: 1054-virtio-net-Fix-network-stall-at-the-host-side-waitin.patch +Patch1055: 1055-fix-for-vfio-based-mediated-hct-in-index_value.patch ExclusiveArch: x86_64 aarch64 loongarch64 @@ -1921,6 +1922,10 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %endif %changelog +* Fri Aug 30 2024 Mingkai Xu - 2:8.2.0-19 +- Patch1055: 1055-fix-for-vfio-based-mediated-hct-in-index_value.patch + (Fix for vfio based mediated hct) + * Sun Aug 18 2024 Wencheng Yang - 2:8.2.0-18 - Patch1054: 1054-virtio-net-Fix-network-stall-at-the-host-side-waitin.patch (Fix network stall at the host side waiting for kick)