80 Commits

Author SHA1 Message Date
mayunlong
79f2e60eb9 nodedev: delete mdev
mdev is deleted because it has no application scenario.

Signed-off-by: mayunlong <mayunlong6@huawei.com>
2024-03-27 06:43:26 +08:00
MaYunlong
82a74e8298 Update to 9.10.0 release, Initial package for openEuler.
(cherry picked from commit ec5583aea2c0bdf69fb51c5056c2cad677f324a8)
2024-03-20 08:57:23 +08:00
Jiabo Feng
52e9a4d1d4 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>
2023-12-05 21:06:20 +08:00
Jiabo Feng
746410eb7a 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:07 +08:00
laokz
33f5368afd add riscv64 support
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
2023-05-23 18:33:44 +08:00
jokenzhang
0d65fed7bb 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>
2023-05-23 09:38:24 +08:00
Fei Xu
5ca30552d7 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>
2023-05-21 20:44:06 +08:00
tianwei
bdfe28aafd Fix potential crash during driver cleanup
(cherry picked from commit 250f17e80782b144ef7b485bac8ae2ee94651e71)
2023-04-25 22:14:07 +08:00
Chenxi Mao
0363135865 Fix build error if compiler switch to clang
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2023-04-11 15:43:43 +08:00
zhaotianrui
f6976434f5 bugfix: correct the firmware path of loongarch virt machine
Signed-off-by: zhaotianrui <zhaotianrui@loongson.cn>
2023-03-30 19:34:25 +08:00
zhaotianrui
afda7f3dc8 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>
2023-03-29 10:54:24 +08:00
mayunlong
c952820128 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>
2023-02-15 09:10:27 +08:00
jiang jiacheng
adddc503d8 Backport patches from upstream
Signed-off-by: jiang jiacheng <jiangjiacheng@huawei.com>
2023-01-04 12:02:07 +08:00
zhengchuan
f0dec67048 add function of set migration thread affinity during migration
Signed-off-by:zhengchuan<zhengchuan@huawei.com>
2022-12-17 11:03:35 +08:00
yezengruan
7b331ac6eb update the Chinese translation of nwfilter
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-12-10 15:17:36 +08:00
yezengruan
6291e25165 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>
2022-12-06 20:57:09 +08:00
yezengruan
bab57abd85 sync some bugfix patches from upstream
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-11-25 19:41:00 +08:00
yezengruan
950d95bd69 docs: Fix template matching in page.xsl
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 2d02e27829e0f2d17df0cb97b8603fe04b343f0e)
2022-11-11 11:50:24 +08:00
yezengruan
81e3aa2975 libvirt: support migration dirtyrate
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-11-03 20:05:39 +08:00
wengyu1
8240a6481c libvirt: Synchronize upstream patches according to issue I5OLYY 2022-10-11 21:50:40 +08:00
yezengruan
916bc9fda6 fix CVE-2021-3975 (openeuler !76)
qemu: Add missing lock in qemuProcessHandleMonitorEOF (CVE-2021-3975)

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-08-25 16:27:50 +08:00
yezengruan
a840bbd208 apibuild: Fix self.waring method call
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-08-11 19:26:42 +08:00
yezengruan
abc01259ad fix CVE-2022-0897 (openeuler !66)
nwfilter: fix crash when counting number of network filters (CVE-2022-0897)

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-06-20 09:42:33 +08:00
yezengruan
3490d0f629 update patch with openeuler !62!63
sw_64: Add sw64 architecture support
src: workaround warning triggered in glib 2.69
2022-06-13 14:54:44 +08:00
yezengruan
43c328da80 update some inconsistent patches
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-05-10 20:15:17 +08:00
yezengruan
0af0122a56 update the format of changelog
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-04-27 19:49:16 +08:00
yezengruan
2426dfd595 update patch with openeuler !59
apparmor: Permit new capabilities required by libvirtd

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit cc7a0d106087d7f1e1b09b4100ebd0051a9b2186)
(cherry picked from commit 36fc806da3aedf0f608d343d803efe8ed9d21905)
2022-03-30 14:11:38 +08:00
yezengruan
ab887478b0 update patch with openeuler !58
qemuMonitorJSONSetMigrationParams: Take double pointer for @params
qemuMonitorJSONAddObject: Take double pointer for @props
:qemuMonitorJSONMakeCommandInternal: Clear @arguments when stolen
qemuMonitorAddObject: Fix semantics of @alias
qemuMonitorAddObject: Refactor cleanup
util: json: Replace virJSONValueObjectSteal by virJSONValueObjectRemoveKey
qemu: command: Generate commandline of 'masterKey0' secret via JSON
qemu: command: Generate commandline of 'sev0' sev-guest object via JSON
qemu: command: Generate commandline of iothread objects JSON
qemu: capabilities: Introduce QEMU_CAPS_OBJECT_QAPIFIED
qemu: monitor: Make wrapping of 'props' of 'object-add' optional
qemuMonitorCreateObjectPropsWrap: Open-code in qemuBuildMemoryBackendProps
qemu: monitor: Don't add 'props' wrapper if qemu has QEMU_CAPS_OBJECT_QAPIFIED
qemu: command: Use JSON for QAPIfied -object directly
tests: qemuxml2argv: Validate generation of JSON props for object-add
qemu: capabilities: Enable detection of QEMU_CAPS_OBJECT_QAPIFIED

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit da25da87c49d1b576b48fd58614ff43833a04f37)
2022-03-24 16:20:58 +08:00
yezengruan
d5507264fd update patch with openeuler !57
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 20:55:23 +08:00
yezengruan
4d80e9430b update patch with openeuler !55
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 20:55:13 +08:00
imxcc
d5dde37654 update patch with openeuler !54
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-03-18 20:55:01 +08:00
imxcc
3b3e670760 Update patch with openeuler !53
hotpatch:virsh support autoload mode

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-03-18 20:54:50 +08:00
imxcc
8125920b1b Revert "tests: disabale storage tests"
glusterfs bug about "tcmalloc" has fixed, details in
https://gitee.com/src-openeuler/gluterfs/pulls/26

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-03-18 20:54:44 +08:00
imxcc
ca082a53da tests: disabale storage tests
The storagetest in obs cannot be, and related tests are temporarily
disabled

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-03-18 20:54:38 +08:00
imxcc
823729a5f2 backport: fix rst2html and ASN1 compiler failure
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-03-18 20:54:23 +08:00
Chen Qun
49be1710c5 spec: Update release version with !44 !45
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2022-03-18 20:54:15 +08:00
Chen Qun
90cd8115bb spec: Update patch and changelog with !45 hotpatch: implement hotpatch virsh api and add logs for virDomainHotpatchManage !45
hotpatch: implement hotpatch virsh api
hotpatch: check vm id and pid before using hotpatch api
domain: add logs for virDomainHotpatchManage

Signed-off-by: AlexChen <alex.chen@huawei.com>
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: Hao Wang <wanghao232@huawei.com>
2022-03-18 20:54:02 +08:00
Chen Qun
b2c18c4b1a spec: Update patch and changelog with !44 hotpatch: introduce hotpatch async job flag and Implement qemuDomainHotpatchManage !44
Hotpatch: introduce DomainHotpatchManage API
hotpatch: Implement qemuDomainHotpatchManage
hotpatch: introduce hotpatch async job flag

Signed-off-by: AlexChen <alex.chen@huawei.com>
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: Hao Wang <wanghao232@huawei.com>
2022-03-18 20:53:19 +08:00
imxcc
389e114ac8 fix cve-2021-3667 cve-2021-3631
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-09-26 16:32:28 +08:00
Chen Qun
afd6dce36b spec: Update release version with !38
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2021-09-24 11:28:33 +08:00
Chen Qun
03afa02c3b spec: Update patch and changelog with !38 conf/domain_conf: pin the retry_interval and retry_timeout parameters to xml !38
conf/domain_conf: pin the retry_interval and retry_timeout parameters to xml

Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
2021-09-24 11:28:31 +08:00
imxcc
8ac929cbee virDevMapperGetTargets: Don't ignore EBADF
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-09-14 22:34:03 +08:00
imxcc
e4337e3bb0 Modify some different patch files
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-09-14 22:25:39 +08:00
heyitao
8f54669cbd Handle kernel without device-mapper support
Signed-off-by: heyitao <heyitao@uniontech.com>
2021-09-02 03:20:31 -04:00
chenyanpanHW
f08580e7a4
delete -S git_am from %autosetup, and delete BuildRequires git 2021-07-30 23:04:34 +08:00
Jingyi Wang
909e0586cd Add new CPU model Cooperlake
Signed-off-by: Jingyi Wang <wangjingyi11@huawei.com>
2021-07-27 15:19:45 +08:00
Chen Qun
24ad023f15 spec: Update release version with !30
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2021-07-13 21:28:00 +08:00
Chen Qun
e51f6bf7a4 spec: Update patch and changelog with !30 tests: fix stat mocking with Fedora rawhide(for glibc 2.33) !30
tests: fix stat mocking with Fedora rawhide

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-07-13 21:28:00 +08:00
Jiajie Li
fd0efbf8ec libvirt.spec: remove dtrace for aarch64 OS
Signed-off-by: Jiajie Li <lijiajie11@huawei.com>
2021-03-19 20:17:44 +08:00
Chen Qun
d9f0a0d97f spec: Update release version with !26
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2021-03-18 20:10:46 +08:00