293 Commits

Author SHA1 Message Date
Jiabo Feng
e09c739b3b QEMU update to version 6.2.0-78(master)
- sw_64: Added sw64 architecture related updates
- virtio-crypto: verify src&dst buffer length for sym request
- vhost-vdpa: do not cleanup the vdpa/vhost-net structures if peer nic is present
- qga: Fix suspend on Linux guests without systemd
- tests: vhost-user-test: release mutex on protocol violation
- qapi: support updating expected test output via make
- block: Fix misleading hexadecimal format
- block/rbd: fix write zeroes with growing images
- block/nbd.c: Fixed IO request coroutine not being wakeup when kill NBD server
- block/nfs: Fix 32-bit Windows build
- qapi/qdev: Tidy up device_add documentation
- hw/xen/xen_pt: fix uninitialized variable
- migration/ram: Fix error handling in ram_write_tracking_start()
- docs/about/build-platforms: Refine the distro support policy
- xen-block: Avoid leaks on new error path
- QGA VSS: Add wrapper to send log to debugger and stderr
- chardev/char-socket: set s->listener = NULL in char_socket_finalize
- qapi/block: Tidy up block-latency-histogram-set documentation
- disas/riscv Fix ctzw disassemble
- vfio: Fix vfio_get_dev_region() trace event
- migration/ram: Fix populate_read_range()
- Check and report for incomplete 'global' option  format

Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
(cherry picked from commit b239b0b2d5ef1975fd8a3c3e6dad9e38a814e9b0)
2023-08-21 09:28:02 +08:00
Jiabo Feng
bc91f4c9e3 QEMU update to version 6.2.0-77(master)
- test-vmstate: fix bad GTree usage, use-after-free

Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
2023-08-15 09:55:09 +08:00
Jiabo Feng
9779ec121b QEMU update to version 6.2.0-76(master)
- qga/win32: Use rundll for VSS installation
- qga/win32: Remove change action from MSI installer
- ide: Increment BB in-flight counter for TRIM BH
- hw/pci-bridge/pxb: Fix missing swizzle
- host-vdpa: make notifiers _init()/_uninit() symmetric
- hw/virtio: vdpa: Fix leak of host-notifier memory-region
- accel/tcg/cpu-exec: Fix precise single-stepping after interrupt
- Allow setting up to 8 bytes with the generic loader
- hw/net/virtio-net: make some VirtIONet const
- accel/tcg: Optimize jump cache flush during tlb range flush
- 9pfs: prevent opening special files (CVE-2023-2861)
- tcg: Reduce tcg_assert_listed_vecop() scope
- gitlab: Disable plugins for cross-i386-tci
- vfio/pci: Fix a segfault in vfio_realize
- block/iscsi: fix double-free on BUSY or similar statuses
- tests/tcg: fix unused variable in linux-test
- hw/net/vmxnet3: allow VMXNET3_MAX_MTU itself as a value
- qga/vss-win32: fix warning for clang++-15
- vnc: avoid underflow when accessing user-provided address
- block/monitor: Fix crash when executing HMP commit
- virtio-gpu: add a FIXME for virtio_gpu_load()
- hw/ppc/Kconfig: MAC_NEWWORLD should always select USB_OHCI_PCI
- migration: report compress thread pid to libvirt

Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
2023-07-28 10:03:27 +08:00
Jiabo Feng
f4ea6a15b8 QEMU update to version 6.2.0-75(master)
- Add lbt support for kvm.
    - Fix smp.cores value and Fix divide 0 error
    - hw/nvme: Change alignment in dma functions for nvme_blk_*
    - virtio: fix reachable assertion due to stale value of cached region size
    - hw/nvme: fix missing DNR on compare failure

    Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>

(cherry picked from commit 8040b814b870e30530193485720369d3f81a295e)
2023-07-05 10:27:07 +08:00
liuxiangdong
5e576aac11 spec: delete repetitive man8/qemu-ga.8* from qemu-guest-agent package
Files man8/qemu-ga.8* are packaged in qemu-help package.

Delete it from qemu-guest-agent package.

Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com>
(cherry picked from commit 522d65d17105385cd106c87df815856a3cf244a5)
2023-05-25 19:00:41 +08:00
liuxiangdong
1f576bfc77 spec: delete useless core3-hmcode/core3-reset/uefi-bios-sw
"%exclude" only means not packaging these three files but they
are still existing in buildroot directory. "ERROR: No build ID
not found in XXXXX" will be reported when generating debug package.

Delete them directly in buildroot directory.

Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com>
(cherry picked from commit 047085038062127f07a5e0a853fbb0d0ac16ff65)
2023-05-19 17:31:04 +08:00
Fei Xu
32fe755617 QEMU update to version 6.2.0-72(master)
- migration/xbzrle: fix out-of-bounds write with axv512
- migration/xbzrle: use ctz64 to avoid undefined result
- Update bench-code for addressing CI problem
- AVX512 support for xbzrle_encode_buffer
- configure, meson: move AVX tests to meson
- target/i386: KVM: allow fast string operations if host supports them
- target/i386: add FSRM to TCG
- hw/nvme: fix memory leak in nvme_dsm
- aio-posix: fix race between epoll upgrade and aio_set_fd_handler()
- target/i386: Add SGX aex-notify and EDECCSSA support
- hw/usb/imx: Fix out of bounds access in imx_usbphy_read()
- target/i386: Set maximum APIC ID to KVM prior to vCPU creation
- target/i386: Fix sanity check on max APIC ID / X2APIC enablement

Signed-off-by: Fei Xu <xufei30@huawei.com>
(cherry picked from commit 2ddec1532bdfeff758025fa8ebe6423072621ee1)
2023-05-18 17:38:25 +08:00
Fei Xu
06e9099925 QEMU update to version 6.2.0-71(master)
-vhost-user-blk: fix the resize crash
 -plugins: make qemu_plugin_user_exit's locking order consistent with fork_start's
 -linux-user: fix strace build w/out munlockall
 -ui: fix crash on serial reset, during init
 -qga/win/vss: requester_freeze changes
 -migration: fix populate_vfio_info
 -block/rbd: workaround for ceph issue #53784
 -target/i386: add FZRM, FSRS, FSRC
 -i386: Add new CPU model SapphireRapids
 -core/cpu-common: Fix the wrong '#ifdef __aarch64__'

Signed-off-by: Fei Xu <xufei30@huawei.com>
(cherry picked from commit f9d45693ebcd110b1f143ffe2380cd521b671328)
2023-04-23 11:50:02 +08:00
lixianglai
d1defb23b8 Add spice buildrequires.
Add spice buildrequires for loongarch.

Signed-off-by: lixianglai <lixianglai@loongson.cn>
(cherry picked from commit f1d5d42d62b91183cb2e701c1ae65659d1978378)
2023-03-30 20:31:15 +08:00
lixianglai
962b818a57 fixup compile on loongarch64 machine.
Add function kvm_arch_accel_class_init definition on loongarch64 machine.

Signed-off-by: lixianglai <lixianglai@loongson.cn>
(cherry picked from commit 6b685cefd08b2a46db9888d6e6e74510b6d62fd0)
2023-03-29 20:59:51 +08:00
Fei Xu
82505a0c0b QEMU update to version 6.2.0-68(master)
-tests: modify qemu.spec to add (riscv virt) machine mapping to testenv

Signed-off-by: Fei Xu <xufei30@huawei.com>
(cherry picked from commit d29b61f5c2ec6e2d717b7c0ce58e982d0ab968cf)
2023-03-29 10:00:38 +08:00
chenhuiying
914b5d913d QEMU update to viersion 6.2.0-67(master)
-bugfix: fix qmp command migrate-set-parameters
-some bugfixs about ARM hot-plugged CPUs
-hw/core/machine:Fix the missing consideration of cluster-id
-test/tcg:Fix target-specific Makefile variable path for user-mode
-tests:add (riscv virt) machine mapping to testenv
-Make a litte improvement in curl and hw/riscv
-qemu support for loongarch
-hw/pvrdma: Protect against buggy or malious guest driver
-hw/audio/intel-hda:fix stream reset
-dsoundaudio:fix crackling audio recordings
-add notify-vm-exit support for i386
-blok-backend: prevent dangling BDS pointers across aio_poll()
-net:Fix uninitialized data usage
-net/eth:Don't consider ESP to be an IPv6 option header
-hw/net/vmxnet3:Log guest-triggerable errors using LOG_GUEST_ERROR

Signed-off-by: FeiXu <xufei30@huawei.com>
(cherry picked from commit cb597988462cc34a9ef18139c1b6c403333c93a7)
2023-03-29 09:17:41 +08:00
rminmin
9a41c0ce17 spec: Add multiboot_dma.bin
Add multiboot_dma.bin

Signed-off-by: rminmin <renmm6@chinaunicom.cn>
(cherry picked from commit a3130d60867ae49804f946ec6bff7a6df370ebde)
2023-03-28 22:31:00 +08:00
yezengruan
55a2c3d276 QEMU update to version 6.2.0-65
- linux-user: Add strace output for timer_settime64() syscall
- fix qemu-core when vhost-user-net config with server mode

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-12-20 14:08:06 +08:00
yezengruan
a0021b5b6b QEMU update to version 6.2.0-64
- target/arm: Fix kvm probe of ID_AA64ZFR0
- migration: report migration/multiFd related thread pid to libvirt
- vhost_net: keep acked_feature only for NET_CLIENT_DRIVER_VHOST_USER

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 2d46526fa69b16614ac095e5d2b11ae4e06649cf)
2022-12-14 16:27:00 +08:00
Qiang Wei
5b22c9d544 Use bcond_without to control conditon build
It is more clear about conditonal build.

Signed-off-by: Qiang Wei <qiang.wei@suse.com>
(cherry picked from commit c00bd7dc70f700b90db24c324d2e2333282130b9)
2022-12-13 11:32:30 +08:00
Qiang Wei
cba93e8215 Make Ceph rbd support optional
Signed-off-by: Qiang Wei <qiang.wei@suse.com>
(cherry picked from commit 8c06fb9dd9a12341f29aad3e7296a6c32587067a)
2022-12-09 17:36:57 +08:00
yezengruan
ecbeac1dec BuildRequires add make
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 173dd41c89697ee2ea4d399cc24c31fccff8d783)
2022-12-07 15:42:12 +08:00
yezengruan
b090c807e6 QEMU update to verison 6.2.0-60
- sync some bugfix patches from upstream
- fix the virtio features negotiation flaw
- fix CVE-2022-4144

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 86bdfa92116f931f9f221449750d1ddb8b31bacd)
2022-12-06 16:04:34 +08:00
yezengruan
b99dbfd984 Qemu update to version 6.2.0-59
- arm/virt: Fix vcpu hotplug idx_from_topo_ids
- Revert patches related to the vSVA
- sync some bugfix patches from upstream
- add generic vDPA device support

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-11-28 16:01:39 +08:00
yezengruan
60ac7eb978 update qemu download url
The download url is dead and needs to be updated.

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-11-23 17:21:41 +08:00
weishaokun
6033b9da10 Support io-uring by adding --enable-io-uring compilation option
(cherry picked from commit f6a40d3606f77651ffd84b127540c392ef4db39f)
2022-11-22 16:02:58 +08:00
yezengruan
90977ca40f build: make check with -j
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit c39a6c85861f6956d6f1e070cb93b783f412fefc)
2022-11-09 14:05:25 +08:00
yuelg
7baeda7eee by default enable rbd support
Support rbd by adding --enable-rbd compilation option

Signed-off-by: yuelg <yuelg@chinaunicom.cn>
(cherry picked from commit 62f5717c6f9c7d92224560c2d84381bc09ad9a6f)
2022-11-08 15:20:15 +08:00
yezengruan
9686fb592f Qemu update to version 6.2.0-55
- support dirty restraint on vCPU
- support SPR AMX in Qemu
- fix compilation errors of sw64

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit e9095b76ae8be40ed088bf155356ab11d61f9e3b)
2022-11-08 14:42:37 +08:00
fu-shanqing
f44b226067 add '--enable-slirp' compilation options
(cherry picked from commit f68cfde3b0f7bcfc62dedfa4da86c4e25beeec20)
2022-10-25 15:58:39 +08:00
bobychen
ad82233a51 ui/vnc-clipboard: fix integer underflow in vnc_client_cut_text_ext (CVE-2022-3165)
Signed-off-by: yezengruan <yezengruan@huawei.com>
Signed-off-by: bobychen <boby.chen@huawei.com>
2022-10-21 09:52:28 +08:00
wanborj
3226a2a69d Backport upstream bugfix
Signed-off-by: wanborj <wanbo13@huawei.com>
(cherry picked from commit d72c1d27b2cdc70578ab2e9052961dcdb9012d0d)
2022-09-30 23:17:43 +08:00
zhangxinhao
99aae2a130 Backport upstream bugfix
Signed-off-by: zhangxinhao <zhangxinhao1@huawei.com>
(cherry picked from commit a2786109b9d5ffd86d5df523efeff80064e01501)
2022-09-30 18:46:59 +08:00
Zhang Bo
ee75106ff6 spec: fix wrong patch name
net-tulip-Restrict-DMA-engine-to-memories.patch was named with CVE-XX
surfixes, the spec remains that old name, change the name there.

Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
(cherry picked from commit 9e73b27bd80a240f37eb04c17d593c3f83eab6b6)
2022-09-30 17:32:22 +08:00
Zhang Bo
711cbb5d02 net: tulip: Restrict DMA engine to memories(CVE-2022-2962)
fix CVE-2022-2962.
The DMA engine is started by I/O access and then itself accesses the
I/O registers, triggering a teentrancy bug.
Fix this bug by restricting the DMA engine to memories regions.

Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
(cherry picked from commit 69b69596a274bd68695dda39ef939ed1ddbf9ba1)
2022-09-30 15:19:49 +08:00
yezengruan
bf46d59f28 hw/usb/hcd-xhci: Fix unbounded loop in xhci_ring_chain_length() (CVE-2020-14394)
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 9e16c84fbf0f5f14fcf086e2eea666f667a95385)
2022-09-07 17:14:50 +08:00
yezengruan
4da9c8cdcc fix CVE-2022-0216 (openeuler !332)
hw/scsi/lsi53c895a: Do not abort when DMA requested and no data queued
tests/qtest: Add fuzz-lsi53c895a-test
scsi/lsi53c895a: fix use-after-free in lsi_do_msgout (CVE-2022-0216)
scsi/lsi53c895a: really fix use-after-free in lsi_do_msgout (CVE-2022-0216)

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 9b71f5aa79cf60ef96779e8127429e08af0f3f12)
2022-09-01 09:39:45 +08:00
Zhang Bo
a0455b1002 backport nbd related patches to avoid vm crash during migration
block-nbd was refacted during release 6.2.0, but we didn't induced
all the needed patches within the 6.2.0 baseline, which leads to
vm crash during migration.
the reasons are as below:
when iothread is configured, the coroutines should get back to
the exact iothread that was out of. But within the 6.2.0 baseline,
patches were missing, nbd related coroutine didn't have its related
aio_context. It in fact get to the mainline aio_context, the mistaken
context leads to vm crash.

(cherry picked from commit 6e9beed308cf3a252419fe8fde37cae3d1f2e281)
2022-08-30 09:22:33 +08:00
yezengruan
a6c5c96c0b Qemu update to version 10:6.2.0-46
vhost-user: remove VirtQ notifier restore
vhost-user: fix VirtQ notifier cleanup
enable vDPA build params
Provides qemu-kvm for upgrade

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-08-25 14:50:16 +08:00
yezengruan
4fd1515e26 Qemu update to version 6.2.0-45
numa: Enable numa for SGX EPC sections
target/ppc: enhance error handling in kvmppc_read_int*
fix pointer double free in func qemu_savevm_state_complete_precopy_non_iterable

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit bb777b4dcec9cce839f38c256bf8f3856eb859e4)
2022-08-11 19:54:57 +08:00
yezengruan
1862863088 add Requires libgcc
(cherry picked from commit 56beae0617d658b8100fabcf91bed5568e4a8b99)
2022-07-26 17:00:21 +08:00
cenhuilin
8efe99aebf fix CVE-2022-35414
(cherry picked from commit 5054179fc589c666ff10a561931eae09c34902f7)
2022-07-20 09:01:07 +08:00
l00500761
6112b46845 Fix CVE-2022-0358 and CVE-2021-4158
(cherry picked from commit 8b199ba599c28c4071f46b4c11cc0b3f22bc4f09)
2022-07-13 15:31:23 +08:00
yezengruan
3e2d31c28e hw/nvme: fix CVE-2021-3929 (openeuler !313)
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 36eaeb0b27e6170738b08a7dd0624849b8911e37)
2022-06-23 09:58:42 +08:00
saarloos
4b76d42c1b Add riscv rpm include qemu-system-riscv32 and qemu-system-riscv64
(cherry picked from commit 1bf06bf4adb1724c6cdc1865b639bb7abc5b5e63)
2022-06-21 09:21:13 +08:00
bobychen
78cfb1e61d fix CVE-2021-3611
Signed-off-by: yezengruan <yezengruan@huawei.com>
Signed-off-by: bobychen <boby.chen@huawei.com>
2022-06-11 10:34:14 +08:00
yezengruan
ed3dcd58ca fix CVE-2021-3507 and fix -acpitable regression (openeuler !300!301)
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit ba8cdf7ac04fdc9e6d55cbf5e0b86b736ec57096)
2022-06-02 10:31:20 +08:00
saarloos
d8d794f51c add qemu-system-x86_64 qemu-system-arm qemu-system-aarch64 rpm
(cherry picked from commit 666acae1c364d7d82200bb32f8d3386528b99a4a)
2022-05-31 21:25:50 +08:00
Jun Yang
b88add3eb3 qemu: remove unnecessary dependency of kernel package
Signed-off-by: Jun Yang <jun.yang@suse.com>
(cherry picked from commit d9686f6f3e83d37662bd9202a8a69dbefc8f6094)
2022-05-30 15:13:37 +08:00
yezengruan
081694dc6b fix CVE-2021-3750 (openeuler !293)
hw/intc/arm_gicv3: Check for !MEMTX_OK instead of MEMTX_ERROR (CVE-2021-3750)
softmmu/physmem: Simplify flatview_write and address_space_access_valid
softmmu/physmem: Introduce MemTxAttrs::memory field and MEMTX_ACCESS_ERROR

(cherry picked from commit b39643dc6ee4fab61b1d840a1124cb407c7c0af1)
2022-05-23 20:38:59 +08:00
yezengruan
98f1919458 fix CVE-2021-4207 and CVE-2021-4206 (openeuler !287)
display/qxl-render: fix race condition in qxl_cursor (CVE-2021-4207)
ui/cursor: fix integer overflow in cursor_alloc (CVE-2021-4206)

(cherry picked from commit dec7c9d2cf2df71421daaaffbda4f42a885adcc0)
2022-05-11 17:01:13 +08:00
yezengruan
b1c6ee74df update changelog
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit af63dcf8b243999a83db1a9e7f7c1790603e1b48)
2022-05-05 15:57:06 +08:00
yezengruan
dc36d8b306 vfio/pci: Ascend710 change to bar2 quirk
Change Ascend710's quirk regions to bar2 for internal causes.
And support Ascend710 2P format now.

Signed-off-by: Wu Binfeng <wubinfeng@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit ce1ce575d621f918d1719f8d2fadbbcc68260ada)
2022-04-27 14:52:25 +08:00
yezengruan
d19e0bfda9 fix CVE-2022-26354 and CVE-2022-26353
vhost-vsock: detach the virqueue element in case of error (CVE-2022-26354)
virtio-net: fix map leaking on error during receive (CVE-2022-26353)

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-04-15 17:27:48 +08:00