Accepting request 896744 from home:jfehlig:branches:Virtualization

- Update to libvirt 7.4.0
  - Many incremental improvements and bug fixes, see
    https://libvirt.org/news.html
  - Dropped patches:
    ee890f25-libxl-mock-funcs.patch

OBS-URL: https://build.opensuse.org/request/show/896744
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=891
This commit is contained in:
James Fehlig 2021-06-01 16:52:45 +00:00 committed by Git OBS Bridge
parent a420dcc434
commit 9b5da75827
31 changed files with 234 additions and 273 deletions

View File

@ -18,10 +18,10 @@ them.
create mode 100644 src/conf/domain_stats.c
create mode 100644 src/conf/domain_stats.h
Index: libvirt-7.3.0/src/conf/domain_stats.c
Index: libvirt-7.4.0/src/conf/domain_stats.c
===================================================================
--- /dev/null
+++ libvirt-7.3.0/src/conf/domain_stats.c
+++ libvirt-7.4.0/src/conf/domain_stats.c
@@ -0,0 +1,117 @@
+/*
+ * domain_stats.c: domain stats extraction helpers
@ -140,10 +140,10 @@ Index: libvirt-7.3.0/src/conf/domain_stats.c
+}
+
+#undef STATS_ADD_NET_PARAM
Index: libvirt-7.3.0/src/conf/domain_stats.h
Index: libvirt-7.4.0/src/conf/domain_stats.h
===================================================================
--- /dev/null
+++ libvirt-7.3.0/src/conf/domain_stats.h
+++ libvirt-7.4.0/src/conf/domain_stats.h
@@ -0,0 +1,60 @@
+/*
+ * domain_stats.h: domain stats extraction helpers
@ -205,11 +205,11 @@ Index: libvirt-7.3.0/src/conf/domain_stats.h
+ virTypedParamList *params);
+
+#endif /* __DOMAIN_STATS_H */
Index: libvirt-7.3.0/src/libvirt_private.syms
Index: libvirt-7.4.0/src/libvirt_private.syms
===================================================================
--- libvirt-7.3.0.orig/src/libvirt_private.syms
+++ libvirt-7.3.0/src/libvirt_private.syms
@@ -754,12 +754,16 @@ virDomainConfNWFilterTeardown;
--- libvirt-7.4.0.orig/src/libvirt_private.syms
+++ libvirt-7.4.0/src/libvirt_private.syms
@@ -756,12 +756,16 @@ virDomainConfNWFilterTeardown;
virDomainConfVMNWFilterTeardown;
@ -227,7 +227,7 @@ Index: libvirt-7.3.0/src/libvirt_private.syms
# conf/interface_conf.h
virInterfaceDefFormat;
virInterfaceDefFree;
@@ -1915,6 +1919,7 @@ virCgroupGetMemoryUsage;
@@ -1918,6 +1922,7 @@ virCgroupGetMemoryUsage;
virCgroupGetMemSwapHardLimit;
virCgroupGetMemSwapUsage;
virCgroupGetPercpuStats;
@ -235,10 +235,10 @@ Index: libvirt-7.3.0/src/libvirt_private.syms
virCgroupHasController;
virCgroupHasEmptyTasks;
virCgroupKillPainfully;
Index: libvirt-7.3.0/src/qemu/qemu_driver.c
Index: libvirt-7.4.0/src/qemu/qemu_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/qemu/qemu_driver.c
+++ libvirt-7.3.0/src/qemu/qemu_driver.c
--- libvirt-7.4.0.orig/src/qemu/qemu_driver.c
+++ libvirt-7.4.0/src/qemu/qemu_driver.c
@@ -67,6 +67,7 @@
#include "virarptable.h"
#include "viruuid.h"
@ -247,7 +247,7 @@ Index: libvirt-7.3.0/src/qemu/qemu_driver.c
#include "domain_audit.h"
#include "domain_cgroup.h"
#include "domain_driver.h"
@@ -17542,13 +17543,7 @@ qemuDomainGetStatsState(virQEMUDriver *d
@@ -17537,13 +17538,7 @@ qemuDomainGetStatsState(virQEMUDriver *d
virTypedParamList *params,
unsigned int privflags G_GNUC_UNUSED)
{
@ -262,7 +262,7 @@ Index: libvirt-7.3.0/src/qemu/qemu_driver.c
}
@@ -17841,25 +17836,11 @@ qemuDomainGetStatsCpuCgroup(virDomainObj
@@ -17836,25 +17831,11 @@ qemuDomainGetStatsCpuCgroup(virDomainObj
virTypedParamList *params)
{
qemuDomainObjPrivate *priv = dom->privateData;
@ -289,7 +289,7 @@ Index: libvirt-7.3.0/src/qemu/qemu_driver.c
}
@@ -18032,76 +18013,15 @@ qemuDomainGetStatsVcpu(virQEMUDriver *dr
@@ -18027,76 +18008,15 @@ qemuDomainGetStatsVcpu(virQEMUDriver *dr
return ret;
}
@ -367,10 +367,10 @@ Index: libvirt-7.3.0/src/qemu/qemu_driver.c
/* refresh information by opening images on the disk */
static int
Index: libvirt-7.3.0/src/util/vircgroup.c
Index: libvirt-7.4.0/src/util/vircgroup.c
===================================================================
--- libvirt-7.3.0.orig/src/util/vircgroup.c
+++ libvirt-7.3.0/src/util/vircgroup.c
--- libvirt-7.4.0.orig/src/util/vircgroup.c
+++ libvirt-7.4.0/src/util/vircgroup.c
@@ -3002,6 +3002,31 @@ virCgroupControllerAvailable(int control
return virCgroupHasController(cgroup, controller);
}
@ -418,10 +418,10 @@ Index: libvirt-7.3.0/src/util/vircgroup.c
int
virCgroupNewPartition(const char *path G_GNUC_UNUSED,
bool create G_GNUC_UNUSED,
Index: libvirt-7.3.0/src/util/vircgroup.h
Index: libvirt-7.4.0/src/util/vircgroup.h
===================================================================
--- libvirt-7.3.0.orig/src/util/vircgroup.h
+++ libvirt-7.3.0/src/util/vircgroup.h
--- libvirt-7.4.0.orig/src/util/vircgroup.h
+++ libvirt-7.4.0/src/util/vircgroup.h
@@ -23,6 +23,7 @@
#include "virbitmap.h"
@ -437,10 +437,10 @@ Index: libvirt-7.3.0/src/util/vircgroup.h
+
+int virCgroupGetStatsCpu(virCgroup *cgroup,
+ virTypedParamList *params);
Index: libvirt-7.3.0/src/conf/meson.build
Index: libvirt-7.4.0/src/conf/meson.build
===================================================================
--- libvirt-7.3.0.orig/src/conf/meson.build
+++ libvirt-7.3.0/src/conf/meson.build
--- libvirt-7.4.0.orig/src/conf/meson.build
+++ libvirt-7.4.0/src/conf/meson.build
@@ -15,6 +15,7 @@ domain_conf_sources = [
'domain_conf.c',
'domain_nwfilter.c',

View File

@ -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-7.3.0/src/libxl/libxl_driver.c
Index: libvirt-7.4.0/src/libxl/libxl_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_driver.c
+++ libvirt-7.3.0/src/libxl/libxl_driver.c
@@ -5319,6 +5319,97 @@ libxlDomainMemoryStats(virDomainPtr dom,
--- libvirt-7.4.0.orig/src/libxl/libxl_driver.c
+++ libvirt-7.4.0/src/libxl/libxl_driver.c
@@ -5310,6 +5310,97 @@ libxlDomainMemoryStats(virDomainPtr dom,
#undef LIBXL_SET_MEMSTAT
@ -121,7 +121,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_driver.c
static int
libxlDomainGetJobInfo(virDomainPtr dom,
virDomainJobInfoPtr info)
@@ -6619,6 +6710,7 @@ static virHypervisorDriver libxlHypervis
@@ -6610,6 +6701,7 @@ static virHypervisorDriver libxlHypervis
#endif
.nodeGetFreeMemory = libxlNodeGetFreeMemory, /* 0.9.0 */
.nodeGetCellsFreeMemory = libxlNodeGetCellsFreeMemory, /* 1.1.1 */
@ -129,10 +129,10 @@ Index: libvirt-7.3.0/src/libxl/libxl_driver.c
.domainGetJobInfo = libxlDomainGetJobInfo, /* 1.3.1 */
.domainGetJobStats = libxlDomainGetJobStats, /* 1.3.1 */
.domainMemoryStats = libxlDomainMemoryStats, /* 1.3.0 */
Index: libvirt-7.3.0/src/libxl/libxl_api_wrapper.h
Index: libvirt-7.4.0/src/libxl/libxl_api_wrapper.h
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_api_wrapper.h
+++ libvirt-7.3.0/src/libxl/libxl_api_wrapper.h
--- libvirt-7.4.0.orig/src/libxl/libxl_api_wrapper.h
+++ libvirt-7.4.0/src/libxl/libxl_api_wrapper.h
@@ -215,3 +215,18 @@ libxlSetMemoryTargetWrapper(libxl_ctx *c
return ret;

View File

@ -9,10 +9,10 @@ them using the existing API.
src/lxc/lxc_driver.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 138 insertions(+)
Index: libvirt-7.3.0/src/lxc/lxc_driver.c
Index: libvirt-7.4.0/src/lxc/lxc_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/lxc/lxc_driver.c
+++ libvirt-7.3.0/src/lxc/lxc_driver.c
--- libvirt-7.4.0.orig/src/lxc/lxc_driver.c
+++ libvirt-7.4.0/src/lxc/lxc_driver.c
@@ -74,6 +74,8 @@
#include "netdev_bandwidth_conf.h"
#include "virsocket.h"
@ -22,7 +22,7 @@ Index: libvirt-7.3.0/src/lxc/lxc_driver.c
#define VIR_FROM_THIS VIR_FROM_LXC
@@ -5068,6 +5070,128 @@ lxcDomainHasManagedSaveImage(virDomainPt
@@ -5064,6 +5066,128 @@ lxcDomainHasManagedSaveImage(virDomainPt
return ret;
}
@ -151,7 +151,7 @@ Index: libvirt-7.3.0/src/lxc/lxc_driver.c
/* Function Tables */
static virHypervisorDriver lxcHypervisorDriver = {
@@ -5165,6 +5289,7 @@ static virHypervisorDriver lxcHypervisor
@@ -5161,6 +5285,7 @@ static virHypervisorDriver lxcHypervisor
.nodeGetFreePages = lxcNodeGetFreePages, /* 1.2.6 */
.nodeAllocPages = lxcNodeAllocPages, /* 1.2.9 */
.domainHasManagedSaveImage = lxcDomainHasManagedSaveImage, /* 1.2.13 */

View File

@ -1,47 +0,0 @@
commit ee890f25c703a07e69f6e19f08b2a8d06ed2fc5f
Author: Jim Fehlig <jfehlig@suse.com>
Date: Mon May 17 11:52:25 2021 -0600
tests: libxl: Mock xs_open and xs_close
The Xen-related unit tests are failing against the recently released
Xen 4.15. Xen commit 90c9f9f4dd changed the implementation of
libxl_ctx_alloc to use xs_open instead of xs_daemon_open. libvirt has
already mocked xs_daemon-{open,close} and others to allow using libxl
in confined build environments. This patch adds xs_{open,close} to the
list of functions mocked in libxlmock.c
https://github.com/xen-project/xen/commit/90c9f9f4ddd55e11be0506bff10c6237507c6e0d
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Index: libvirt-7.3.0/tests/libxlmock.c
===================================================================
--- libvirt-7.3.0.orig/tests/libxlmock.c
+++ libvirt-7.3.0/tests/libxlmock.c
@@ -39,6 +39,14 @@ VIR_MOCK_IMPL_RET_VOID(xs_daemon_open,
return (void*)0x1;
}
+VIR_MOCK_IMPL_RET_ARGS(xs_open,
+ struct xs_handle *,
+ unsigned long, flags)
+{
+ VIR_MOCK_REAL_INIT(xs_open);
+ return (void*)0x1;
+}
+
VIR_MOCK_IMPL_RET_ARGS(xc_interface_open,
xc_interface *,
xentoollog_logger *, logger,
@@ -94,6 +102,9 @@ VIR_MOCK_STUB_RET_ARGS(xc_sharing_used_f
VIR_MOCK_STUB_VOID_ARGS(xs_daemon_close,
struct xs_handle *, handle)
+VIR_MOCK_STUB_VOID_ARGS(xs_close,
+ struct xs_handle *, xsh)
+
VIR_MOCK_STUB_RET_ARGS(bind,
int, 0,
int, sockfd,

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27bdbb85c0301475ab1f2ecd185c629ea0bfd5512bef3f6f1817b6c55d1dc1be
size 8680468

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEERTtlMQWVVihVRxGZymi+gBAITJwFAmCPvcIACgkQymi+gBAI
TJx5CRAAlfkKfcAHWJWp3bBHcbPDZw85jWffWJ3ECcO87sw1i5G+uaNaOGK/3uHp
VJxjFZg0rd7YdbIeN+CiWzI5wSGytsNiopKYhqpVNdQQMWrZT3b3FyJSURU2DTUr
6e8Baz3EIqwZM76CyVZoyxHgsyGsAPPAXTfPdn3W/ghLIreGITaroIwVNYp5RGcX
eLX0zb3GT1EpjoW6CDzfJRTCTEw8oSbZtV/roMng4BNFpgPK9v3zhJiLgmGyhhTT
ryBo+qbLVi0wgqRz1tS8Nybdi5OCeNlGloBETCLQMmmSz/jflJf6NcJu6YVvDtdB
0jXy033mcGMPhdTdCIBQo5QgBPJX04oHOvqrvmJ7FJam4odwVmRk9Qh3BnWBkfUS
1/zn3/rwH0HNu01IDqOyGwMW1WvJuGmvgo285FajlqcNE0wFBAG92njIK73uChwc
6sxKa8E9evv5NTKXFJujK9JxtnIQ3CqzezX+zPUb6Ex5gLcNeuRvMGaUclhBrxk7
QM3hqR0520WjEo+S9zchZdowxFXtN5E9tJe5DIVW2fyOZ3UxUT5/1eQ/rUChAaVu
Y/p+QUQVEtIdk27nTb0jCrpfVuLafGDw8ip0H6bpx29b0vJIWp+ym45o5nl2L3dH
WUTD2Yh9FOS9Q813SCM+4Rw0fn3cMJEgq6J/YBkQjV33ze+jRrQ=
=fA/C
-----END PGP SIGNATURE-----

3
libvirt-7.4.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b366d73dee6ce77a226bedef592e0620ceb8e22e5998f60768017f79fc4ead26
size 8617788

16
libvirt-7.4.0.tar.xz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEERTtlMQWVVihVRxGZymi+gBAITJwFAmC2ByYACgkQymi+gBAI
TJxzcQ//ZQRiP01dNU5fcIZNoCtemO8XfjVA1JPsxZ23F+Dk8bK1YPdnWz5VjVZt
IlmTjyiOpqy3Iyvyf51hvLDv9EOrNF+su9xyW+L/ZZyb1ziGIXVkQHCz/MlsDR8Y
h8AUCE0gyFcBbD46GhNulELX/dAr6cSyQIgPVFuhzGArcR4A29o02vpuVOUEaxQv
2c4N3gwMnj2Vnf4c6H52FHPe0FW/hInWR8rs2zlG2rs39GQpLGfWw2iqE2GM7oG3
4dy8+nmqCg8uZEUkNCPXGqH6WhcJLLLB6j6hRchHLPNvT7gAaBAxJyklsgt0zd9k
08+8ZMdH7l1hcZSlppiFKk97w/ANr3kZCpoUvC/Ppvtu3R8SzocCNpQDYkdpUkdp
hH6W9D/ZPz2LEA4q6g4juAnUf5f6WW6AZ+9PrTzj8aM211TbpzwSBhWcJsP5XYb4
+bYeXdKNXLjkVjj6Jw1O0BS+BmI7uanvEEfX62Xo5La3gOnAoj5eox4Hko27YQDC
96QGxEVISnRdcmt5/DHrK16yI1V/J4e+SnqUwlS5xkwkQw0AlLWamQJXBd6mu43k
eqCKK/8G1sA53Asedx0Y1ZgoXjPYLdZdNC1jV6XcqLPCCP0JU+lZ4UH5kv0MANmi
EOCGPafkfNeT+J0330IE5jKWagDEgeMCAowcZQ/n47Qn6eecR28=
=lDRr
-----END PGP SIGNATURE-----

View File

@ -2,10 +2,10 @@ Add POWER8 v2.0 and v2.1 to cpu map XML
From: <ro@suse.de>
Index: libvirt-7.3.0/src/cpu_map/ppc64_POWER8.xml
Index: libvirt-7.4.0/src/cpu_map/ppc64_POWER8.xml
===================================================================
--- libvirt-7.3.0.orig/src/cpu_map/ppc64_POWER8.xml
+++ libvirt-7.3.0/src/cpu_map/ppc64_POWER8.xml
--- libvirt-7.4.0.orig/src/cpu_map/ppc64_POWER8.xml
+++ libvirt-7.4.0/src/cpu_map/ppc64_POWER8.xml
@@ -4,5 +4,7 @@
<pvr value='0x004b0000' mask='0xffff0000'/>
<pvr value='0x004c0000' mask='0xffff0000'/>

View File

@ -1,8 +1,8 @@
Index: libvirt-7.3.0/tools/virsh.c
Index: libvirt-7.4.0/tools/virsh.c
===================================================================
--- libvirt-7.3.0.orig/tools/virsh.c
+++ libvirt-7.3.0/tools/virsh.c
@@ -543,6 +543,8 @@ virshShowVersion(vshControl *ctl G_GNUC_
--- libvirt-7.4.0.orig/tools/virsh.c
+++ libvirt-7.4.0/tools/virsh.c
@@ -542,6 +542,8 @@ virshShowVersion(vshControl *ctl G_GNUC_
vshPrint(ctl, " Interface");
# if defined(WITH_NETCF)
vshPrint(ctl, " netcf");
@ -11,10 +11,10 @@ Index: libvirt-7.3.0/tools/virsh.c
# elif defined(WITH_UDEV)
vshPrint(ctl, " udev");
# endif
Index: libvirt-7.3.0/src/interface/interface_backend_netcf.c
Index: libvirt-7.4.0/src/interface/interface_backend_netcf.c
===================================================================
--- libvirt-7.3.0.orig/src/interface/interface_backend_netcf.c
+++ libvirt-7.3.0/src/interface/interface_backend_netcf.c
--- libvirt-7.4.0.orig/src/interface/interface_backend_netcf.c
+++ libvirt-7.4.0/src/interface/interface_backend_netcf.c
@@ -21,7 +21,12 @@
#include <config.h>
@ -126,10 +126,10 @@ Index: libvirt-7.3.0/src/interface/interface_backend_netcf.c
if (virRegisterConnectDriver(&interfaceConnectDriver, false) < 0)
return -1;
if (virSetSharedInterfaceDriver(&interfaceDriver) < 0)
Index: libvirt-7.3.0/src/interface/interface_driver.c
Index: libvirt-7.4.0/src/interface/interface_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/interface/interface_driver.c
+++ libvirt-7.3.0/src/interface/interface_driver.c
--- libvirt-7.4.0.orig/src/interface/interface_driver.c
+++ libvirt-7.4.0/src/interface/interface_driver.c
@@ -30,8 +30,15 @@ interfaceRegister(void)
if (netcfIfaceRegister() == 0)
return 0;
@ -147,11 +147,11 @@ Index: libvirt-7.3.0/src/interface/interface_driver.c
if (udevIfaceRegister() == 0)
return 0;
#endif /* WITH_UDEV */
Index: libvirt-7.3.0/meson.build
Index: libvirt-7.4.0/meson.build
===================================================================
--- libvirt-7.3.0.orig/meson.build
+++ libvirt-7.3.0/meson.build
@@ -1062,6 +1062,12 @@ if not get_option('netcf').disabled()
--- libvirt-7.4.0.orig/meson.build
+++ libvirt-7.4.0/meson.build
@@ -1070,6 +1070,12 @@ if not get_option('netcf').disabled()
endif
endif
@ -164,7 +164,7 @@ Index: libvirt-7.3.0/meson.build
have_gnu_gettext_tools = false
if not get_option('nls').disabled()
have_gettext = cc.has_function('gettext')
@@ -1422,10 +1428,10 @@ elif get_option('driver_hyperv').enabled
@@ -1465,10 +1471,10 @@ elif get_option('driver_hyperv').enabled
error('openwsman is required for the Hyper-V driver')
endif
@ -177,7 +177,7 @@ Index: libvirt-7.3.0/meson.build
endif
if not get_option('driver_libxl').disabled() and conf.has('WITH_LIBVIRTD')
@@ -2234,6 +2240,7 @@ libs_summary = {
@@ -2277,6 +2283,7 @@ libs_summary = {
'libssh2': libssh2_dep.found(),
'libutil': libutil_dep.found(),
'netcf': conf.has('WITH_NETCF'),
@ -185,10 +185,10 @@ Index: libvirt-7.3.0/meson.build
'NLS': have_gnu_gettext_tools,
'numactl': numactl_dep.found(),
'openwsman': openwsman_dep.found(),
Index: libvirt-7.3.0/src/interface/meson.build
Index: libvirt-7.4.0/src/interface/meson.build
===================================================================
--- libvirt-7.3.0.orig/src/interface/meson.build
+++ libvirt-7.3.0/src/interface/meson.build
--- libvirt-7.4.0.orig/src/interface/meson.build
+++ libvirt-7.4.0/src/interface/meson.build
@@ -2,7 +2,7 @@ interface_driver_sources = [
'interface_driver.c',
]
@ -206,10 +206,10 @@ Index: libvirt-7.3.0/src/interface/meson.build
udev_dep,
],
'link_args': [
Index: libvirt-7.3.0/meson_options.txt
Index: libvirt-7.4.0/meson_options.txt
===================================================================
--- libvirt-7.3.0.orig/meson_options.txt
+++ libvirt-7.3.0/meson_options.txt
--- libvirt-7.4.0.orig/meson_options.txt
+++ libvirt-7.4.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')

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jun 1 15:06:44 UTC 2021 - James Fehlig <jfehlig@suse.com>
- Update to libvirt 7.4.0
- Many incremental improvements and bug fixes, see
https://libvirt.org/news.html
- Dropped patches:
ee890f25-libxl-mock-funcs.patch
-------------------------------------------------------------------
Mon May 3 22:14:22 UTC 2021 - James Fehlig <jfehlig@suse.com>

View File

@ -141,7 +141,7 @@
Name: libvirt
URL: http://libvirt.org/
Version: 7.3.0
Version: 7.4.0
Release: 0
Summary: Library providing a virtualization API
License: LGPL-2.1-or-later
@ -290,7 +290,6 @@ Source6: libvirtd-relocation-server.xml
Source99: baselibs.conf
Source100: %{name}-rpmlintrc
# Upstream patches
Patch0: ee890f25-libxl-mock-funcs.patch
# Patches pending upstream review
Patch100: libxl-dom-reset.patch
Patch101: network-don-t-use-dhcp-authoritative-on-static-netwo.patch

View File

@ -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-7.3.0/src/libxl/libxl_driver.c
Index: libvirt-7.4.0/src/libxl/libxl_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_driver.c
+++ libvirt-7.3.0/src/libxl/libxl_driver.c
@@ -1371,6 +1371,63 @@ libxlDomainReboot(virDomainPtr dom, unsi
--- libvirt-7.4.0.orig/src/libxl/libxl_driver.c
+++ libvirt-7.4.0/src/libxl/libxl_driver.c
@@ -1367,6 +1367,63 @@ libxlDomainReboot(virDomainPtr dom, unsi
}
static int
@ -76,7 +76,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_driver.c
libxlDomainDestroyFlags(virDomainPtr dom,
unsigned int flags)
{
@@ -6495,6 +6552,7 @@ static virHypervisorDriver libxlHypervis
@@ -6486,6 +6543,7 @@ static virHypervisorDriver libxlHypervis
.domainShutdown = libxlDomainShutdown, /* 0.9.0 */
.domainShutdownFlags = libxlDomainShutdownFlags, /* 0.9.10 */
.domainReboot = libxlDomainReboot, /* 0.9.0 */

View File

@ -3,11 +3,11 @@ https://bugzilla.novell.com/show_bug.cgi?id=879425
src/libxl/libxl_conf.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Index: libvirt-7.3.0/src/libxl/libxl_conf.c
Index: libvirt-7.4.0/src/libxl/libxl_conf.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.3.0/src/libxl/libxl_conf.c
@@ -917,6 +917,30 @@ libxlDiskSetDiscard(libxl_device_disk *x
--- libvirt-7.4.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.4.0/src/libxl/libxl_conf.c
@@ -965,6 +965,30 @@ libxlDiskSetDiscard(libxl_device_disk *x
#endif
}
@ -38,7 +38,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_conf.c
static char *
libxlMakeNetworkDiskSrcStr(virStorageSource *src,
const char *username,
@@ -1159,6 +1183,7 @@ libxlMakeDisk(virDomainDiskDef *l_disk,
@@ -1209,6 +1233,7 @@ libxlMakeDisk(virDomainDiskDef *l_disk,
x_disk->is_cdrom = l_disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM ? 1 : 0;
if (libxlDiskSetDiscard(x_disk, l_disk->discard) < 0)
return -1;

View File

@ -16,11 +16,11 @@ Signed-off-by: Jim Fehlig <jfehlig@suse.com>
tools/virsh.pod | 8 ++++++++
6 files changed, 125 insertions(+), 6 deletions(-)
Index: libvirt-7.3.0/docs/manpages/virsh.rst
Index: libvirt-7.4.0/docs/manpages/virsh.rst
===================================================================
--- libvirt-7.3.0.orig/docs/manpages/virsh.rst
+++ libvirt-7.3.0/docs/manpages/virsh.rst
@@ -3179,7 +3179,8 @@ migrate
--- libvirt-7.4.0.orig/docs/manpages/virsh.rst
+++ libvirt-7.4.0/docs/manpages/virsh.rst
@@ -3180,7 +3180,8 @@ migrate
[--postcopy-bandwidth bandwidth]
[--parallel [--parallel-connections connections]]
[--bandwidth bandwidth] [--tls-destination hostname]
@ -30,7 +30,7 @@ Index: libvirt-7.3.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*
@@ -3285,6 +3286,12 @@ parallel connections. The number of such
@@ -3286,6 +3287,12 @@ parallel connections. The number of such
network link between the source and the target and thus speeding up the
migration.
@ -43,11 +43,11 @@ Index: libvirt-7.3.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-7.3.0/include/libvirt/libvirt-domain.h
Index: libvirt-7.4.0/include/libvirt/libvirt-domain.h
===================================================================
--- libvirt-7.3.0.orig/include/libvirt/libvirt-domain.h
+++ libvirt-7.3.0/include/libvirt/libvirt-domain.h
@@ -1078,6 +1078,25 @@ typedef enum {
--- libvirt-7.4.0.orig/include/libvirt/libvirt-domain.h
+++ libvirt-7.4.0/include/libvirt/libvirt-domain.h
@@ -1079,6 +1079,25 @@ typedef enum {
*/
# define VIR_MIGRATE_PARAM_TLS_DESTINATION "tls.destination"
@ -73,11 +73,11 @@ Index: libvirt-7.3.0/include/libvirt/libvirt-domain.h
/* Domain migration. */
virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn,
unsigned long flags, const char *dname,
Index: libvirt-7.3.0/src/libxl/libxl_driver.c
Index: libvirt-7.4.0/src/libxl/libxl_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_driver.c
+++ libvirt-7.3.0/src/libxl/libxl_driver.c
@@ -6059,6 +6059,9 @@ libxlDomainMigratePerform3Params(virDoma
--- libvirt-7.4.0.orig/src/libxl/libxl_driver.c
+++ libvirt-7.4.0/src/libxl/libxl_driver.c
@@ -6050,6 +6050,9 @@ libxlDomainMigratePerform3Params(virDoma
const char *dname = NULL;
const char *uri = NULL;
int ret = -1;
@ -87,7 +87,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_driver.c
#ifdef LIBXL_HAVE_NO_SUSPEND_RESUME
virReportUnsupportedError();
@@ -6075,6 +6078,15 @@ libxlDomainMigratePerform3Params(virDoma
@@ -6066,6 +6069,15 @@ libxlDomainMigratePerform3Params(virDoma
virTypedParamsGetString(params, nparams,
VIR_MIGRATE_PARAM_DEST_NAME,
&dname) < 0 ||
@ -103,7 +103,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_driver.c
virTypedParamsGetString(params, nparams,
VIR_MIGRATE_PARAM_URI,
&uri) < 0)
@@ -6089,11 +6101,11 @@ libxlDomainMigratePerform3Params(virDoma
@@ -6080,11 +6092,11 @@ libxlDomainMigratePerform3Params(virDoma
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
if (libxlDomainMigrationSrcPerformP2P(driver, vm, dom->conn, dom_xml,
@ -117,10 +117,10 @@ Index: libvirt-7.3.0/src/libxl/libxl_driver.c
goto cleanup;
}
Index: libvirt-7.3.0/src/libxl/libxl_migration.c
Index: libvirt-7.4.0/src/libxl/libxl_migration.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_migration.c
+++ libvirt-7.3.0/src/libxl/libxl_migration.c
--- libvirt-7.4.0.orig/src/libxl/libxl_migration.c
+++ libvirt-7.4.0/src/libxl/libxl_migration.c
@@ -340,18 +340,38 @@ libxlMigrateDstReceive(virNetSocket *soc
static int
libxlDoMigrateSrcSend(libxlDriverPrivate *driver,
@ -281,10 +281,10 @@ Index: libvirt-7.3.0/src/libxl/libxl_migration.c
virObjectLock(vm);
if (ret == 0) {
Index: libvirt-7.3.0/src/libxl/libxl_migration.h
Index: libvirt-7.4.0/src/libxl/libxl_migration.h
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_migration.h
+++ libvirt-7.3.0/src/libxl/libxl_migration.h
--- libvirt-7.4.0.orig/src/libxl/libxl_migration.h
+++ libvirt-7.4.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, \
@ -327,11 +327,11 @@ Index: libvirt-7.3.0/src/libxl/libxl_migration.h
virDomainPtr
libxlDomainMigrationDstFinish(virConnectPtr dconn,
Index: libvirt-7.3.0/tools/virsh-domain.c
Index: libvirt-7.4.0/tools/virsh-domain.c
===================================================================
--- libvirt-7.3.0.orig/tools/virsh-domain.c
+++ libvirt-7.3.0/tools/virsh-domain.c
@@ -10683,6 +10683,18 @@ static const vshCmdOptDef opts_migrate[]
--- libvirt-7.4.0.orig/tools/virsh-domain.c
+++ libvirt-7.4.0/tools/virsh-domain.c
@@ -10685,6 +10685,18 @@ static const vshCmdOptDef opts_migrate[]
.type = VSH_OT_STRING,
.help = N_("override the destination host name used for TLS verification")
},
@ -350,7 +350,7 @@ Index: libvirt-7.3.0/tools/virsh-domain.c
{.name = NULL}
};
@@ -10703,6 +10715,7 @@ doMigrate(void *opaque)
@@ -10705,6 +10717,7 @@ doMigrate(void *opaque)
unsigned long long ullOpt = 0;
int rv;
virConnectPtr dconn = data->dconn;
@ -358,7 +358,7 @@ Index: libvirt-7.3.0/tools/virsh-domain.c
#ifndef WIN32
sigset_t sigmask, oldsigmask;
@@ -10833,6 +10846,22 @@ doMigrate(void *opaque)
@@ -10835,6 +10848,22 @@ doMigrate(void *opaque)
goto save_error;
}

View File

@ -7,11 +7,11 @@ and npiv.
For more details, see bsc#954872 and FATE#319810
Index: libvirt-7.3.0/src/libxl/libxl_conf.c
Index: libvirt-7.4.0/src/libxl/libxl_conf.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.3.0/src/libxl/libxl_conf.c
@@ -917,6 +917,22 @@ libxlDiskSetDiscard(libxl_device_disk *x
--- libvirt-7.4.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.4.0/src/libxl/libxl_conf.c
@@ -965,6 +965,22 @@ libxlDiskSetDiscard(libxl_device_disk *x
#endif
}
@ -34,7 +34,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_conf.c
static void
libxlDiskSetCacheMode(libxl_device_disk *x_disk, int cachemode)
{
@@ -1058,6 +1074,7 @@ libxlMakeNetworkDiskSrc(virStorageSource
@@ -1110,6 +1126,7 @@ libxlMakeNetworkDiskSrc(virStorageSource
int
libxlMakeDisk(virDomainDiskDef *l_disk, libxl_device_disk *x_disk)
{
@ -42,7 +42,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_conf.c
const char *driver = virDomainDiskGetDriver(l_disk);
int format = virDomainDiskGetFormat(l_disk);
int actual_type = virStorageSourceGetActualType(l_disk->src);
@@ -1073,7 +1090,7 @@ libxlMakeDisk(virDomainDiskDef *l_disk,
@@ -1123,7 +1140,7 @@ libxlMakeDisk(virDomainDiskDef *l_disk,
if (libxlMakeNetworkDiskSrc(l_disk->src, &x_disk->pdev_path) < 0)
return -1;
} else {
@ -51,7 +51,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_conf.c
}
x_disk->vdev = g_strdup(l_disk->dst);
@@ -1184,6 +1201,9 @@ libxlMakeDisk(virDomainDiskDef *l_disk,
@@ -1234,6 +1251,9 @@ libxlMakeDisk(virDomainDiskDef *l_disk,
if (libxlDiskSetDiscard(x_disk, l_disk->discard) < 0)
return -1;
libxlDiskSetCacheMode(x_disk, l_disk->cachemode);

View File

@ -13,10 +13,10 @@ device with the same name that is being created.
src/lxc/lxc_process.c | 1 +
3 files changed, 4 insertions(+)
Index: libvirt-7.3.0/src/lxc/lxc_controller.c
Index: libvirt-7.4.0/src/lxc/lxc_controller.c
===================================================================
--- libvirt-7.3.0.orig/src/lxc/lxc_controller.c
+++ libvirt-7.3.0/src/lxc/lxc_controller.c
--- libvirt-7.4.0.orig/src/lxc/lxc_controller.c
+++ libvirt-7.4.0/src/lxc/lxc_controller.c
@@ -2013,6 +2013,7 @@ static int virLXCControllerDeleteInterfa
if (virNetDevVethDelete(ctrl->veths[i]) < 0)
ret = -1;
@ -25,10 +25,10 @@ Index: libvirt-7.3.0/src/lxc/lxc_controller.c
return ret;
}
Index: libvirt-7.3.0/src/lxc/lxc_driver.c
Index: libvirt-7.4.0/src/lxc/lxc_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/lxc/lxc_driver.c
+++ libvirt-7.3.0/src/lxc/lxc_driver.c
--- libvirt-7.4.0.orig/src/lxc/lxc_driver.c
+++ libvirt-7.4.0/src/lxc/lxc_driver.c
@@ -67,6 +67,7 @@
#include "virtime.h"
#include "virtypedparam.h"
@ -37,7 +37,7 @@ Index: libvirt-7.3.0/src/lxc/lxc_driver.c
#include "virstring.h"
#include "viraccessapicheck.h"
#include "viraccessapichecklxc.h"
@@ -3546,6 +3547,7 @@ lxcDomainAttachDeviceNetLive(virLXCDrive
@@ -3542,6 +3543,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-7.3.0/src/lxc/lxc_driver.c
break;
case VIR_DOMAIN_NET_TYPE_DIRECT:
@@ -3985,6 +3987,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb
@@ -3981,6 +3983,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb
virDomainAuditNet(vm, detach, NULL, "detach", false);
goto cleanup;
}
@ -53,10 +53,10 @@ Index: libvirt-7.3.0/src/lxc/lxc_driver.c
break;
/* It'd be nice to support this, but with macvlan
Index: libvirt-7.3.0/src/lxc/lxc_process.c
Index: libvirt-7.4.0/src/lxc/lxc_process.c
===================================================================
--- libvirt-7.3.0.orig/src/lxc/lxc_process.c
+++ libvirt-7.3.0/src/lxc/lxc_process.c
--- libvirt-7.4.0.orig/src/lxc/lxc_process.c
+++ libvirt-7.4.0/src/lxc/lxc_process.c
@@ -51,6 +51,7 @@
#include "virstring.h"
#include "virprocess.h"

View File

@ -17,10 +17,10 @@ Signed-off-by: Martin Wilck <mwilck@suse.com>
tests/networkxml2confdata/dhcp6host-routed-network.conf | 1 -
2 files changed, 8 insertions(+), 2 deletions(-)
Index: libvirt-7.3.0/src/network/bridge_driver.c
Index: libvirt-7.4.0/src/network/bridge_driver.c
===================================================================
--- libvirt-7.3.0.orig/src/network/bridge_driver.c
+++ libvirt-7.3.0/src/network/bridge_driver.c
--- libvirt-7.4.0.orig/src/network/bridge_driver.c
+++ libvirt-7.4.0/src/network/bridge_driver.c
@@ -1482,7 +1482,14 @@ networkDnsmasqConfContents(virNetworkObj
if (VIR_SOCKET_ADDR_IS_FAMILY(&ipdef->address, AF_INET)) {
if (ipdef->nranges || ipdef->nhosts) {
@ -37,10 +37,10 @@ Index: libvirt-7.3.0/src/network/bridge_driver.c
}
if (ipdef->tftproot) {
Index: libvirt-7.3.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
Index: libvirt-7.4.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
===================================================================
--- libvirt-7.3.0.orig/tests/networkxml2confdata/dhcp6host-routed-network.conf
+++ libvirt-7.3.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
--- libvirt-7.4.0.orig/tests/networkxml2confdata/dhcp6host-routed-network.conf
+++ libvirt-7.4.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
@@ -10,7 +10,6 @@ bind-dynamic
interface=virbr1
dhcp-range=192.168.122.1,static

View File

@ -2,10 +2,10 @@ Canonicalize hostarch name ppc64le to ppc64
See bnc#894956
Index: libvirt-7.3.0/src/util/virarch.c
Index: libvirt-7.4.0/src/util/virarch.c
===================================================================
--- libvirt-7.3.0.orig/src/util/virarch.c
+++ libvirt-7.3.0/src/util/virarch.c
--- libvirt-7.4.0.orig/src/util/virarch.c
+++ libvirt-7.4.0/src/util/virarch.c
@@ -220,6 +220,8 @@ virArch virArchFromHost(void)
arch = VIR_ARCH_I686;
} else if (STREQ(ut.machine, "amd64")) {

View File

@ -1,7 +1,7 @@
Index: libvirt-7.3.0/src/security/apparmor/libvirt-qemu
Index: libvirt-7.4.0/src/security/apparmor/libvirt-qemu
===================================================================
--- libvirt-7.3.0.orig/src/security/apparmor/libvirt-qemu
+++ libvirt-7.3.0/src/security/apparmor/libvirt-qemu
--- libvirt-7.4.0.orig/src/security/apparmor/libvirt-qemu
+++ libvirt-7.4.0/src/security/apparmor/libvirt-qemu
@@ -244,3 +244,6 @@
# /sys/bus/nd/devices
/ r, # harmless on any lsb compliant system

View File

@ -8,10 +8,10 @@ It was also noticed that the per-domain profiles need a libnl rule
to squelch a denial when starting confined domains.
Found while investigating bsc#1058847
Index: libvirt-7.3.0/src/security/apparmor/libvirt-qemu
Index: libvirt-7.4.0/src/security/apparmor/libvirt-qemu
===================================================================
--- libvirt-7.3.0.orig/src/security/apparmor/libvirt-qemu
+++ libvirt-7.3.0/src/security/apparmor/libvirt-qemu
--- libvirt-7.4.0.orig/src/security/apparmor/libvirt-qemu
+++ libvirt-7.4.0/src/security/apparmor/libvirt-qemu
@@ -64,6 +64,7 @@
#/dev/fb* rw,
@ -20,10 +20,10 @@ Index: libvirt-7.3.0/src/security/apparmor/libvirt-qemu
@{HOME}/.pulse-cookie rwk,
owner /root/.pulse-cookie rwk,
owner /root/.pulse/ rw,
Index: libvirt-7.3.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in
Index: libvirt-7.4.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in
===================================================================
--- libvirt-7.3.0.orig/src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in
+++ libvirt-7.3.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in
--- libvirt-7.4.0.orig/src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in
+++ libvirt-7.4.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in
@@ -19,7 +19,7 @@ profile virt-aa-helper @libexecdir@/virt
# Used when internally running another command (namely apparmor_parser)
@{PROC}/@{pid}/fd/ r,

View File

@ -1,9 +1,9 @@
Adjust libvirt-guests service to conform to SUSE standards
Index: libvirt-7.3.0/tools/libvirt-guests.sh.in
Index: libvirt-7.4.0/tools/libvirt-guests.sh.in
===================================================================
--- libvirt-7.3.0.orig/tools/libvirt-guests.sh.in
+++ libvirt-7.3.0/tools/libvirt-guests.sh.in
--- libvirt-7.4.0.orig/tools/libvirt-guests.sh.in
+++ libvirt-7.4.0/tools/libvirt-guests.sh.in
@@ -20,10 +20,6 @@ sysconfdir="@sysconfdir@"
localstatedir="@localstatedir@"
libvirtd="@sbindir@"/libvirtd
@ -28,10 +28,10 @@ Index: libvirt-7.3.0/tools/libvirt-guests.sh.in
RETVAL=0
Index: libvirt-7.3.0/tools/libvirt-guests.sysconf
Index: libvirt-7.4.0/tools/libvirt-guests.sysconf
===================================================================
--- libvirt-7.3.0.orig/tools/libvirt-guests.sysconf
+++ libvirt-7.3.0/tools/libvirt-guests.sysconf
--- libvirt-7.4.0.orig/tools/libvirt-guests.sysconf
+++ libvirt-7.4.0/tools/libvirt-guests.sysconf
@@ -1,9 +1,14 @@
+## Path: System/Virtualization/libvirt-guests
# Customizations for the libvirt-guests.service systemd unit

View File

@ -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-7.3.0/src/remote/remote_daemon_config.c
Index: libvirt-7.4.0/src/remote/remote_daemon_config.c
===================================================================
--- libvirt-7.3.0.orig/src/remote/remote_daemon_config.c
+++ libvirt-7.3.0/src/remote/remote_daemon_config.c
--- libvirt-7.4.0.orig/src/remote/remote_daemon_config.c
+++ libvirt-7.4.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-7.3.0/src/remote/remote_daemon_config.c
# else /* ! LIBVIRTD */
data->listen_tls = false; /* Always honoured, --listen doesn't exist. */
# endif /* ! LIBVIRTD */
Index: libvirt-7.3.0/src/remote/libvirtd.conf.in
Index: libvirt-7.4.0/src/remote/libvirtd.conf.in
===================================================================
--- libvirt-7.3.0.orig/src/remote/libvirtd.conf.in
+++ libvirt-7.3.0/src/remote/libvirtd.conf.in
--- libvirt-7.4.0.orig/src/remote/libvirtd.conf.in
+++ libvirt-7.4.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-7.3.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-7.3.0/src/remote/test_libvirtd.aug.in
Index: libvirt-7.4.0/src/remote/test_libvirtd.aug.in
===================================================================
--- libvirt-7.3.0.orig/src/remote/test_libvirtd.aug.in
+++ libvirt-7.3.0/src/remote/test_libvirtd.aug.in
--- libvirt-7.4.0.orig/src/remote/test_libvirtd.aug.in
+++ libvirt-7.4.0/src/remote/test_libvirtd.aug.in
@@ -3,7 +3,7 @@ module Test_@DAEMON_NAME@ =
test @DAEMON_NAME_UC@.lns get conf =

View File

@ -1,9 +1,9 @@
Adjust libvirtd sysconfig file to conform to SUSE standards
Index: libvirt-7.3.0/src/remote/libvirtd.sysconf
Index: libvirt-7.4.0/src/remote/libvirtd.sysconf
===================================================================
--- libvirt-7.3.0.orig/src/remote/libvirtd.sysconf
+++ libvirt-7.3.0/src/remote/libvirtd.sysconf
--- libvirt-7.4.0.orig/src/remote/libvirtd.sysconf
+++ libvirt-7.4.0/src/remote/libvirtd.sysconf
@@ -1,5 +1,8 @@
+## Path: System/Virtualization/libvirt
# Customizations for the libvirtd.service systemd unit

View File

@ -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-7.3.0/src/libxl/libxl.conf
Index: libvirt-7.4.0/src/libxl/libxl.conf
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl.conf
+++ libvirt-7.3.0/src/libxl/libxl.conf
--- libvirt-7.4.0.orig/src/libxl/libxl.conf
+++ libvirt-7.4.0/src/libxl/libxl.conf
@@ -4,12 +4,11 @@
# Enable autoballooning of domain0
@ -27,11 +27,11 @@ Index: libvirt-7.3.0/src/libxl/libxl.conf
# In order to prevent accidentally starting two domains that
Index: libvirt-7.3.0/src/libxl/libxl_conf.c
Index: libvirt-7.4.0/src/libxl/libxl_conf.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.3.0/src/libxl/libxl_conf.c
@@ -1744,15 +1744,12 @@ libxlMakeBuildInfoVfb(virPortAllocatorRa
--- libvirt-7.4.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.4.0/src/libxl/libxl_conf.c
@@ -1786,15 +1786,12 @@ libxlMakeBuildInfoVfb(virPortAllocatorRa
/*
* Get domain0 autoballoon configuration. Honor user-specified
* setting in libxl.conf first. If not specified, autoballooning
@ -48,7 +48,7 @@ Index: libvirt-7.3.0/src/libxl/libxl_conf.c
int res;
res = virConfGetValueBool(conf, "autoballoon", &cfg->autoballoon);
@@ -1761,15 +1758,8 @@ libxlGetAutoballoonConf(libxlDriverConfi
@@ -1803,15 +1800,8 @@ libxlGetAutoballoonConf(libxlDriverConfi
else if (res == 1)
return 0;
@ -66,10 +66,10 @@ Index: libvirt-7.3.0/src/libxl/libxl_conf.c
return 0;
}
Index: libvirt-7.3.0/src/libxl/test_libvirtd_libxl.aug.in
Index: libvirt-7.4.0/src/libxl/test_libvirtd_libxl.aug.in
===================================================================
--- libvirt-7.3.0.orig/src/libxl/test_libvirtd_libxl.aug.in
+++ libvirt-7.3.0/src/libxl/test_libvirtd_libxl.aug.in
--- libvirt-7.4.0.orig/src/libxl/test_libvirtd_libxl.aug.in
+++ libvirt-7.4.0/src/libxl/test_libvirtd_libxl.aug.in
@@ -2,7 +2,7 @@ module Test_libvirtd_libxl =
@CONFIG@

View File

@ -1,9 +1,9 @@
Adjust paths of OVMF firmwares on SUSE distros
Index: libvirt-7.3.0/src/qemu/qemu.conf
Index: libvirt-7.4.0/src/qemu/qemu.conf
===================================================================
--- libvirt-7.3.0.orig/src/qemu/qemu.conf
+++ libvirt-7.3.0/src/qemu/qemu.conf
--- libvirt-7.4.0.orig/src/qemu/qemu.conf
+++ libvirt-7.4.0/src/qemu/qemu.conf
@@ -858,10 +858,9 @@
# for x86_64 and i686, but it's AAVMF for aarch64. The libvirt default
# follows this scheme.
@ -18,10 +18,10 @@ Index: libvirt-7.3.0/src/qemu/qemu.conf
#]
# The backend to use for handling stdout/stderr output from
Index: libvirt-7.3.0/src/qemu/qemu_conf.c
Index: libvirt-7.4.0/src/qemu/qemu_conf.c
===================================================================
--- libvirt-7.3.0.orig/src/qemu/qemu_conf.c
+++ libvirt-7.3.0/src/qemu/qemu_conf.c
--- libvirt-7.4.0.orig/src/qemu/qemu_conf.c
+++ libvirt-7.4.0/src/qemu/qemu_conf.c
@@ -98,10 +98,9 @@ qemuDriverUnlock(virQEMUDriver *driver)
#ifndef DEFAULT_LOADER_NVRAM
@ -36,10 +36,10 @@ Index: libvirt-7.3.0/src/qemu/qemu_conf.c
#endif
Index: libvirt-7.3.0/src/security/virt-aa-helper.c
Index: libvirt-7.4.0/src/security/virt-aa-helper.c
===================================================================
--- libvirt-7.3.0.orig/src/security/virt-aa-helper.c
+++ libvirt-7.3.0/src/security/virt-aa-helper.c
--- libvirt-7.4.0.orig/src/security/virt-aa-helper.c
+++ libvirt-7.4.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 */
@ -50,10 +50,10 @@ Index: libvirt-7.3.0/src/security/virt-aa-helper.c
};
/* override the above with these */
const char * const override[] = {
Index: libvirt-7.3.0/src/qemu/test_libvirtd_qemu.aug.in
Index: libvirt-7.4.0/src/qemu/test_libvirtd_qemu.aug.in
===================================================================
--- libvirt-7.3.0.orig/src/qemu/test_libvirtd_qemu.aug.in
+++ libvirt-7.3.0/src/qemu/test_libvirtd_qemu.aug.in
--- libvirt-7.4.0.orig/src/qemu/test_libvirtd_qemu.aug.in
+++ libvirt-7.4.0/src/qemu/test_libvirtd_qemu.aug.in
@@ -96,10 +96,9 @@ module Test_libvirtd_qemu =
{ "migration_port_max" = "49215" }
{ "log_timestamp" = "0" }

View File

@ -7,10 +7,10 @@ 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-7.3.0/src/qemu/qemu.conf
Index: libvirt-7.4.0/src/qemu/qemu.conf
===================================================================
--- libvirt-7.3.0.orig/src/qemu/qemu.conf
+++ libvirt-7.3.0/src/qemu/qemu.conf
--- libvirt-7.4.0.orig/src/qemu/qemu.conf
+++ libvirt-7.4.0/src/qemu/qemu.conf
@@ -491,10 +491,19 @@
# isolation, but it cannot appear in a list of drivers.
#
@ -60,10 +60,10 @@ Index: libvirt-7.3.0/src/qemu/qemu.conf
#
#lock_manager = "lockd"
Index: libvirt-7.3.0/src/qemu/qemu_conf.c
Index: libvirt-7.4.0/src/qemu/qemu_conf.c
===================================================================
--- libvirt-7.3.0.orig/src/qemu/qemu_conf.c
+++ libvirt-7.3.0/src/qemu/qemu_conf.c
--- libvirt-7.4.0.orig/src/qemu/qemu_conf.c
+++ libvirt-7.4.0/src/qemu/qemu_conf.c
@@ -272,7 +272,7 @@ virQEMUDriverConfig *virQEMUDriverConfig
cfg->slirpHelperName = g_strdup(QEMU_SLIRP_HELPER);
cfg->dbusDaemonName = g_strdup(QEMU_DBUS_DAEMON);
@ -73,10 +73,10 @@ Index: libvirt-7.3.0/src/qemu/qemu_conf.c
cfg->securityRequireConfined = false;
cfg->keepAliveInterval = 5;
Index: libvirt-7.3.0/src/qemu/test_libvirtd_qemu.aug.in
Index: libvirt-7.4.0/src/qemu/test_libvirtd_qemu.aug.in
===================================================================
--- libvirt-7.3.0.orig/src/qemu/test_libvirtd_qemu.aug.in
+++ libvirt-7.3.0/src/qemu/test_libvirtd_qemu.aug.in
--- libvirt-7.4.0.orig/src/qemu/test_libvirtd_qemu.aug.in
+++ libvirt-7.4.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" }

View File

@ -1,9 +1,9 @@
Adjust virtlockd sysconfig file to conform to SUSE standards
Index: libvirt-7.3.0/src/locking/virtlockd.sysconf
Index: libvirt-7.4.0/src/locking/virtlockd.sysconf
===================================================================
--- libvirt-7.3.0.orig/src/locking/virtlockd.sysconf
+++ libvirt-7.3.0/src/locking/virtlockd.sysconf
--- libvirt-7.4.0.orig/src/locking/virtlockd.sysconf
+++ libvirt-7.4.0/src/locking/virtlockd.sysconf
@@ -1,3 +1,7 @@
+## Path: System/Virtualization/virtlockd
+

View File

@ -1,9 +1,9 @@
Adjust virtlogd sysconfig file to conform to SUSE standards
Index: libvirt-7.3.0/src/logging/virtlogd.sysconf
Index: libvirt-7.4.0/src/logging/virtlogd.sysconf
===================================================================
--- libvirt-7.3.0.orig/src/logging/virtlogd.sysconf
+++ libvirt-7.3.0/src/logging/virtlogd.sysconf
--- libvirt-7.4.0.orig/src/logging/virtlogd.sysconf
+++ libvirt-7.4.0/src/logging/virtlogd.sysconf
@@ -1,3 +1,7 @@
+## Path: System/Virtualization/virtlogd
+

View File

@ -5,11 +5,11 @@ upstream support for firmware autoselection in the xen driver. Sadly, the
upstream efforts to improve firmware handling in the qemu driver broke
the firmware handling in the xen driver.
Index: libvirt-7.3.0/src/libxl/libxl_conf.c
Index: libvirt-7.4.0/src/libxl/libxl_conf.c
===================================================================
--- libvirt-7.3.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.3.0/src/libxl/libxl_conf.c
@@ -1784,6 +1784,15 @@ libxlDriverConfigNew(void)
--- libvirt-7.4.0.orig/src/libxl/libxl_conf.c
+++ libvirt-7.4.0/src/libxl/libxl_conf.c
@@ -1826,6 +1826,15 @@ libxlDriverConfigNew(void)
cfg->autoDumpDir = g_strdup(LIBXL_DUMP_DIR);
cfg->channelDir = g_strdup(LIBXL_CHANNEL_DIR);

View File

@ -1,7 +1,7 @@
Index: libvirt-7.3.0/tools/virt-create-rootfs
Index: libvirt-7.4.0/tools/virt-create-rootfs
===================================================================
--- /dev/null
+++ libvirt-7.3.0/tools/virt-create-rootfs
+++ libvirt-7.4.0/tools/virt-create-rootfs
@@ -0,0 +1,231 @@
+#!/bin/sh
+set -e
@ -234,10 +234,10 @@ Index: libvirt-7.3.0/tools/virt-create-rootfs
+ echo "pts/0" >> "$ROOT/etc/securetty"
+ chroot "$ROOT" /usr/bin/passwd
+fi
Index: libvirt-7.3.0/docs/manpages/virt-create-rootfs.rst
Index: libvirt-7.4.0/docs/manpages/virt-create-rootfs.rst
===================================================================
--- /dev/null
+++ libvirt-7.3.0/docs/manpages/virt-create-rootfs.rst
+++ libvirt-7.4.0/docs/manpages/virt-create-rootfs.rst
@@ -0,0 +1,88 @@
+==================
+virt-create-rootfs
@ -327,10 +327,10 @@ Index: libvirt-7.3.0/docs/manpages/virt-create-rootfs.rst
+========
+
+virsh(1), `https://libvirt.org/ <https://libvirt.org/>`_
Index: libvirt-7.3.0/docs/manpages/meson.build
Index: libvirt-7.4.0/docs/manpages/meson.build
===================================================================
--- libvirt-7.3.0.orig/docs/manpages/meson.build
+++ libvirt-7.3.0/docs/manpages/meson.build
--- libvirt-7.4.0.orig/docs/manpages/meson.build
+++ libvirt-7.4.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') },
@ -339,10 +339,10 @@ Index: libvirt-7.3.0/docs/manpages/meson.build
{ 'name': 'libvirtd', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') },
{ 'name': 'virt-sanlock-cleanup', 'section': '8', 'install': conf.has('WITH_SANLOCK') },
Index: libvirt-7.3.0/tools/meson.build
Index: libvirt-7.4.0/tools/meson.build
===================================================================
--- libvirt-7.3.0.orig/tools/meson.build
+++ libvirt-7.3.0/tools/meson.build
--- libvirt-7.4.0.orig/tools/meson.build
+++ libvirt-7.4.0/tools/meson.build
@@ -149,6 +149,8 @@ else
virsh_icon_res = []
endif