From d3a98ced0234f467e8a210c21511b02919414021cba690bf0b3d84c34b25495e Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Mon, 9 May 2022 16:16:57 +0000 Subject: [PATCH] Accepting request 975882 from home:jfehlig:branches:Virtualization - Update to libvirt 8.3.0 - Many incremental improvements and bug fixes, see https://libvirt.org/news.html#v8-3-0-2022-05-02 OBS-URL: https://build.opensuse.org/request/show/975882 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=929 --- ...stats-functions-from-the-qemu-driver.patch | 44 +++++++------- ...ibxl-add-support-for-BlockResize-API.patch | 16 ++--- ...n-pkttyagent-when-stdin-is-not-a-tty.patch | 6 +- ...c-implement-connectGetAllDomainStats.patch | 10 ++-- libvirt-8.2.0.tar.xz | 3 - libvirt-8.2.0.tar.xz.asc | 16 ----- libvirt-8.3.0.tar.xz | 3 + libvirt-8.3.0.tar.xz.asc | 16 +++++ libvirt-power8-models.patch | 6 +- libvirt-suse-netcontrol.patch | 50 ++++++++-------- libvirt.changes | 7 +++ libvirt.spec | 2 +- libxl-dom-reset.patch | 10 ++-- libxl-set-cach-mode.patch | 6 +- libxl-set-migration-constraints.patch | 60 ++++++++++--------- libxl-support-block-script.patch | 6 +- lxc-wait-after-eth-del.patch | 24 ++++---- ...e-dhcp-authoritative-on-static-netwo.patch | 14 ++--- ppc64le-canonical-name.patch | 6 +- qemu-apparmor-screenshot.patch | 8 +-- suse-libvirt-guests-service.patch | 6 +- suse-libvirtd-disable-tls.patch | 18 +++--- suse-libxl-disable-autoballoon.patch | 18 +++--- suse-qemu-conf.patch | 56 ++++++++--------- suse-qemu-ovmf-paths.patch | 54 ++++++++--------- suse-xen-ovmf-paths.patch | 6 +- virt-create-rootfs.patch | 22 +++---- 27 files changed, 253 insertions(+), 240 deletions(-) delete mode 100644 libvirt-8.2.0.tar.xz delete mode 100644 libvirt-8.2.0.tar.xz.asc create mode 100644 libvirt-8.3.0.tar.xz create mode 100644 libvirt-8.3.0.tar.xz.asc diff --git a/0001-Extract-stats-functions-from-the-qemu-driver.patch b/0001-Extract-stats-functions-from-the-qemu-driver.patch index aa07a8a..e98f5f4 100644 --- a/0001-Extract-stats-functions-from-the-qemu-driver.patch +++ b/0001-Extract-stats-functions-from-the-qemu-driver.patch @@ -18,10 +18,10 @@ them. create mode 100644 src/conf/domain_stats.c create mode 100644 src/conf/domain_stats.h -Index: libvirt-8.2.0/src/conf/domain_stats.c +Index: libvirt-8.3.0/src/conf/domain_stats.c =================================================================== --- /dev/null -+++ libvirt-8.2.0/src/conf/domain_stats.c ++++ libvirt-8.3.0/src/conf/domain_stats.c @@ -0,0 +1,117 @@ +/* + * domain_stats.c: domain stats extraction helpers @@ -140,10 +140,10 @@ Index: libvirt-8.2.0/src/conf/domain_stats.c +} + +#undef STATS_ADD_NET_PARAM -Index: libvirt-8.2.0/src/conf/domain_stats.h +Index: libvirt-8.3.0/src/conf/domain_stats.h =================================================================== --- /dev/null -+++ libvirt-8.2.0/src/conf/domain_stats.h ++++ libvirt-8.3.0/src/conf/domain_stats.h @@ -0,0 +1,60 @@ +/* + * domain_stats.h: domain stats extraction helpers @@ -205,10 +205,10 @@ Index: libvirt-8.2.0/src/conf/domain_stats.h + virTypedParamList *params); + +#endif /* __DOMAIN_STATS_H */ -Index: libvirt-8.2.0/src/libvirt_private.syms +Index: libvirt-8.3.0/src/libvirt_private.syms =================================================================== ---- libvirt-8.2.0.orig/src/libvirt_private.syms -+++ libvirt-8.2.0/src/libvirt_private.syms +--- libvirt-8.3.0.orig/src/libvirt_private.syms ++++ libvirt-8.3.0/src/libvirt_private.syms @@ -774,6 +774,11 @@ virDomainConfNWFilterTeardown; virDomainConfVMNWFilterTeardown; @@ -229,10 +229,10 @@ Index: libvirt-8.2.0/src/libvirt_private.syms virCgroupHasController; virCgroupHasEmptyTasks; virCgroupKillPainfully; -Index: libvirt-8.2.0/src/qemu/qemu_driver.c +Index: libvirt-8.3.0/src/qemu/qemu_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/qemu/qemu_driver.c -+++ libvirt-8.2.0/src/qemu/qemu_driver.c +--- libvirt-8.3.0.orig/src/qemu/qemu_driver.c ++++ libvirt-8.3.0/src/qemu/qemu_driver.c @@ -68,6 +68,7 @@ #include "virarptable.h" #include "viruuid.h" @@ -241,7 +241,7 @@ Index: libvirt-8.2.0/src/qemu/qemu_driver.c #include "domain_audit.h" #include "domain_cgroup.h" #include "domain_driver.h" -@@ -17444,13 +17445,7 @@ qemuDomainGetStatsState(virQEMUDriver *d +@@ -17442,13 +17443,7 @@ qemuDomainGetStatsState(virQEMUDriver *d virTypedParamList *params, unsigned int privflags G_GNUC_UNUSED) { @@ -256,7 +256,7 @@ Index: libvirt-8.2.0/src/qemu/qemu_driver.c } -@@ -17742,25 +17737,11 @@ qemuDomainGetStatsCpuCgroup(virDomainObj +@@ -17740,25 +17735,11 @@ qemuDomainGetStatsCpuCgroup(virDomainObj virTypedParamList *params) { qemuDomainObjPrivate *priv = dom->privateData; @@ -283,7 +283,7 @@ Index: libvirt-8.2.0/src/qemu/qemu_driver.c } static int -@@ -17953,76 +17934,15 @@ qemuDomainGetStatsVcpu(virQEMUDriver *dr +@@ -17951,76 +17932,15 @@ qemuDomainGetStatsVcpu(virQEMUDriver *dr return ret; } @@ -361,10 +361,10 @@ Index: libvirt-8.2.0/src/qemu/qemu_driver.c /* refresh information by opening images on the disk */ static int -Index: libvirt-8.2.0/src/util/vircgroup.c +Index: libvirt-8.3.0/src/util/vircgroup.c =================================================================== ---- libvirt-8.2.0.orig/src/util/vircgroup.c -+++ libvirt-8.2.0/src/util/vircgroup.c +--- libvirt-8.3.0.orig/src/util/vircgroup.c ++++ libvirt-8.3.0/src/util/vircgroup.c @@ -3022,6 +3022,31 @@ virCgroupGetInode(virCgroup *cgroup) return st.st_ino; } @@ -412,10 +412,10 @@ Index: libvirt-8.2.0/src/util/vircgroup.c int virCgroupNewPartition(const char *path G_GNUC_UNUSED, bool create G_GNUC_UNUSED, -Index: libvirt-8.2.0/src/util/vircgroup.h +Index: libvirt-8.3.0/src/util/vircgroup.h =================================================================== ---- libvirt-8.2.0.orig/src/util/vircgroup.h -+++ libvirt-8.2.0/src/util/vircgroup.h +--- libvirt-8.3.0.orig/src/util/vircgroup.h ++++ libvirt-8.3.0/src/util/vircgroup.h @@ -23,6 +23,7 @@ #include "virbitmap.h" @@ -432,10 +432,10 @@ Index: libvirt-8.2.0/src/util/vircgroup.h + virTypedParamList *params); + int virCgroupGetInode(virCgroup *cgroup); -Index: libvirt-8.2.0/src/conf/meson.build +Index: libvirt-8.3.0/src/conf/meson.build =================================================================== ---- libvirt-8.2.0.orig/src/conf/meson.build -+++ libvirt-8.2.0/src/conf/meson.build +--- libvirt-8.3.0.orig/src/conf/meson.build ++++ libvirt-8.3.0/src/conf/meson.build @@ -15,6 +15,7 @@ domain_conf_sources = [ 'domain_conf.c', 'domain_nwfilter.c', diff --git a/0001-libxl-add-support-for-BlockResize-API.patch b/0001-libxl-add-support-for-BlockResize-API.patch index b7de1f0..d4453b8 100644 --- a/0001-libxl-add-support-for-BlockResize-API.patch +++ b/0001-libxl-add-support-for-BlockResize-API.patch @@ -19,11 +19,11 @@ reworking this patch and submitting it to upstream libvirt. src/libxl/libxl_driver.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) -Index: libvirt-8.2.0/src/libxl/libxl_driver.c +Index: libvirt-8.3.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_driver.c -+++ libvirt-8.2.0/src/libxl/libxl_driver.c -@@ -5264,6 +5264,95 @@ libxlDomainMemoryStats(virDomainPtr dom, +--- libvirt-8.3.0.orig/src/libxl/libxl_driver.c ++++ libvirt-8.3.0/src/libxl/libxl_driver.c +@@ -5259,6 +5259,95 @@ libxlDomainMemoryStats(virDomainPtr dom, #undef LIBXL_SET_MEMSTAT @@ -119,7 +119,7 @@ Index: libvirt-8.2.0/src/libxl/libxl_driver.c static int libxlDomainGetJobInfo(virDomainPtr dom, virDomainJobInfoPtr info) -@@ -6586,6 +6675,7 @@ static virHypervisorDriver libxlHypervis +@@ -6585,6 +6674,7 @@ static virHypervisorDriver libxlHypervis .domainGetNumaParameters = libxlDomainGetNumaParameters, /* 1.1.1 */ .nodeGetFreeMemory = libxlNodeGetFreeMemory, /* 0.9.0 */ .nodeGetCellsFreeMemory = libxlNodeGetCellsFreeMemory, /* 1.1.1 */ @@ -127,10 +127,10 @@ Index: libvirt-8.2.0/src/libxl/libxl_driver.c .domainGetJobInfo = libxlDomainGetJobInfo, /* 1.3.1 */ .domainGetJobStats = libxlDomainGetJobStats, /* 1.3.1 */ .domainMemoryStats = libxlDomainMemoryStats, /* 1.3.0 */ -Index: libvirt-8.2.0/src/libxl/libxl_api_wrapper.h +Index: libvirt-8.3.0/src/libxl/libxl_api_wrapper.h =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_api_wrapper.h -+++ libvirt-8.2.0/src/libxl/libxl_api_wrapper.h +--- libvirt-8.3.0.orig/src/libxl/libxl_api_wrapper.h ++++ libvirt-8.3.0/src/libxl/libxl_api_wrapper.h @@ -215,3 +215,18 @@ libxlSetMemoryTargetWrapper(libxl_ctx *c return ret; diff --git a/0001-util-Don-t-spawn-pkttyagent-when-stdin-is-not-a-tty.patch b/0001-util-Don-t-spawn-pkttyagent-when-stdin-is-not-a-tty.patch index 1643a9e..c70146e 100644 --- a/0001-util-Don-t-spawn-pkttyagent-when-stdin-is-not-a-tty.patch +++ b/0001-util-Don-t-spawn-pkttyagent-when-stdin-is-not-a-tty.patch @@ -18,10 +18,10 @@ Signed-off-by: Martin Kletzander src/util/virpolkit.c | 3 +++ 1 file changed, 3 insertions(+) -Index: libvirt-8.2.0/src/util/virpolkit.c +Index: libvirt-8.3.0/src/util/virpolkit.c =================================================================== ---- libvirt-8.2.0.orig/src/util/virpolkit.c -+++ libvirt-8.2.0/src/util/virpolkit.c +--- libvirt-8.3.0.orig/src/util/virpolkit.c ++++ libvirt-8.3.0/src/util/virpolkit.c @@ -237,6 +237,9 @@ virPolkitAgentAvailable(void) const char *termid = ctermid(NULL); VIR_AUTOCLOSE fd = -1; diff --git a/0002-lxc-implement-connectGetAllDomainStats.patch b/0002-lxc-implement-connectGetAllDomainStats.patch index b90e40e..c1b507e 100644 --- a/0002-lxc-implement-connectGetAllDomainStats.patch +++ b/0002-lxc-implement-connectGetAllDomainStats.patch @@ -9,10 +9,10 @@ them using the existing API. src/lxc/lxc_driver.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) -Index: libvirt-8.2.0/src/lxc/lxc_driver.c +Index: libvirt-8.3.0/src/lxc/lxc_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/lxc/lxc_driver.c -+++ libvirt-8.2.0/src/lxc/lxc_driver.c +--- libvirt-8.3.0.orig/src/lxc/lxc_driver.c ++++ libvirt-8.3.0/src/lxc/lxc_driver.c @@ -74,6 +74,8 @@ #include "netdev_bandwidth_conf.h" #include "virsocket.h" @@ -22,7 +22,7 @@ Index: libvirt-8.2.0/src/lxc/lxc_driver.c #define VIR_FROM_THIS VIR_FROM_LXC -@@ -5033,6 +5035,128 @@ lxcDomainHasManagedSaveImage(virDomainPt +@@ -5036,6 +5038,128 @@ lxcDomainHasManagedSaveImage(virDomainPt return ret; } @@ -151,7 +151,7 @@ Index: libvirt-8.2.0/src/lxc/lxc_driver.c /* Function Tables */ static virHypervisorDriver lxcHypervisorDriver = { -@@ -5130,6 +5254,7 @@ static virHypervisorDriver lxcHypervisor +@@ -5133,6 +5257,7 @@ static virHypervisorDriver lxcHypervisor .nodeGetFreePages = lxcNodeGetFreePages, /* 1.2.6 */ .nodeAllocPages = lxcNodeAllocPages, /* 1.2.9 */ .domainHasManagedSaveImage = lxcDomainHasManagedSaveImage, /* 1.2.13 */ diff --git a/libvirt-8.2.0.tar.xz b/libvirt-8.2.0.tar.xz deleted file mode 100644 index f94cfe3..0000000 --- a/libvirt-8.2.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ecd9c7dd52db7a2d124155ffa5e11de2fbd05014eceffbd1972b022d21becba -size 8871236 diff --git a/libvirt-8.2.0.tar.xz.asc b/libvirt-8.2.0.tar.xz.asc deleted file mode 100644 index 3123900..0000000 --- a/libvirt-8.2.0.tar.xz.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCAAdFiEERTtlMQWVVihVRxGZymi+gBAITJwFAmJG1GIACgkQymi+gBAI -TJyn3A//RQHdXAtLuJhier+x9lPsIJyNuo9/crnG4r/OfCvJgryygyKc0iYg0QwF -Mfx7RV+LhjW0BgOSeNcg4Zm0kSDEpqeLAilUmAGrArT+E/TdHDgCMHAXEEf8ZQKB -Sa3uGyAzHTwi/QP3Yn7ACOMjO7Nc5TaoK1UiEJaz5H0CI3byCDOsDN2t9vmVuf2K -Qm1htqIBnIbdDow8C+VgcXeyTGnHmRzO1xDTNgRLmllMFvuitg99pqhRxYQbS4s3 -ed6dm9ps7yTi0wuGy3z/TLacHLakVeadUjwVRWQL10SUTgXXwJDuIzWXDxejG7iz -sKgA9A8WkHAWOqiloIwMcQnlw5fzUdoc1k97xX9UPyH6vsYd66VnYC2ywa5Ugdlf -lw/vQ+wnAQ0UMRz386GYviYEgsIvkGOKo92IbkL5eXalZJ4Tk3wAworF7F2kVodc -ngCEzxncQhEh1k1OSeJG8pvK9c8Wi9b6FL3+6/1P1m7tZhkpSWJMWQTJGbtHZSRd -r6Lsl/3Bcb7MYShu0AwUr/pnliHVwAj+N7YyL5C29kGACu4DD9EFLEbEuY4vCDvS -QXzi3IrDWzoLvTXjxMAKvPimOf7Mu902NFRh5cqvPdXtAWjh0DOg9cenoyEZBE3P -SgqhJWoBHRXRGJFO/sl1WdHHd+bcqAT5zizjhKOzqRWkQ2eHWfY= -=J0Ij ------END PGP SIGNATURE----- diff --git a/libvirt-8.3.0.tar.xz b/libvirt-8.3.0.tar.xz new file mode 100644 index 0000000..fa64a7d --- /dev/null +++ b/libvirt-8.3.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be229b9ad1d48be7007e7bf341fc990c65e24aea624c16db6b36d02c820df5eb +size 8829288 diff --git a/libvirt-8.3.0.tar.xz.asc b/libvirt-8.3.0.tar.xz.asc new file mode 100644 index 0000000..c6a220b --- /dev/null +++ b/libvirt-8.3.0.tar.xz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEERTtlMQWVVihVRxGZymi+gBAITJwFAmJvwqIACgkQymi+gBAI +TJyKhA//TkyV2t5TBzklSeTBIiOK5HP5GMgZIBGtp2IpGW87uIkEsARngyaJe8jZ +BRx4FCOEOxeNbwNucXgyLh8E4BOtEC60H5ob/5OmuImS7fI/kvLHHoNkNuo4/E5O +z/fAcOIajtuDNT8GRR/Rv7p5IsBpqgQ1+9C1j3uWS70ODbhtje4rhcnl1MtbBYm+ +Mydb/FAXo/8BFWeC18HX+o/PoQlGnJaMp4Kmqcs/DBfZmxSQAiZBecjLxLfUsYZV +VZKjxATWT1fRjUwiL9RYgYtgLapU3fiiR1xVcipnrIei7oqIXvJ1yMhbv5AwAp2Y +m4g2sF3KHfe6lp29Tp5wf3YF2AkLjzz8LDUrVqH+wjGtS29tc0A3zh29GC+ENbWU +c1RzVG9f/vABBshzm+vbBdb4urL04POZVkS9PovjINmoPI7r/95RSsW00b4NP3pZ +/VhCdz3pa3+wJPhSgSHFch6eiNr2/10Vp0LGIhTl9VQFo2KXBT50qDKxsvkvyI9q +BrT3hEZYExANIOO/EknkZ2JlbuMC0o4GXY9i3Et6n6dgpgC+uesHkAW5aGbYg6ku +/4KNX1PxC9CLT4uFP10WCCnV/yNeaul8nhWBjp1opGgKRFObwf5j90seqY7UdCCw +xbIoxdRlM3ai63l0AsHOsqqsF4NDywcfg2Fon/JAc6lupUY59EU= +=XUWH +-----END PGP SIGNATURE----- diff --git a/libvirt-power8-models.patch b/libvirt-power8-models.patch index be175ee..9cc330a 100644 --- a/libvirt-power8-models.patch +++ b/libvirt-power8-models.patch @@ -2,10 +2,10 @@ Add POWER8 v2.0 and v2.1 to cpu map XML From: -Index: libvirt-8.2.0/src/cpu_map/ppc64_POWER8.xml +Index: libvirt-8.3.0/src/cpu_map/ppc64_POWER8.xml =================================================================== ---- libvirt-8.2.0.orig/src/cpu_map/ppc64_POWER8.xml -+++ libvirt-8.2.0/src/cpu_map/ppc64_POWER8.xml +--- libvirt-8.3.0.orig/src/cpu_map/ppc64_POWER8.xml ++++ libvirt-8.3.0/src/cpu_map/ppc64_POWER8.xml @@ -4,5 +4,7 @@ diff --git a/libvirt-suse-netcontrol.patch b/libvirt-suse-netcontrol.patch index b0b62fb..ed7c8d8 100644 --- a/libvirt-suse-netcontrol.patch +++ b/libvirt-suse-netcontrol.patch @@ -1,7 +1,7 @@ -Index: libvirt-8.2.0/tools/virsh.c +Index: libvirt-8.3.0/tools/virsh.c =================================================================== ---- libvirt-8.2.0.orig/tools/virsh.c -+++ libvirt-8.2.0/tools/virsh.c +--- libvirt-8.3.0.orig/tools/virsh.c ++++ libvirt-8.3.0/tools/virsh.c @@ -552,6 +552,8 @@ virshShowVersion(vshControl *ctl G_GNUC_ vshPrint(ctl, " Interface"); # if defined(WITH_NETCF) @@ -11,10 +11,10 @@ Index: libvirt-8.2.0/tools/virsh.c # elif defined(WITH_UDEV) vshPrint(ctl, " udev"); # endif -Index: libvirt-8.2.0/src/interface/interface_backend_netcf.c +Index: libvirt-8.3.0/src/interface/interface_backend_netcf.c =================================================================== ---- libvirt-8.2.0.orig/src/interface/interface_backend_netcf.c -+++ libvirt-8.2.0/src/interface/interface_backend_netcf.c +--- libvirt-8.3.0.orig/src/interface/interface_backend_netcf.c ++++ libvirt-8.3.0/src/interface/interface_backend_netcf.c @@ -21,7 +21,12 @@ #include @@ -78,23 +78,23 @@ Index: libvirt-8.2.0/src/interface/interface_backend_netcf.c /* open netcf */ if (ncf_init(&driver->netcf, NULL) != 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", -@@ -1089,6 +1129,7 @@ static int netcfInterfaceIsActive(virInt +@@ -1072,6 +1112,7 @@ static int netcfInterfaceIsActive(virInt return ret; } +#ifdef HAVE_NETCF_TRANSACTIONS static int netcfInterfaceChangeBegin(virConnectPtr conn, unsigned int flags) { - int ret; -@@ -1163,6 +1204,7 @@ static int netcfInterfaceChangeRollback( - virObjectUnlock(driver); + int ret = -1; +@@ -1143,6 +1184,7 @@ static int netcfInterfaceChangeRollback( + return ret; } +#endif /* HAVE_NETCF_TRANSACTIONS */ static virInterfaceDriver interfaceDriver = { .name = INTERFACE_DRIVER_NAME, -@@ -1179,9 +1221,11 @@ static virInterfaceDriver interfaceDrive +@@ -1159,9 +1201,11 @@ static virInterfaceDriver interfaceDrive .interfaceCreate = netcfInterfaceCreate, /* 0.7.0 */ .interfaceDestroy = netcfInterfaceDestroy, /* 0.7.0 */ .interfaceIsActive = netcfInterfaceIsActive, /* 0.7.3 */ @@ -106,7 +106,7 @@ Index: libvirt-8.2.0/src/interface/interface_backend_netcf.c }; -@@ -1212,6 +1256,19 @@ static virStateDriver interfaceStateDriv +@@ -1192,6 +1236,19 @@ static virStateDriver interfaceStateDriv int netcfIfaceRegister(void) { @@ -126,10 +126,10 @@ Index: libvirt-8.2.0/src/interface/interface_backend_netcf.c if (virRegisterConnectDriver(&interfaceConnectDriver, false) < 0) return -1; if (virSetSharedInterfaceDriver(&interfaceDriver) < 0) -Index: libvirt-8.2.0/src/interface/interface_driver.c +Index: libvirt-8.3.0/src/interface/interface_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/interface/interface_driver.c -+++ libvirt-8.2.0/src/interface/interface_driver.c +--- libvirt-8.3.0.orig/src/interface/interface_driver.c ++++ libvirt-8.3.0/src/interface/interface_driver.c @@ -30,8 +30,15 @@ interfaceRegister(void) if (netcfIfaceRegister() == 0) return 0; @@ -147,10 +147,10 @@ Index: libvirt-8.2.0/src/interface/interface_driver.c if (udevIfaceRegister() == 0) return 0; #endif /* WITH_UDEV */ -Index: libvirt-8.2.0/meson.build +Index: libvirt-8.3.0/meson.build =================================================================== ---- libvirt-8.2.0.orig/meson.build -+++ libvirt-8.2.0/meson.build +--- libvirt-8.3.0.orig/meson.build ++++ libvirt-8.3.0/meson.build @@ -1073,6 +1073,12 @@ else netcf_dep = dependency('', required: false) endif @@ -177,7 +177,7 @@ Index: libvirt-8.2.0/meson.build endif if not get_option('driver_libxl').disabled() and conf.has('WITH_LIBVIRTD') -@@ -2293,6 +2299,7 @@ libs_summary = { +@@ -2298,6 +2304,7 @@ libs_summary = { 'libssh2': libssh2_dep.found(), 'libutil': libutil_dep.found(), 'netcf': conf.has('WITH_NETCF'), @@ -185,10 +185,10 @@ Index: libvirt-8.2.0/meson.build 'NLS': have_gnu_gettext_tools, 'numactl': numactl_dep.found(), 'openwsman': openwsman_dep.found(), -Index: libvirt-8.2.0/src/interface/meson.build +Index: libvirt-8.3.0/src/interface/meson.build =================================================================== ---- libvirt-8.2.0.orig/src/interface/meson.build -+++ libvirt-8.2.0/src/interface/meson.build +--- libvirt-8.3.0.orig/src/interface/meson.build ++++ libvirt-8.3.0/src/interface/meson.build @@ -2,7 +2,7 @@ interface_driver_sources = [ 'interface_driver.c', ] @@ -206,10 +206,10 @@ Index: libvirt-8.2.0/src/interface/meson.build udev_dep, ], 'link_args': [ -Index: libvirt-8.2.0/meson_options.txt +Index: libvirt-8.3.0/meson_options.txt =================================================================== ---- libvirt-8.2.0.orig/meson_options.txt -+++ libvirt-8.2.0/meson_options.txt +--- libvirt-8.3.0.orig/meson_options.txt ++++ libvirt-8.3.0/meson_options.txt @@ -29,6 +29,7 @@ option('libpcap', type: 'feature', value option('libssh', type: 'feature', value: 'auto', description: 'libssh support') option('libssh2', type: 'feature', value: 'auto', description: 'libssh2 support') diff --git a/libvirt.changes b/libvirt.changes index 8498b8f..24f1365 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 9 13:49:51 UTC 2022 - James Fehlig + +- Update to libvirt 8.3.0 + - Many incremental improvements and bug fixes, see + https://libvirt.org/news.html#v8-3-0-2022-05-02 + ------------------------------------------------------------------- Fri Apr 1 17:30:25 UTC 2022 - James Fehlig diff --git a/libvirt.spec b/libvirt.spec index f2b8e9b..4cc1a76 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -158,7 +158,7 @@ Name: libvirt URL: http://libvirt.org/ -Version: 8.2.0 +Version: 8.3.0 Release: 0 Summary: Library providing a virtualization API License: LGPL-2.1-or-later diff --git a/libxl-dom-reset.patch b/libxl-dom-reset.patch index 88e91da..63163b8 100644 --- a/libxl-dom-reset.patch +++ b/libxl-dom-reset.patch @@ -8,11 +8,11 @@ Date: Mon Jun 23 15:51:20 2014 -0600 option, but domainReset can be implemented in the libxl driver by forcibly destroying the domain and starting it again. -Index: libvirt-8.2.0/src/libxl/libxl_driver.c +Index: libvirt-8.3.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_driver.c -+++ libvirt-8.2.0/src/libxl/libxl_driver.c -@@ -1361,6 +1361,63 @@ libxlDomainReboot(virDomainPtr dom, unsi +--- libvirt-8.3.0.orig/src/libxl/libxl_driver.c ++++ libvirt-8.3.0/src/libxl/libxl_driver.c +@@ -1356,6 +1356,63 @@ libxlDomainReboot(virDomainPtr dom, unsi } static int @@ -76,7 +76,7 @@ Index: libvirt-8.2.0/src/libxl/libxl_driver.c libxlDomainDestroyFlags(virDomainPtr dom, unsigned int flags) { -@@ -6464,6 +6521,7 @@ static virHypervisorDriver libxlHypervis +@@ -6463,6 +6520,7 @@ static virHypervisorDriver libxlHypervis .domainShutdown = libxlDomainShutdown, /* 0.9.0 */ .domainShutdownFlags = libxlDomainShutdownFlags, /* 0.9.10 */ .domainReboot = libxlDomainReboot, /* 0.9.0 */ diff --git a/libxl-set-cach-mode.patch b/libxl-set-cach-mode.patch index 3cb3a9b..2e39bb9 100644 --- a/libxl-set-cach-mode.patch +++ b/libxl-set-cach-mode.patch @@ -3,10 +3,10 @@ https://bugzilla.novell.com/show_bug.cgi?id=879425 src/libxl/libxl_conf.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -Index: libvirt-8.2.0/src/libxl/libxl_conf.c +Index: libvirt-8.3.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_conf.c -+++ libvirt-8.2.0/src/libxl/libxl_conf.c +--- libvirt-8.3.0.orig/src/libxl/libxl_conf.c ++++ libvirt-8.3.0/src/libxl/libxl_conf.c @@ -943,6 +943,28 @@ libxlDiskSetDiscard(libxl_device_disk *x } } diff --git a/libxl-set-migration-constraints.patch b/libxl-set-migration-constraints.patch index 4d7e080..ac7452e 100644 --- a/libxl-set-migration-constraints.patch +++ b/libxl-set-migration-constraints.patch @@ -16,11 +16,11 @@ Signed-off-by: Jim Fehlig tools/virsh.pod | 8 ++++++++ 6 files changed, 125 insertions(+), 6 deletions(-) -Index: libvirt-8.2.0/docs/manpages/virsh.rst +Index: libvirt-8.3.0/docs/manpages/virsh.rst =================================================================== ---- libvirt-8.2.0.orig/docs/manpages/virsh.rst -+++ libvirt-8.2.0/docs/manpages/virsh.rst -@@ -3246,6 +3246,7 @@ migrate +--- libvirt-8.3.0.orig/docs/manpages/virsh.rst ++++ libvirt-8.3.0/docs/manpages/virsh.rst +@@ -3258,6 +3258,7 @@ migrate [--parallel [--parallel-connections connections]] [--bandwidth bandwidth] [--tls-destination hostname] [--disks-uri URI] [--copy-storage-synchronous-writes] @@ -28,7 +28,7 @@ Index: libvirt-8.2.0/docs/manpages/virsh.rst Migrate domain to another host. Add *--live* for live migration; <--p2p> for peer-2-peer migration; *--direct* for direct migration; or *--tunnelled* -@@ -3363,6 +3364,12 @@ parallel connections. The number of such +@@ -3375,6 +3376,12 @@ parallel connections. The number of such network link between the source and the target and thus speeding up the migration. @@ -41,11 +41,11 @@ Index: libvirt-8.2.0/docs/manpages/virsh.rst Running migration can be canceled by interrupting virsh (usually using ``Ctrl-C``) or by ``domjobabort`` command sent from another virsh instance. -Index: libvirt-8.2.0/include/libvirt/libvirt-domain.h +Index: libvirt-8.3.0/include/libvirt/libvirt-domain.h =================================================================== ---- libvirt-8.2.0.orig/include/libvirt/libvirt-domain.h -+++ libvirt-8.2.0/include/libvirt/libvirt-domain.h -@@ -1090,6 +1090,25 @@ typedef enum { +--- libvirt-8.3.0.orig/include/libvirt/libvirt-domain.h ++++ libvirt-8.3.0/include/libvirt/libvirt-domain.h +@@ -1352,6 +1352,31 @@ typedef enum { */ # define VIR_MIGRATE_PARAM_TLS_DESTINATION "tls.destination" @@ -53,29 +53,35 @@ Index: libvirt-8.2.0/include/libvirt/libvirt-domain.h + * VIR_MIGRATE_PARAM_SUSE_MAX_ITERS: + * + * virDomainMigrate* params field: xc_domain_save max_iters ++ * ++ * Since: v1.2.5 + */ +#define VIR_MIGRATE_PARAM_SUSE_MAX_ITERS "max_iters" +/** + * VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING: + * + * virDomainMigrate* params field: xc_domain_save min_remaining ++ * ++ * Since: v1.2.5 + */ +#define VIR_MIGRATE_PARAM_SUSE_MIN_REMAINING "min_remaining" +/** + * VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY: + * + * virDomainMigrate* params field: xc_domain_save abort_if_busy ++ * ++ * Since: v1.2.5 + */ +#define VIR_MIGRATE_PARAM_SUSE_ABORT_IF_BUSY "abort_if_busy" + /* Domain migration. */ virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn, unsigned long flags, const char *dname, -Index: libvirt-8.2.0/src/libxl/libxl_driver.c +Index: libvirt-8.3.0/src/libxl/libxl_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_driver.c -+++ libvirt-8.2.0/src/libxl/libxl_driver.c -@@ -6005,6 +6005,9 @@ libxlDomainMigratePerform3Params(virDoma +--- libvirt-8.3.0.orig/src/libxl/libxl_driver.c ++++ libvirt-8.3.0/src/libxl/libxl_driver.c +@@ -6004,6 +6004,9 @@ libxlDomainMigratePerform3Params(virDoma const char *dname = NULL; const char *uri = NULL; int ret = -1; @@ -85,7 +91,7 @@ Index: libvirt-8.2.0/src/libxl/libxl_driver.c #ifdef LIBXL_HAVE_NO_SUSPEND_RESUME virReportUnsupportedError(); -@@ -6021,6 +6024,15 @@ libxlDomainMigratePerform3Params(virDoma +@@ -6020,6 +6023,15 @@ libxlDomainMigratePerform3Params(virDoma virTypedParamsGetString(params, nparams, VIR_MIGRATE_PARAM_DEST_NAME, &dname) < 0 || @@ -101,7 +107,7 @@ Index: libvirt-8.2.0/src/libxl/libxl_driver.c virTypedParamsGetString(params, nparams, VIR_MIGRATE_PARAM_URI, &uri) < 0) -@@ -6035,11 +6047,11 @@ libxlDomainMigratePerform3Params(virDoma +@@ -6034,11 +6046,11 @@ libxlDomainMigratePerform3Params(virDoma if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) { if (libxlDomainMigrationSrcPerformP2P(driver, vm, dom->conn, dom_xml, @@ -115,10 +121,10 @@ Index: libvirt-8.2.0/src/libxl/libxl_driver.c goto cleanup; } -Index: libvirt-8.2.0/src/libxl/libxl_migration.c +Index: libvirt-8.3.0/src/libxl/libxl_migration.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_migration.c -+++ libvirt-8.2.0/src/libxl/libxl_migration.c +--- libvirt-8.3.0.orig/src/libxl/libxl_migration.c ++++ libvirt-8.3.0/src/libxl/libxl_migration.c @@ -332,18 +332,38 @@ libxlMigrateDstReceive(virNetSocket *soc static int libxlDoMigrateSrcSend(libxlDriverPrivate *driver, @@ -279,10 +285,10 @@ Index: libvirt-8.2.0/src/libxl/libxl_migration.c virObjectLock(vm); if (ret == 0) { -Index: libvirt-8.2.0/src/libxl/libxl_migration.h +Index: libvirt-8.3.0/src/libxl/libxl_migration.h =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_migration.h -+++ libvirt-8.2.0/src/libxl/libxl_migration.h +--- libvirt-8.3.0.orig/src/libxl/libxl_migration.h ++++ libvirt-8.3.0/src/libxl/libxl_migration.h @@ -35,6 +35,9 @@ VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \ VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \ @@ -325,11 +331,11 @@ Index: libvirt-8.2.0/src/libxl/libxl_migration.h virDomainPtr libxlDomainMigrationDstFinish(virConnectPtr dconn, -Index: libvirt-8.2.0/tools/virsh-domain.c +Index: libvirt-8.3.0/tools/virsh-domain.c =================================================================== ---- libvirt-8.2.0.orig/tools/virsh-domain.c -+++ libvirt-8.2.0/tools/virsh-domain.c -@@ -10902,6 +10902,18 @@ static const vshCmdOptDef opts_migrate[] +--- libvirt-8.3.0.orig/tools/virsh-domain.c ++++ libvirt-8.3.0/tools/virsh-domain.c +@@ -10918,6 +10918,18 @@ static const vshCmdOptDef opts_migrate[] .completer = virshCompleteEmpty, .help = N_("override the destination host name used for TLS verification") }, @@ -348,7 +354,7 @@ Index: libvirt-8.2.0/tools/virsh-domain.c {.name = NULL} }; -@@ -10922,6 +10934,7 @@ doMigrate(void *opaque) +@@ -10938,6 +10950,7 @@ doMigrate(void *opaque) unsigned long long ullOpt = 0; int rv; virConnectPtr dconn = data->dconn; @@ -356,7 +362,7 @@ Index: libvirt-8.2.0/tools/virsh-domain.c #ifndef WIN32 sigset_t sigmask, oldsigmask; -@@ -11052,6 +11065,22 @@ doMigrate(void *opaque) +@@ -11068,6 +11081,22 @@ doMigrate(void *opaque) goto save_error; } diff --git a/libxl-support-block-script.patch b/libxl-support-block-script.patch index b7979b8..aa3e2c3 100644 --- a/libxl-support-block-script.patch +++ b/libxl-support-block-script.patch @@ -7,10 +7,10 @@ and npiv. For more details, see bsc#954872 and FATE#319810 -Index: libvirt-8.2.0/src/libxl/libxl_conf.c +Index: libvirt-8.3.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_conf.c -+++ libvirt-8.2.0/src/libxl/libxl_conf.c +--- libvirt-8.3.0.orig/src/libxl/libxl_conf.c ++++ libvirt-8.3.0/src/libxl/libxl_conf.c @@ -944,6 +944,20 @@ libxlDiskSetDiscard(libxl_device_disk *x } diff --git a/lxc-wait-after-eth-del.patch b/lxc-wait-after-eth-del.patch index ce904d4..1b1b348 100644 --- a/lxc-wait-after-eth-del.patch +++ b/lxc-wait-after-eth-del.patch @@ -13,11 +13,11 @@ device with the same name that is being created. src/lxc/lxc_process.c | 1 + 3 files changed, 4 insertions(+) -Index: libvirt-8.2.0/src/lxc/lxc_controller.c +Index: libvirt-8.3.0/src/lxc/lxc_controller.c =================================================================== ---- libvirt-8.2.0.orig/src/lxc/lxc_controller.c -+++ libvirt-8.2.0/src/lxc/lxc_controller.c -@@ -1998,6 +1998,7 @@ static int virLXCControllerDeleteInterfa +--- libvirt-8.3.0.orig/src/lxc/lxc_controller.c ++++ libvirt-8.3.0/src/lxc/lxc_controller.c +@@ -1999,6 +1999,7 @@ static int virLXCControllerDeleteInterfa if (virNetDevVethDelete(ctrl->veths[i]) < 0) ret = -1; } @@ -25,10 +25,10 @@ Index: libvirt-8.2.0/src/lxc/lxc_controller.c return ret; } -Index: libvirt-8.2.0/src/lxc/lxc_driver.c +Index: libvirt-8.3.0/src/lxc/lxc_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/lxc/lxc_driver.c -+++ libvirt-8.2.0/src/lxc/lxc_driver.c +--- libvirt-8.3.0.orig/src/lxc/lxc_driver.c ++++ libvirt-8.3.0/src/lxc/lxc_driver.c @@ -67,6 +67,7 @@ #include "virtime.h" #include "virtypedparam.h" @@ -37,7 +37,7 @@ Index: libvirt-8.2.0/src/lxc/lxc_driver.c #include "virstring.h" #include "viraccessapicheck.h" #include "viraccessapichecklxc.h" -@@ -3505,6 +3506,7 @@ lxcDomainAttachDeviceNetLive(virLXCDrive +@@ -3508,6 +3509,7 @@ lxcDomainAttachDeviceNetLive(virLXCDrive case VIR_DOMAIN_NET_TYPE_NETWORK: case VIR_DOMAIN_NET_TYPE_ETHERNET: ignore_value(virNetDevVethDelete(veth)); @@ -45,7 +45,7 @@ Index: libvirt-8.2.0/src/lxc/lxc_driver.c break; case VIR_DOMAIN_NET_TYPE_DIRECT: -@@ -3944,6 +3946,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb +@@ -3947,6 +3949,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb virDomainAuditNet(vm, detach, NULL, "detach", false); goto cleanup; } @@ -53,10 +53,10 @@ Index: libvirt-8.2.0/src/lxc/lxc_driver.c break; /* It'd be nice to support this, but with macvlan -Index: libvirt-8.2.0/src/lxc/lxc_process.c +Index: libvirt-8.3.0/src/lxc/lxc_process.c =================================================================== ---- libvirt-8.2.0.orig/src/lxc/lxc_process.c -+++ libvirt-8.2.0/src/lxc/lxc_process.c +--- libvirt-8.3.0.orig/src/lxc/lxc_process.c ++++ libvirt-8.3.0/src/lxc/lxc_process.c @@ -51,6 +51,7 @@ #include "virstring.h" #include "virprocess.h" diff --git a/network-don-t-use-dhcp-authoritative-on-static-netwo.patch b/network-don-t-use-dhcp-authoritative-on-static-netwo.patch index 789fc79..1c66e74 100644 --- a/network-don-t-use-dhcp-authoritative-on-static-netwo.patch +++ b/network-don-t-use-dhcp-authoritative-on-static-netwo.patch @@ -17,11 +17,11 @@ Signed-off-by: Martin Wilck tests/networkxml2confdata/dhcp6host-routed-network.conf | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) -Index: libvirt-8.2.0/src/network/bridge_driver.c +Index: libvirt-8.3.0/src/network/bridge_driver.c =================================================================== ---- libvirt-8.2.0.orig/src/network/bridge_driver.c -+++ libvirt-8.2.0/src/network/bridge_driver.c -@@ -1336,7 +1336,14 @@ networkDnsmasqConfContents(virNetworkObj +--- libvirt-8.3.0.orig/src/network/bridge_driver.c ++++ libvirt-8.3.0/src/network/bridge_driver.c +@@ -1334,7 +1334,14 @@ networkDnsmasqConfContents(virNetworkObj if (VIR_SOCKET_ADDR_IS_FAMILY(&ipdef->address, AF_INET)) { if (ipdef->nranges || ipdef->nhosts) { virBufferAddLit(&configbuf, "dhcp-no-override\n"); @@ -37,10 +37,10 @@ Index: libvirt-8.2.0/src/network/bridge_driver.c } if (ipdef->tftproot) { -Index: libvirt-8.2.0/tests/networkxml2confdata/dhcp6host-routed-network.conf +Index: libvirt-8.3.0/tests/networkxml2confdata/dhcp6host-routed-network.conf =================================================================== ---- libvirt-8.2.0.orig/tests/networkxml2confdata/dhcp6host-routed-network.conf -+++ libvirt-8.2.0/tests/networkxml2confdata/dhcp6host-routed-network.conf +--- libvirt-8.3.0.orig/tests/networkxml2confdata/dhcp6host-routed-network.conf ++++ libvirt-8.3.0/tests/networkxml2confdata/dhcp6host-routed-network.conf @@ -10,7 +10,6 @@ bind-dynamic interface=virbr1 dhcp-range=192.168.122.1,static diff --git a/ppc64le-canonical-name.patch b/ppc64le-canonical-name.patch index a1dc2d0..188de1e 100644 --- a/ppc64le-canonical-name.patch +++ b/ppc64le-canonical-name.patch @@ -2,10 +2,10 @@ Canonicalize hostarch name ppc64le to ppc64 See bnc#894956 -Index: libvirt-8.2.0/src/util/virarch.c +Index: libvirt-8.3.0/src/util/virarch.c =================================================================== ---- libvirt-8.2.0.orig/src/util/virarch.c -+++ libvirt-8.2.0/src/util/virarch.c +--- libvirt-8.3.0.orig/src/util/virarch.c ++++ libvirt-8.3.0/src/util/virarch.c @@ -222,6 +222,8 @@ virArch virArchFromHost(void) arch = VIR_ARCH_X86_64; } else if (STREQ(ut.machine, "arm64")) { diff --git a/qemu-apparmor-screenshot.patch b/qemu-apparmor-screenshot.patch index 8815f85..2cefa7f 100644 --- a/qemu-apparmor-screenshot.patch +++ b/qemu-apparmor-screenshot.patch @@ -1,8 +1,8 @@ -Index: libvirt-8.2.0/src/security/apparmor/libvirt-qemu +Index: libvirt-8.3.0/src/security/apparmor/libvirt-qemu =================================================================== ---- libvirt-8.2.0.orig/src/security/apparmor/libvirt-qemu -+++ libvirt-8.2.0/src/security/apparmor/libvirt-qemu -@@ -252,3 +252,6 @@ +--- libvirt-8.3.0.orig/src/security/apparmor/libvirt-qemu ++++ libvirt-8.3.0/src/security/apparmor/libvirt-qemu +@@ -253,3 +253,6 @@ # required for QEMU accessing UEFI nvram variables owner /var/lib/libvirt/qemu/nvram/*_VARS.fd rwk, owner /var/lib/libvirt/qemu/nvram/*_VARS.ms.fd rwk, diff --git a/suse-libvirt-guests-service.patch b/suse-libvirt-guests-service.patch index c1fc18f..f190767 100644 --- a/suse-libvirt-guests-service.patch +++ b/suse-libvirt-guests-service.patch @@ -1,9 +1,9 @@ Adjust libvirt-guests service to conform to SUSE standards -Index: libvirt-8.2.0/tools/libvirt-guests.sh.in +Index: libvirt-8.3.0/tools/libvirt-guests.sh.in =================================================================== ---- libvirt-8.2.0.orig/tools/libvirt-guests.sh.in -+++ libvirt-8.2.0/tools/libvirt-guests.sh.in +--- libvirt-8.3.0.orig/tools/libvirt-guests.sh.in ++++ libvirt-8.3.0/tools/libvirt-guests.sh.in @@ -20,10 +20,6 @@ sysconfdir="@sysconfdir@" localstatedir="@localstatedir@" libvirtd="@sbindir@"/libvirtd diff --git a/suse-libvirtd-disable-tls.patch b/suse-libvirtd-disable-tls.patch index 5fda144..145f1f0 100644 --- a/suse-libvirtd-disable-tls.patch +++ b/suse-libvirtd-disable-tls.patch @@ -3,10 +3,10 @@ Disable TLS by default On SUSE distros, the default is for libvirtd to listen only on the Unix Domain Socket. The libvirt client still provides remote access via a SSH tunnel. -Index: libvirt-8.2.0/src/remote/remote_daemon_config.c +Index: libvirt-8.3.0/src/remote/remote_daemon_config.c =================================================================== ---- libvirt-8.2.0.orig/src/remote/remote_daemon_config.c -+++ libvirt-8.2.0/src/remote/remote_daemon_config.c +--- libvirt-8.3.0.orig/src/remote/remote_daemon_config.c ++++ libvirt-8.3.0/src/remote/remote_daemon_config.c @@ -98,7 +98,7 @@ daemonConfigNew(bool privileged G_GNUC_U #ifdef WITH_IP @@ -16,10 +16,10 @@ Index: libvirt-8.2.0/src/remote/remote_daemon_config.c # else /* ! LIBVIRTD */ data->listen_tls = false; /* Always honoured, --listen doesn't exist. */ # endif /* ! LIBVIRTD */ -Index: libvirt-8.2.0/src/remote/libvirtd.conf.in +Index: libvirt-8.3.0/src/remote/libvirtd.conf.in =================================================================== ---- libvirt-8.2.0.orig/src/remote/libvirtd.conf.in -+++ libvirt-8.2.0/src/remote/libvirtd.conf.in +--- libvirt-8.3.0.orig/src/remote/libvirtd.conf.in ++++ libvirt-8.3.0/src/remote/libvirtd.conf.in @@ -17,8 +17,8 @@ # It is necessary to setup a CA and issue server certificates before # using this capability. @@ -31,10 +31,10 @@ Index: libvirt-8.2.0/src/remote/libvirtd.conf.in # Listen for unencrypted TCP connections on the public TCP/IP port. # NB, must pass the --listen flag to the @DAEMON_NAME@ process for this to -Index: libvirt-8.2.0/src/remote/test_libvirtd.aug.in +Index: libvirt-8.3.0/src/remote/test_libvirtd.aug.in =================================================================== ---- libvirt-8.2.0.orig/src/remote/test_libvirtd.aug.in -+++ libvirt-8.2.0/src/remote/test_libvirtd.aug.in +--- libvirt-8.3.0.orig/src/remote/test_libvirtd.aug.in ++++ libvirt-8.3.0/src/remote/test_libvirtd.aug.in @@ -3,7 +3,7 @@ module Test_@DAEMON_NAME@ = test @DAEMON_NAME_UC@.lns get conf = diff --git a/suse-libxl-disable-autoballoon.patch b/suse-libxl-disable-autoballoon.patch index 2bb232a..b577df4 100644 --- a/suse-libxl-disable-autoballoon.patch +++ b/suse-libxl-disable-autoballoon.patch @@ -6,10 +6,10 @@ autoballooning. This patch changes libvirt to also disable autoballooning by default. It can only be enabled with the 'autoballoon' setting in libxl.conf. See jsc#SLE-3059 for more details. -Index: libvirt-8.2.0/src/libxl/libxl.conf +Index: libvirt-8.3.0/src/libxl/libxl.conf =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl.conf -+++ libvirt-8.2.0/src/libxl/libxl.conf +--- libvirt-8.3.0.orig/src/libxl/libxl.conf ++++ libvirt-8.3.0/src/libxl/libxl.conf @@ -4,12 +4,11 @@ # Enable autoballooning of domain0 @@ -27,10 +27,10 @@ Index: libvirt-8.2.0/src/libxl/libxl.conf # In order to prevent accidentally starting two domains that -Index: libvirt-8.2.0/src/libxl/libxl_conf.c +Index: libvirt-8.3.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_conf.c -+++ libvirt-8.2.0/src/libxl/libxl_conf.c +--- libvirt-8.3.0.orig/src/libxl/libxl_conf.c ++++ libvirt-8.3.0/src/libxl/libxl_conf.c @@ -1732,15 +1732,12 @@ libxlMakeBuildInfoVfb(virPortAllocatorRa /* * Get domain0 autoballoon configuration. Honor user-specified @@ -66,10 +66,10 @@ Index: libvirt-8.2.0/src/libxl/libxl_conf.c return 0; } -Index: libvirt-8.2.0/src/libxl/test_libvirtd_libxl.aug.in +Index: libvirt-8.3.0/src/libxl/test_libvirtd_libxl.aug.in =================================================================== ---- libvirt-8.2.0.orig/src/libxl/test_libvirtd_libxl.aug.in -+++ libvirt-8.2.0/src/libxl/test_libvirtd_libxl.aug.in +--- libvirt-8.3.0.orig/src/libxl/test_libvirtd_libxl.aug.in ++++ libvirt-8.3.0/src/libxl/test_libvirtd_libxl.aug.in @@ -2,7 +2,7 @@ module Test_libvirtd_libxl = @CONFIG@ diff --git a/suse-qemu-conf.patch b/suse-qemu-conf.patch index e71afc3..6d3f584 100644 --- a/suse-qemu-conf.patch +++ b/suse-qemu-conf.patch @@ -7,10 +7,35 @@ suse-qemu-conf-secdriver.patch, suse-qemu-conf-lockmgr.patch, etc.), but for now they are all lumped together in this single patch. -Index: libvirt-8.2.0/src/qemu/qemu.conf +Index: libvirt-8.3.0/src/qemu/qemu_conf.c =================================================================== ---- libvirt-8.2.0.orig/src/qemu/qemu.conf -+++ libvirt-8.2.0/src/qemu/qemu.conf +--- libvirt-8.3.0.orig/src/qemu/qemu_conf.c ++++ libvirt-8.3.0/src/qemu/qemu_conf.c +@@ -261,7 +261,7 @@ virQEMUDriverConfig *virQEMUDriverConfig + cfg->slirpHelperName = g_strdup(QEMU_SLIRP_HELPER); + cfg->dbusDaemonName = g_strdup(QEMU_DBUS_DAEMON); + +- cfg->securityDefaultConfined = true; ++ cfg->securityDefaultConfined = false; + cfg->securityRequireConfined = false; + + cfg->keepAliveInterval = 5; +Index: libvirt-8.3.0/src/qemu/test_libvirtd_qemu.aug.in +=================================================================== +--- libvirt-8.3.0.orig/src/qemu/test_libvirtd_qemu.aug.in ++++ libvirt-8.3.0/src/qemu/test_libvirtd_qemu.aug.in +@@ -45,6 +45,7 @@ module Test_libvirtd_qemu = + { "remote_websocket_port_min" = "5700" } + { "remote_websocket_port_max" = "65535" } + { "security_driver" = "selinux" } ++{ "security_driver" = "apparmor" } + { "security_default_confined" = "1" } + { "security_require_confined" = "1" } + { "user" = "@QEMU_USER@" } +Index: libvirt-8.3.0/src/qemu/qemu.conf.in +=================================================================== +--- libvirt-8.3.0.orig/src/qemu/qemu.conf.in ++++ libvirt-8.3.0/src/qemu/qemu.conf.in @@ -491,10 +491,19 @@ # isolation, but it cannot appear in a list of drivers. # @@ -60,28 +85,3 @@ Index: libvirt-8.2.0/src/qemu/qemu.conf # #lock_manager = "lockd" -Index: libvirt-8.2.0/src/qemu/qemu_conf.c -=================================================================== ---- libvirt-8.2.0.orig/src/qemu/qemu_conf.c -+++ libvirt-8.2.0/src/qemu/qemu_conf.c -@@ -261,7 +261,7 @@ virQEMUDriverConfig *virQEMUDriverConfig - cfg->slirpHelperName = g_strdup(QEMU_SLIRP_HELPER); - cfg->dbusDaemonName = g_strdup(QEMU_DBUS_DAEMON); - -- cfg->securityDefaultConfined = true; -+ cfg->securityDefaultConfined = false; - cfg->securityRequireConfined = false; - - cfg->keepAliveInterval = 5; -Index: libvirt-8.2.0/src/qemu/test_libvirtd_qemu.aug.in -=================================================================== ---- libvirt-8.2.0.orig/src/qemu/test_libvirtd_qemu.aug.in -+++ libvirt-8.2.0/src/qemu/test_libvirtd_qemu.aug.in -@@ -45,6 +45,7 @@ module Test_libvirtd_qemu = - { "remote_websocket_port_min" = "5700" } - { "remote_websocket_port_max" = "65535" } - { "security_driver" = "selinux" } -+{ "security_driver" = "apparmor" } - { "security_default_confined" = "1" } - { "security_require_confined" = "1" } - { "user" = "root" } diff --git a/suse-qemu-ovmf-paths.patch b/suse-qemu-ovmf-paths.patch index 9c4278f..9772993 100644 --- a/suse-qemu-ovmf-paths.patch +++ b/suse-qemu-ovmf-paths.patch @@ -5,28 +5,10 @@ advertised and used by libvirt are automatically detected. Until upstream removes the old DEFAULT_LOADER_NVRAM approach and associated code, this patch will stay. -Index: libvirt-8.2.0/src/qemu/qemu.conf +Index: libvirt-8.3.0/src/qemu/qemu_conf.c =================================================================== ---- libvirt-8.2.0.orig/src/qemu/qemu.conf -+++ libvirt-8.2.0/src/qemu/qemu.conf -@@ -857,10 +857,9 @@ - # for x86_64 and i686, but it's AAVMF for aarch64. The libvirt default - # follows this scheme. - #nvram = [ --# "/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd", --# "/usr/share/OVMF/OVMF_CODE.secboot.fd:/usr/share/OVMF/OVMF_VARS.fd", --# "/usr/share/AAVMF/AAVMF_CODE.fd:/usr/share/AAVMF/AAVMF_VARS.fd", --# "/usr/share/AAVMF/AAVMF32_CODE.fd:/usr/share/AAVMF/AAVMF32_VARS.fd" -+# "/usr/share/qemu/ovmf-x86_64-ms-4m-code.bin:/usr/share/qemu/ovmf-x86_64-ms-4m-vars.bin", -+# "/usr/share/qemu/ovmf-x86_64-ms-code.bin:/usr/share/qemu/ovmf-x86_64-ms-vars.bin", -+# "/usr/share/qemu/aavmf-aarch64-code.bin:/usr/share/qemu/aavmf-aarch64-vars.bin" - #] - - # The backend to use for handling stdout/stderr output from -Index: libvirt-8.2.0/src/qemu/qemu_conf.c -=================================================================== ---- libvirt-8.2.0.orig/src/qemu/qemu_conf.c -+++ libvirt-8.2.0/src/qemu/qemu_conf.c +--- libvirt-8.3.0.orig/src/qemu/qemu_conf.c ++++ libvirt-8.3.0/src/qemu/qemu_conf.c @@ -87,10 +87,9 @@ VIR_ONCE_GLOBAL_INIT(virQEMUConfig); #ifndef DEFAULT_LOADER_NVRAM @@ -41,10 +23,10 @@ Index: libvirt-8.2.0/src/qemu/qemu_conf.c #endif -Index: libvirt-8.2.0/src/security/virt-aa-helper.c +Index: libvirt-8.3.0/src/security/virt-aa-helper.c =================================================================== ---- libvirt-8.2.0.orig/src/security/virt-aa-helper.c -+++ libvirt-8.2.0/src/security/virt-aa-helper.c +--- libvirt-8.3.0.orig/src/security/virt-aa-helper.c ++++ libvirt-8.3.0/src/security/virt-aa-helper.c @@ -480,7 +480,8 @@ valid_path(const char *path, const bool "/usr/share/ovmf/", /* for OVMF images */ "/usr/share/AAVMF/", /* for AAVMF images */ @@ -55,10 +37,10 @@ Index: libvirt-8.2.0/src/security/virt-aa-helper.c }; /* override the above with these */ const char * const override[] = { -Index: libvirt-8.2.0/src/qemu/test_libvirtd_qemu.aug.in +Index: libvirt-8.3.0/src/qemu/test_libvirtd_qemu.aug.in =================================================================== ---- libvirt-8.2.0.orig/src/qemu/test_libvirtd_qemu.aug.in -+++ libvirt-8.2.0/src/qemu/test_libvirtd_qemu.aug.in +--- libvirt-8.3.0.orig/src/qemu/test_libvirtd_qemu.aug.in ++++ libvirt-8.3.0/src/qemu/test_libvirtd_qemu.aug.in @@ -96,10 +96,9 @@ module Test_libvirtd_qemu = { "migration_port_max" = "49215" } { "log_timestamp" = "0" } @@ -73,3 +55,21 @@ Index: libvirt-8.2.0/src/qemu/test_libvirtd_qemu.aug.in } { "stdio_handler" = "logd" } { "gluster_debug_level" = "9" } +Index: libvirt-8.3.0/src/qemu/qemu.conf.in +=================================================================== +--- libvirt-8.3.0.orig/src/qemu/qemu.conf.in ++++ libvirt-8.3.0/src/qemu/qemu.conf.in +@@ -857,10 +857,9 @@ + # for x86_64 and i686, but it's AAVMF for aarch64. The libvirt default + # follows this scheme. + #nvram = [ +-# "/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd", +-# "/usr/share/OVMF/OVMF_CODE.secboot.fd:/usr/share/OVMF/OVMF_VARS.fd", +-# "/usr/share/AAVMF/AAVMF_CODE.fd:/usr/share/AAVMF/AAVMF_VARS.fd", +-# "/usr/share/AAVMF/AAVMF32_CODE.fd:/usr/share/AAVMF/AAVMF32_VARS.fd" ++# "/usr/share/qemu/ovmf-x86_64-ms-4m-code.bin:/usr/share/qemu/ovmf-x86_64-ms-4m-vars.bin", ++# "/usr/share/qemu/ovmf-x86_64-ms-code.bin:/usr/share/qemu/ovmf-x86_64-ms-vars.bin", ++# "/usr/share/qemu/aavmf-aarch64-code.bin:/usr/share/qemu/aavmf-aarch64-vars.bin" + #] + + # The backend to use for handling stdout/stderr output from diff --git a/suse-xen-ovmf-paths.patch b/suse-xen-ovmf-paths.patch index 40a3317..9e5f922 100644 --- a/suse-xen-ovmf-paths.patch +++ b/suse-xen-ovmf-paths.patch @@ -5,10 +5,10 @@ June 2021 ovmf only supports one firmware for Xen. This patch adjusts the firmware path to match the one provided by the ovmf package. -Index: libvirt-8.2.0/src/libxl/libxl_conf.c +Index: libvirt-8.3.0/src/libxl/libxl_conf.c =================================================================== ---- libvirt-8.2.0.orig/src/libxl/libxl_conf.c -+++ libvirt-8.2.0/src/libxl/libxl_conf.c +--- libvirt-8.3.0.orig/src/libxl/libxl_conf.c ++++ libvirt-8.3.0/src/libxl/libxl_conf.c @@ -1783,7 +1783,7 @@ libxlDriverConfigNew(void) cfg->firmwares = g_new0(virFirmware *, 1); cfg->nfirmwares = 1; diff --git a/virt-create-rootfs.patch b/virt-create-rootfs.patch index 9b0e70d..7d6b699 100644 --- a/virt-create-rootfs.patch +++ b/virt-create-rootfs.patch @@ -1,7 +1,7 @@ -Index: libvirt-8.2.0/tools/virt-create-rootfs +Index: libvirt-8.3.0/tools/virt-create-rootfs =================================================================== --- /dev/null -+++ libvirt-8.2.0/tools/virt-create-rootfs ++++ libvirt-8.3.0/tools/virt-create-rootfs @@ -0,0 +1,236 @@ +#!/bin/sh +set -e @@ -239,10 +239,10 @@ Index: libvirt-8.2.0/tools/virt-create-rootfs + echo "pts/0" >> "$ROOT/etc/securetty" + chroot "$ROOT" /usr/bin/passwd +fi -Index: libvirt-8.2.0/docs/manpages/virt-create-rootfs.rst +Index: libvirt-8.3.0/docs/manpages/virt-create-rootfs.rst =================================================================== --- /dev/null -+++ libvirt-8.2.0/docs/manpages/virt-create-rootfs.rst ++++ libvirt-8.3.0/docs/manpages/virt-create-rootfs.rst @@ -0,0 +1,88 @@ +================== +virt-create-rootfs @@ -332,11 +332,11 @@ Index: libvirt-8.2.0/docs/manpages/virt-create-rootfs.rst +======== + +virsh(1), `https://libvirt.org/ `_ -Index: libvirt-8.2.0/docs/manpages/meson.build +Index: libvirt-8.3.0/docs/manpages/meson.build =================================================================== ---- libvirt-8.2.0.orig/docs/manpages/meson.build -+++ libvirt-8.2.0/docs/manpages/meson.build -@@ -20,6 +20,7 @@ docs_man_files = [ +--- libvirt-8.3.0.orig/docs/manpages/meson.build ++++ libvirt-8.3.0/docs/manpages/meson.build +@@ -19,6 +19,7 @@ docs_man_files = [ { 'name': 'virt-pki-validate', 'section': '1', 'install': true }, { 'name': 'virt-qemu-run', 'section': '1', 'install': conf.has('WITH_QEMU') }, { 'name': 'virt-xml-validate', 'section': '1', 'install': true }, @@ -344,10 +344,10 @@ Index: libvirt-8.2.0/docs/manpages/meson.build { 'name': 'libvirt-guests', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') }, { 'name': 'libvirtd', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') }, -Index: libvirt-8.2.0/tools/meson.build +Index: libvirt-8.3.0/tools/meson.build =================================================================== ---- libvirt-8.2.0.orig/tools/meson.build -+++ libvirt-8.2.0/tools/meson.build +--- libvirt-8.3.0.orig/tools/meson.build ++++ libvirt-8.3.0/tools/meson.build @@ -154,6 +154,8 @@ else virsh_icon_res = [] endif