167 Commits

Author SHA1 Message Date
Jiabo Feng
46011ccf7e libvirt update to version 6.2.0-65:
- remote: fix double free of migration params on error
- qemu: avoid deadlock in qemuDomainObjStopWorker We are dropping the only reference here so that the event loop thread is going to be exited synchronously. In order to avoid deadlocks we need to unlock the VM so that any handler being called can finish execution and thus even loop thread be finished too.
- virsh: add tmm main command word Add tmm command word into virsh tool to call get tmm memory info API. It makes virsh can use tmm main commmand to show tmm memory info on console. This command requires specific kernel and a kernel driver to make sure its regular function. If runnning environment missing the above reliance, this command will show error result on console.
- libvirt: add get tmm memory info API and libvirtd RPC Add the get tmm memory info API into libvirt-host. Also should add the RPC calls into libvirtd for API calling.
- libvirt: support the virtCCA feature Add cvm parameter into the type of LaunchSecurity which is a optional filed for libvirt xml. Its purpose is to pass the cvm parameter through to qemu. Also this patch support virsh edit to save cvm parameter into libvirt temporary xml.
- qemu_driver: Add calc_mode for dirtyrate statistics
- virsh: Add mode option to domdirtyrate-calc virsh api
- qemu: Generate command line for dirty-ring-size
- qemu: support dirty ring feature
- conf: Turn virDomainDef.kvm_features into a struct
- qemu_validate: Allow kvm hint-dedicated on non-passthrough VMs
- virDomainFeaturesKVMDefParse: Remove tautological "if"
- virDomainFeaturesKVMDefParse: Remove tautological "switch"
- virxml: Add virXMLPropUInt
- virxml: Add virXMLPropInt
- virxml: Add virXMLPropTristateSwitch
- virxml: Add virXMLPropTristateBool
- virDomainFeaturesKVMDefParse: Remove ctxt
- virDomainFeaturesDefParse: Factor out KVM parsing into separate function
- internal.h: Introduce and use VIR_IS_POW2()
- hotpatch: if hotpatch_path not in qemu.conf,the hotpatch doesn't antoload

Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
2024-06-13 11:02:43 +08:00
lixianglai
9a98b0fdb4 Synchronize upstream patches "Use correct tpm device for all non-x86"
Fix the exception of adding TPM devices via virt-manager
by synchronizing upstream patches.

Signed-off-by: lixianglai <lixianglai@loongson.cn>
(cherry picked from commit 7e0d98bb1b1b0719ac595124afbd135781bb4115)
2024-06-13 09:32:26 +08:00
lixianglai
efa8c73d73 Fixed loongarch qxl device not displaying during startup phase
Fixed an issue where qxl devices could not be displayed in bios and grub
stages due to a loongarch architecture string comparison error.

Signed-off-by: lixianglai <lixianglai@loongson.cn>
(cherry picked from commit 3ec9f99b9e3286a298053975ed837c7a81f8bbe2)
2024-06-12 14:43:22 +08:00
jiangdongxu
f9675b3ff7 libvirt update to version 6.2.0-61
- vdpa: Release pci slot address when unplugging vdpa device
- vdpa: return pcieFlags when calculate vdpa passthrough devices.

Signed-off-by: jiangdongxu <jiangdongxu1@huawei.com>
2024-06-12 14:31:50 +08:00
openeuler-ci-bot
1c6ad1d631
!327 fix CVE-2024-4418
From: @jjiacheng 
Reviewed-by: @caozhongwang, @mdsc 
Signed-off-by: @mdsc
2024-05-27 13:09:40 +00:00
jiangjiacheng
585be3cc09 fix CVE-2024-4418
- util: keep track of full GSource object not source ID number
- rpc: mark source returned by virEventGLibAddSocketWatch as unused
- rpc: ensure temporary GSource is removed from client event loop (CVE-2024-4418)
2024-05-27 10:25:49 +08:00
openeuler-ci-bot
95e260166c
!291 fix CVE-2024-1441 CVE-2024-2494 CVE-2024-2496 #I97N53 #I9AH6G #I98Z59
From: @caozhongwang 
Reviewed-by: @mdsc, @jjiacheng 
Signed-off-by: @mdsc
2024-04-10 12:18:30 +00:00
caozhongwang
3037d729e3 fix CVE-2024-1441,CVE-2024-2494,CVE-2024-2496
vish:Fix off-by-one error in udevListInterfacesByStatus (CVE-2024-1441)
remote: check for negative array lengths before allocation (CVE-2024-2494)
interface: fix udev_device_get_sysattr_value return value check (CVE-2024-2496)
2024-04-10 16:49:43 +08:00
openeuler-ci-bot
9a979ec8e1
!277 Add support for the ppc64le platform
From: @jianchunfu 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2024-03-21 03:08:45 +00:00
JianChunfu
e6041d1687 spec: Add support for the ppc64le platform
Add support for the powerpc platform of ppc64le.

Signed-off-by: JianChunfu <chunfu.jian@shingroup.cn>
2024-03-20 10:46:54 +08:00
openeuler-ci-bot
571519df5d
!265 [sync] PR-261: libvirt update to version 6.2.0-60
From: @openeuler-sync-bot 
Reviewed-by: @mdsc 
Signed-off-by: @mdsc
2023-12-05 15:21:41 +00:00
Jiabo Feng
0dd057e3d8 libvirt update to version 6.2.0-60
- vdpa: support vdpa device migrate
- vdpa: support vdpa device hot plug/unplug
- vdpa: Introduce the new device type vdpa to hostdev
- node_device: fix leak of DIR*
- Include vdpa devices in node device list
- lxc: fix lxcContainerMountAllFS() DEREF_BEFORE_CHECK
- qemu: Return perf status that affect next boot  for shutoff domains While we set up perf events for a shutoff domain and check the settings, All of perf events are reported as 'disabled', unless we add --config, This is redundant for a shutoff domain.
- tests: upstream Fixing compiler warning in cputest
- qemu_migration_cookie: Rename ret in qemuDomainExtractTLSSubject
- virrandom: Fix printf format string in virRandomGenerateWWN()
- fix the issue of errors when saving after 'virsh edit'
- Use (un)signed printf specifiers correctly
- admin: fix leak of typed parameters on error
- esx: call freeaddrinfo earlier in esxUtil_ResolveHostname Call freeaddrinfo() as soon as @result is not needed anymore, i.e. right after getnameinfo(); this avoids calling freeaddrinfo() in two branches.
- qemu: Fix incorrect command name in error messages

Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
(cherry picked from commit 52e9a4d1d4018ba4555f5c91dd39c82ec0ec6337)
2023-12-05 22:30:45 +08:00
openeuler-ci-bot
fb523852f5
!250 [sync] PR-249: libvirt update to version 6.2.0-59
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-08-10 01:03:10 +00:00
Jiabo Feng
244f16460d libvirt update to version 6.2.0-59
- virnetsshsession: Adapt to change libssh2 API
   - selinux: Reflect context_str() type change
   - Revert "selinux: adapt to libselinux"
   - selinux: adapt to libselinux
   - fix error in printf format string

Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
(cherry picked from commit 3c976f792656d514ef5ba649989144148b47f440)
2023-08-10 08:28:03 +08:00
openeuler-ci-bot
51bd0af96d
!245 [sync] PR-221: 增加riscv构建支持
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-06-08 03:49:46 +00:00
laokz
8d437b9655 add riscv64 support
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
(cherry picked from commit 33f5368afda77a52c72a616bab4ebd8ea7a95460)
2023-06-03 11:49:15 +08:00
openeuler-ci-bot
1bca462e0b
!242 [sync] PR-240: cpu_topo: support for cpu_topo "clusters”
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-05-23 08:30:46 +00:00
jokenzhang
d3fcb66158 cpu_topo: support for cpu_topo "clusters”
Kunpeng920 support a new structure "cluster" in cpu topology.
Support it in libvirt.

Signed-off-by: zhangxinhao <zhangxinhao1@huawei.com>
(cherry picked from commit 0d65fed7bbadc46a7036c37e8aaaa96a7b3a7e1f)
2023-05-23 15:04:03 +08:00
openeuler-ci-bot
0b5d5a4e25
!237 [sync] PR-235: libvirt update to version 6.2.0-56
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-05-22 07:12:43 +00:00
Fei Xu
41a3cad037 libvirt update to version 6.2.0-56
- nodedev: ignore EINVAL from libudev in udevEventHandleThread
- qemu: tpm: Pass --logfile to swtpm_setup for incoming migration

Signed-off-by: Fei Xu <xufei30@huawei.com>
(cherry picked from commit 5ca30552d7286379982b1a3c3273fa82c89ff3b4)
2023-05-22 11:47:12 +08:00
openeuler-ci-bot
07954cb823
!234 [sync] PR-231: 修复驱动程序清理过程中的潜在崩溃
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-04-26 01:51:34 +00:00
tianwei
7668f6d651 Fix potential crash during driver cleanup
(cherry picked from commit 250f17e80782b144ef7b485bac8ae2ee94651e71)
2023-04-26 09:18:46 +08:00
openeuler-ci-bot
d9bd88bfcf
!229 [sync] PR-226: llvm平行宇宙计划:修复使用clang构建发现的编译警告
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-04-13 08:11:13 +00:00
Chenxi Mao
25e0129b9d Fix build error if compiler switch to clang
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
(cherry picked from commit 03631358656410a1380fefc8541a21cdc3bee050)
2023-04-13 11:18:43 +08:00
openeuler-ci-bot
e82be57553
!224 [sync] PR-222: 修复libvirt.spec中loongarch架构虚拟机的固件加载路径
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-03-30 13:31:45 +00:00
zhaotianrui
d4bd842011 bugfix: correct the firmware path of loongarch virt machine
Signed-off-by: zhaotianrui <zhaotianrui@loongson.cn>
(cherry picked from commit f6976434f5f36d973e74da41a87246092368c0ae)
2023-03-30 20:28:58 +08:00
openeuler-ci-bot
9ac95b2290
!219 [sync] PR-217: libvirt update to version 6.2.0-52
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-03-29 06:45:08 +00:00
zhaotianrui
bfd5f2ad05 libvirt update to version 6.2.0-52
1.bugfix: move qemuDomainDiskBlockIoTunelsSupported to currect place
2.Add loongarch support

Signed-off-by: zhaotianrui <zhaotianrui@loongson.cn>
Signed-off-by: mayunlong<mayunlong6@huawei.com>
(cherry picked from commit afda7f3dc8b6030f2d6092663f667789207ab2d4)
2023-03-29 14:07:58 +08:00
openeuler-ci-bot
b85fc00206
!210 [sync] PR-209: libvirt update to version 6.2.0-51
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-02-15 02:36:49 +00:00
mayunlong
28a5f5f376 libvirt update to version 6.2.0-51
live_migrate: virsh migrate command supports the zstd compression
algorithm
glibcompat: Provide implementation for G_GNUC_NO_INLINE

Signed-off-by:mayunlong<mayunlong6@huawei.com>
(cherry picked from commit c952820128195c96f548160bd830e10ec8a9c9be)
2023-02-15 09:55:37 +08:00
openeuler-ci-bot
e28e3556c2
!206 [sync] PR-203: Backport patches from upstream
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2023-01-04 08:30:21 +00:00
jiang jiacheng
ebe442908e Backport patches from upstream
Signed-off-by: jiang jiacheng <jiangjiacheng@huawei.com>
(cherry picked from commit adddc503d8ef3686451b40f914aebea48c78dcec)
2023-01-04 15:26:51 +08:00
openeuler-ci-bot
8aa0c096df
!200 [sync] PR-199: libvirt增加迁移绑核功能
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-12-17 07:13:22 +00:00
zhengchuan
4ecc41b061 add function of set migration thread affinity during migration
Signed-off-by:zhengchuan<zhengchuan@huawei.com>
(cherry picked from commit f0dec67048e57ae9b1d43e44ce5703f736f81303)
2022-12-17 14:11:53 +08:00
openeuler-ci-bot
d215aaeb0c
!196 [sync] PR-193: update the Chinese translation of nwfilter
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-12-12 01:12:51 +00:00
yezengruan
1c9e26d466 update the Chinese translation of nwfilter
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 7b331ac6eba1e451ea97bf34a34422d8aa6b2ba2)
2022-12-12 08:53:33 +08:00
openeuler-ci-bot
665983b4fa
!190 [sync] PR-189: libvirt update to version 6.2.0-47
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-12-09 11:41:39 +00:00
yezengruan
234d30f118 libvirt update to version 6.2.0-47
- sync some bugfix patches from upstream
- support vhostuser disk
- libvirt: support dirtyrate (calc-dirty-rate, dirtyrate-param.mode)

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 6291e25165891a96b7cfcffb7bd612c675810b95)
2022-12-09 19:23:16 +08:00
openeuler-ci-bot
fd9635b5bf
!187 [sync] PR-185: sync some bugfix patches from upstream
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-11-29 10:16:00 +00:00
yezengruan
538b9546ca sync some bugfix patches from upstream
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit bab57abd85ef9c38dfa731bb6ae1cdfe9a9b63f4)
2022-11-29 16:13:36 +08:00
openeuler-ci-bot
99f7233e93
!180 docs: Fix template matching in page.xsl
From: @yezengruan 
Reviewed-by: @ooorz 
Signed-off-by: @ooorz
2022-11-11 03:48:27 +00:00
yezengruan
2d02e27829 docs: Fix template matching in page.xsl
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-11-11 10:20:00 +08:00
openeuler-ci-bot
903c33591a
!179 [sync] PR-177: libvirt: support migration dirtyrate
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-11-04 02:53:01 +00:00
yezengruan
c7e6f2d845 libvirt: support migration dirtyrate
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 81e3aa297594fd6ffad5326a2b899e4321f36a61)
2022-11-04 10:02:22 +08:00
openeuler-ci-bot
15561b48ce
!175 [sync] PR-174: Synchronize upstream patches
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-10-12 02:23:32 +00:00
wengyu1
0c7ba17fb9 libvirt: Synchronize upstream patches according to issue I5OLYY
(cherry picked from commit 8240a6481c340a34bf6e0d851fe1c4e5e060f352)
2022-10-12 09:03:56 +08:00
openeuler-ci-bot
dee5aeb78c
!170 [sync] PR-164: qemu: Add missing lock in qemuProcessHandleMonitorEOF (CVE-2021-3975)
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-08-25 10:37:58 +00:00
yezengruan
d42744f846 fix CVE-2021-3975 (openeuler !76)
qemu: Add missing lock in qemuProcessHandleMonitorEOF (CVE-2021-3975)

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 916bc9fda6d48bc8d917be0aea23ac535daf3c8a)
2022-08-25 17:32:15 +08:00
openeuler-ci-bot
0bb3f5eb1c
!160 [sync] PR-158: apibuild: Fix self.waring method call
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-08-12 01:33:46 +00:00
yezengruan
0b2909e81b apibuild: Fix self.waring method call
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit a840bbd208b8d2eeec4632f1fbb4ad16f5a12973)
2022-08-11 20:33:56 +08:00