277 Commits

Author SHA1 Message Date
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
yezengruan
01c7174a9f spec: Update release version with !273
fix some IO hang bugs

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit e8aae2239ba7269ffa38ebf99c2dd01d39a016b6)
2022-04-09 15:28:46 +08:00
Jinhua Cao
e6b080ac1b qemu-img create: cache paramter only use for reg file image
The paramter 'cache' is invalid for host device(/dev/xxx). If
'qemu-img create' operator performed on host device, the host
device not support 'cache' would result 'qemu-img create excute'
failed.

Signed-off-by: Jinhua Cao <caojinhua1@huawei.com>
2022-03-25 09:42:57 +08:00
Yan Wang
513c8cd566 spec: add hw-usb-host rpm package
Signed-off-by: Yan Wang <wangyan122@huawei.com>
2022-03-24 21:27:17 +08:00
yezengruan
62e9a21b5b spec: Update release version with !266 and support sw64
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 17:33:56 +08:00
yezengruan
518ee8d115 add patch for sw64 support
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 17:33:24 +08:00
jiang-dawei15
d152a162e9 cflages: add cflags '-ftls-model=initial-exec'
This option changes the thread local storage (TLS) model. Thread-local storage
is a mechanism by which variables are allocated in a way that causes one instance
of the variable per extant thread.

i.global-dynamic

Generates a generic TLS code. The code can be used everywhere and the code can access
variables defined anywhere else. This setting causes the largest size code to be generated
and uses the most run time to produce.

ii.local-dynamic

Generates an optimized TLS code. To use this setting, the thread-local variables must be
defined in the same object in which they are referenced.

iii.initial-exec

Generates a restrictive, optimized TLS code. To use this setting, the thread-local variables
accessed must be defined in one of the modules available to the program.

iv.local-exec

Generates the most restrictive TLS code. To use this setting, the thread-local variables
must be defined in the executable.

Optimize qemu cflags with '-ftls-model=initial-exec' which means we use initial-exec
mode.
2022-03-18 17:33:11 +08:00
yezengruan
c14470a869 spec: Update release version with !265
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-15 16:08:23 +08:00
jiang-dawei15
5a7b38619c qemu.spec: add "--enable-debug" parameter to configure.
(cherry picked from commit 64b9ff905211b4a6f318d77e6183bac89873cf59)
2022-03-14 19:40:10 +08:00
Chen Qun
807c25274e spec: Update release version with !263 !264
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2022-03-03 14:25:39 +08:00
Chen Qun
8f0f7098a7 spec: Update patch and changelog with !264 tools/virtiofsd: Add rseq syscall to the seccomp allowlist !264
tools/virtiofsd: Add rseq syscall to the seccomp allowlist

Signed-off-by: Chen Qun<kuhn.chenqun@huawei.com>
2022-03-03 14:25:37 +08:00
Chen Qun
662474b374 spec: Update patch and changelog with !263 【6.2.0】修改object_unref导致的abort问题 !263
scsi-bus: fix unmatched object_unref()

Signed-off-by: Chen Qun<kuhn.chenqun@huawei.com>
2022-03-03 14:25:34 +08:00
Yan Wang
d7f970e80c spec: Update release version with !220
increase release version by one

Signed-off-by: Yan Wang <wangyan122@huawei.com>
2022-02-26 14:35:07 +08:00
Yan Wang
94fd281733 spec: Update patch and changelog with !220
pl011-reset-read-FIFO-when-UARTTIMSC-0-UARTICR-0xfff.patch
qcow2-fix-memory-leak-in-qcow2_read_extensions.patch
scsi-disk-define-props-in-scsi_block_disk-to-avoid-m.patch
pcie-Add-pcie-root-port-fast-plug-unplug-feature.patch
pcie-Compat-with-devices-which-do-not-support-Link-W.patch

Signed-off-by: Yan Wang <wangyan122@huawei.com>
2022-02-26 14:34:32 +08:00
Chen Qun
1ce6e87ae1 spec: Update release version with !257
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
(cherry picked from commit 185b204119d6955d15deaba8f441880eacfa3f8f)
2022-02-23 12:55:32 +08:00
Chen Qun
d4adf19f8c spec: Update patch and changelog with !257 add vcpu hotplug feature from 4.1 to 6.2 !257
acpi/madt: Factor out the building of MADT GICC struct
hw/arm/virt: Assign virt_madt_cpu_entry to acpi_ged madt_cpu hook
arm/virt/acpi: Factor out CPPC building from DSDT CPU aml
acpi/cpu: Prepare build_cpus_aml for arm virt
acpi/ged: Extend ACPI GED to support CPU hotplug
arm/cpu: assign arm_get_arch_id handler to get_arch_id hook
tests/acpi/bios-tables-test: Allow changes to virt/DSDT file
arm/virt: Attach ACPI CPU hotplug support to virt
tests/acpi/bios-table-test: Update expected virt/DSDT file
arm/virt: Add CPU hotplug framework
arm/virt: Add CPU topology support
test/numa: Adjust aarch64 numa test
hw/arm/virt: Factor out some CPU init codes to pre_plug hook
hw/arm/boot: Add manually register and trigger of CPU reset
arm/virt/gic: Construct irqs connection from create_gic
intc/gicv3_common: Factor out arm_gicv3_common_cpu_realize
intc/gicv3_cpuif: Factor out gicv3_init_one_cpuif
intc/kvm_gicv3: Factor out kvm_arm_gicv3_cpu_realize
hw/intc/gicv3: Add CPU hotplug realize hook
accel/kvm: Add pre-park vCPU support
intc/gicv3: Add pre-sizing capability to GICv3
acpi/madt: Add pre-sizing capability to MADT GICC struct
arm/virt: Add cpu_hotplug_enabled field
arm/virt/acpi: Extend cpufreq to support max_cpus
arm/virt: Pre-sizing MADT-GICC GICv3 and Pre-park KVM vCPU
arm/virt: Start up CPU hot-plug and cold-plug

Signed-off-by: Chen Qun<kuhn.chenqun@huawei.com>
(cherry picked from commit 9390aa07e450024769ceb3bb3ab481af8911a77b)
2022-02-23 12:55:32 +08:00
Chen Qun
f015c41711 spec: Update release version with !258 !259 !260 !261
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2022-02-21 21:27:48 +08:00