79 Commits

Author SHA1 Message Date
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
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
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
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
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
tianwei
7668f6d651 Fix potential crash during driver cleanup
(cherry picked from commit 250f17e80782b144ef7b485bac8ae2ee94651e71)
2023-04-26 09:18:46 +08: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
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
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
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
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
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
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
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
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
yezengruan
2d02e27829 docs: Fix template matching in page.xsl
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-11-11 10:20:00 +08: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
wengyu1
0c7ba17fb9 libvirt: Synchronize upstream patches according to issue I5OLYY
(cherry picked from commit 8240a6481c340a34bf6e0d851fe1c4e5e060f352)
2022-10-12 09:03:56 +08: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
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
yezengruan
9f8f14e5ee 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>
(cherry picked from commit abc01259ad25cf3e2647f6aae6e4e8979a4aa9f8)
2022-06-20 17:23:37 +08:00
yezengruan
bb5d6c30ec update patch with openeuler !62!63
sw_64: Add sw64 architecture support
src: workaround warning triggered in glib 2.69

(cherry picked from commit 3490d0f6297a365428344fc791e6369de2717a8c)
2022-06-13 15:27:27 +08:00
yezengruan
bfc40e8201 update some inconsistent patches
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 43c328da8048150ded2d24aed6b10096ff75ceff)
2022-05-11 17:14:06 +08:00
yezengruan
e91dd3a50c update the format of changelog
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 0af0122a56a58b5e2761526389f076133b67f837)
2022-05-05 15:32:46 +08:00
yezengruan
cc7a0d1060 update patch with openeuler !59
apparmor: Permit new capabilities required by libvirtd

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-24 16:27:21 +08:00
yezengruan
da25da87c4 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>
2022-03-24 14:55:10 +08:00
yezengruan
e09a8a5007 sync from 22.03 for dtrace
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 20:37:35 +08:00
yezengruan
eec834afa4 update patch with openeuler !57
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-12 16:05:18 +08:00
yezengruan
ed4d0233bc update patch with openeuler !55
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-11 20:40:18 +08:00
imxcc
6834c2d11a update patch with openeuler !54
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-02-22 00:19:24 +08:00
imxcc
569b732a2a Update patch with openeuler !53
hotpatch:virsh support autoload mode

Signed-off-by: imxcc <xingchaochao@huawei.com>
(cherry picked from commit a208cbfa480855e6c2ed5922588f293938f93cf9)
2022-02-12 20:23:48 +08:00
imxcc
d3cec4fede 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-01-29 17:21:18 +08:00
imxcc
6aa65dff38 tests: disabale storage tests
The storagetest in obs cannot be, and related tests are temporarily
disabled

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-01-14 14:18:19 +08:00
imxcc
362c27d4ba backport: fix rst2html and ASN1 compiler failure
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-01-12 20:06:59 +08:00
Chen Qun
3c82da0471 spec: Update release version with !44 !45
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2021-12-06 16:28:37 +08:00
Chen Qun
70b0d58f55 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>
2021-12-06 16:28:27 +08:00
Chen Qun
81d7397068 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>
2021-12-06 16:28:24 +08:00
imxcc
3ad5fb8a7b fix cve-2021-3667 cve-2021-3631
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-09-26 16:33:22 +08:00
Chen Qun
c79487f070 spec: Update release version with !38
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
(cherry picked from commit afd6dce36b5ee23ec4eb9cd91a51a8148aeeb19e)
2021-09-24 14:48:50 +08:00
Chen Qun
069d53def0 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>
(cherry picked from commit 03afa02c3b7da5b4b6ab86a4dc48af4b1fb90d56)
2021-09-24 14:48:50 +08:00
imxcc
1802692fb3 virDevMapperGetTargets: Don't ignore EBADF
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-09-14 22:34:50 +08:00
imxcc
fbaeef0a4a Modify some different patch files
Signed-off-by: imxcc <xingchaochao@huawei.com>
2021-09-14 22:20:24 +08:00
heyitao
41ba3b8ed0 Handle kernel without device-mapper support
Signed-off-by: heyitao <heyitao@uniontech.com>
(cherry picked from commit 8f54669cbdaa2e8fd2107c606ee94f8845c1f608)
2021-09-14 09:09:49 +08: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
Chen Qun
970f1f9ae0 spec: Update patch and changelog with !26 libvirt/conf: Set default values of retry fileds !26
libvirt/conf: Set default values of retry fileds

Signed-off-by: Jiahui Cen <cenjiahui@huawei.com>
2021-03-18 20:10:45 +08:00