forked from pool/libvirt
Accepting request 737170 from home:jfehlig:branches:Virtualization
- Update to libvirt 5.8.0 - bsc#1149100 - Many incremental improvements and bug fixes, see https://libvirt.org/news.html OBS-URL: https://build.opensuse.org/request/show/737170 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=777
This commit is contained in:
parent
1b00e66448
commit
6d0cf4b109
@ -18,11 +18,11 @@ them.
|
|||||||
create mode 100644 src/conf/domain_stats.c
|
create mode 100644 src/conf/domain_stats.c
|
||||||
create mode 100644 src/conf/domain_stats.h
|
create mode 100644 src/conf/domain_stats.h
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/conf/domain_stats.c
|
Index: libvirt-5.8.0/src/conf/domain_stats.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ libvirt-5.7.0/src/conf/domain_stats.c
|
+++ libvirt-5.8.0/src/conf/domain_stats.c
|
||||||
@@ -0,0 +1,139 @@
|
@@ -0,0 +1,119 @@
|
||||||
+/*
|
+/*
|
||||||
+ * domain_stats.c: domain stats extraction helpers
|
+ * domain_stats.c: domain stats extraction helpers
|
||||||
+ *
|
+ *
|
||||||
@ -63,52 +63,34 @@ Index: libvirt-5.7.0/src/conf/domain_stats.c
|
|||||||
+
|
+
|
||||||
+int
|
+int
|
||||||
+virDomainStatsGetState(virDomainObjPtr dom,
|
+virDomainStatsGetState(virDomainObjPtr dom,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params)
|
||||||
+ int *maxparams)
|
|
||||||
+{
|
+{
|
||||||
+ if (virTypedParamsAddInt(&record->params,
|
+ if (virTypedParamListAddInt(params, dom->state.state, "state.state") < 0)
|
||||||
+ &record->nparams,
|
|
||||||
+ maxparams,
|
|
||||||
+ "state.state",
|
|
||||||
+ dom->state.state) < 0)
|
|
||||||
+ return -1;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ if (virTypedParamsAddInt(&record->params,
|
+ if (virTypedParamListAddInt(params, dom->state.reason, "state.reason") < 0)
|
||||||
+ &record->nparams,
|
|
||||||
+ maxparams,
|
|
||||||
+ "state.reason",
|
|
||||||
+ dom->state.reason) < 0)
|
|
||||||
+ return -1;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+#define STATS_ADD_NET_PARAM(record, maxparams, num, name, value) \
|
+#define STATS_ADD_NET_PARAM(params, num, name, value) \
|
||||||
+do { \
|
+ if (value >= 0 && \
|
||||||
+ char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; \
|
+ virTypedParamListAddULLong((params), (value), "net.%zu.%s", (num), (name)) < 0) \
|
||||||
+ snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, \
|
+ return -1;
|
||||||
+ "net.%zu.%s", num, name); \
|
|
||||||
+ if (value >= 0 && virTypedParamsAddULLong(&(record)->params, \
|
|
||||||
+ &(record)->nparams, \
|
|
||||||
+ maxparams, \
|
|
||||||
+ param_name, \
|
|
||||||
+ value) < 0) \
|
|
||||||
+ return -1; \
|
|
||||||
+} while (0)
|
|
||||||
+
|
+
|
||||||
+int
|
+int
|
||||||
+virDomainStatsGetInterface(virDomainObjPtr dom,
|
+virDomainStatsGetInterface(virDomainObjPtr dom,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params)
|
||||||
+ int *maxparams)
|
|
||||||
+{
|
+{
|
||||||
+ size_t i;
|
+ size_t i;
|
||||||
+ struct _virDomainInterfaceStats tmp;
|
+ struct _virDomainInterfaceStats tmp;
|
||||||
+ int ret = -1;
|
|
||||||
+
|
+
|
||||||
+ if (!virDomainObjIsActive(dom))
|
+ if (!virDomainObjIsActive(dom))
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+
|
+
|
||||||
+ VIR_DOMAIN_STATS_ADD_COUNT_PARAM(record, maxparams, "net", dom->def->nnets);
|
+ if (virTypedParamListAddUInt(params, dom->def->nnets, "net.count") < 0)
|
||||||
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ /* Check the path is one of the domain's network interfaces. */
|
+ /* Check the path is one of the domain's network interfaces. */
|
||||||
+ for (i = 0; i < dom->def->nnets; i++) {
|
+ for (i = 0; i < dom->def->nnets; i++) {
|
||||||
@ -122,8 +104,8 @@ Index: libvirt-5.7.0/src/conf/domain_stats.c
|
|||||||
+
|
+
|
||||||
+ actualType = virDomainNetGetActualType(net);
|
+ actualType = virDomainNetGetActualType(net);
|
||||||
+
|
+
|
||||||
+ VIR_DOMAIN_STATS_ADD_NAME_PARAM(record, maxparams,
|
+ if (virTypedParamListAddString(params, net->ifname, "net.%zu.name", i) < 0)
|
||||||
+ "net", "name", i, net->ifname);
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ if (actualType == VIR_DOMAIN_NET_TYPE_VHOSTUSER) {
|
+ if (actualType == VIR_DOMAIN_NET_TYPE_VHOSTUSER) {
|
||||||
+ if (virNetDevOpenvswitchInterfaceStats(net->ifname, &tmp) < 0) {
|
+ if (virNetDevOpenvswitchInterfaceStats(net->ifname, &tmp) < 0) {
|
||||||
@ -138,35 +120,33 @@ Index: libvirt-5.7.0/src/conf/domain_stats.c
|
|||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "rx.bytes", tmp.rx_bytes);
|
+ "rx.bytes", tmp.rx_bytes);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "rx.pkts", tmp.rx_packets);
|
+ "rx.pkts", tmp.rx_packets);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "rx.errs", tmp.rx_errs);
|
+ "rx.errs", tmp.rx_errs);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "rx.drop", tmp.rx_drop);
|
+ "rx.drop", tmp.rx_drop);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "tx.bytes", tmp.tx_bytes);
|
+ "tx.bytes", tmp.tx_bytes);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "tx.pkts", tmp.tx_packets);
|
+ "tx.pkts", tmp.tx_packets);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "tx.errs", tmp.tx_errs);
|
+ "tx.errs", tmp.tx_errs);
|
||||||
+ STATS_ADD_NET_PARAM(record, maxparams, i,
|
+ STATS_ADD_NET_PARAM(params, i,
|
||||||
+ "tx.drop", tmp.tx_drop);
|
+ "tx.drop", tmp.tx_drop);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ ret = 0;
|
+ return 0;
|
||||||
+ cleanup:
|
|
||||||
+ return ret;
|
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+#undef STATS_ADD_NET_PARAM
|
+#undef STATS_ADD_NET_PARAM
|
||||||
Index: libvirt-5.7.0/src/conf/domain_stats.h
|
Index: libvirt-5.8.0/src/conf/domain_stats.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ libvirt-5.7.0/src/conf/domain_stats.h
|
+++ libvirt-5.8.0/src/conf/domain_stats.h
|
||||||
@@ -0,0 +1,64 @@
|
@@ -0,0 +1,62 @@
|
||||||
+/*
|
+/*
|
||||||
+ * domain_stats.h: domain stats extraction helpers
|
+ * domain_stats.h: domain stats extraction helpers
|
||||||
+ *
|
+ *
|
||||||
@ -223,19 +203,17 @@ Index: libvirt-5.7.0/src/conf/domain_stats.h
|
|||||||
+} while (0)
|
+} while (0)
|
||||||
+
|
+
|
||||||
+int virDomainStatsGetState(virDomainObjPtr dom,
|
+int virDomainStatsGetState(virDomainObjPtr dom,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params);
|
||||||
+ int *maxparams);
|
|
||||||
+
|
+
|
||||||
+int virDomainStatsGetInterface(virDomainObjPtr dom,
|
+int virDomainStatsGetInterface(virDomainObjPtr dom,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params);
|
||||||
+ int *maxparams);
|
|
||||||
+
|
+
|
||||||
+#endif /* __DOMAIN_STATS_H */
|
+#endif /* __DOMAIN_STATS_H */
|
||||||
Index: libvirt-5.7.0/src/libvirt_private.syms
|
Index: libvirt-5.8.0/src/libvirt_private.syms
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libvirt_private.syms
|
--- libvirt-5.8.0.orig/src/libvirt_private.syms
|
||||||
+++ libvirt-5.7.0/src/libvirt_private.syms
|
+++ libvirt-5.8.0/src/libvirt_private.syms
|
||||||
@@ -695,6 +695,9 @@ virDomainConfNWFilterInstantiate;
|
@@ -697,6 +697,9 @@ virDomainConfNWFilterInstantiate;
|
||||||
virDomainConfNWFilterTeardown;
|
virDomainConfNWFilterTeardown;
|
||||||
virDomainConfVMNWFilterTeardown;
|
virDomainConfVMNWFilterTeardown;
|
||||||
|
|
||||||
@ -253,10 +231,10 @@ Index: libvirt-5.7.0/src/libvirt_private.syms
|
|||||||
virCgroupHasController;
|
virCgroupHasController;
|
||||||
virCgroupHasEmptyTasks;
|
virCgroupHasEmptyTasks;
|
||||||
virCgroupKillPainfully;
|
virCgroupKillPainfully;
|
||||||
Index: libvirt-5.7.0/src/qemu/qemu_driver.c
|
Index: libvirt-5.8.0/src/qemu/qemu_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/qemu/qemu_driver.c
|
--- libvirt-5.8.0.orig/src/qemu/qemu_driver.c
|
||||||
+++ libvirt-5.7.0/src/qemu/qemu_driver.c
|
+++ libvirt-5.8.0/src/qemu/qemu_driver.c
|
||||||
@@ -67,6 +67,7 @@
|
@@ -67,6 +67,7 @@
|
||||||
#include "virarptable.h"
|
#include "virarptable.h"
|
||||||
#include "viruuid.h"
|
#include "viruuid.h"
|
||||||
@ -265,115 +243,53 @@ Index: libvirt-5.7.0/src/qemu/qemu_driver.c
|
|||||||
#include "domain_audit.h"
|
#include "domain_audit.h"
|
||||||
#include "node_device_conf.h"
|
#include "node_device_conf.h"
|
||||||
#include "virpci.h"
|
#include "virpci.h"
|
||||||
@@ -20767,21 +20768,7 @@ qemuDomainGetStatsState(virQEMUDriverPtr
|
@@ -20451,13 +20452,7 @@ qemuDomainGetStatsState(virQEMUDriverPtr
|
||||||
int *maxparams,
|
virTypedParamListPtr params,
|
||||||
unsigned int privflags ATTRIBUTE_UNUSED)
|
unsigned int privflags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
- if (virTypedParamsAddInt(&record->params,
|
- if (virTypedParamListAddInt(params, dom->state.state, "state.state") < 0)
|
||||||
- &record->nparams,
|
|
||||||
- maxparams,
|
|
||||||
- "state.state",
|
|
||||||
- dom->state.state) < 0)
|
|
||||||
- return -1;
|
- return -1;
|
||||||
-
|
-
|
||||||
- if (virTypedParamsAddInt(&record->params,
|
- if (virTypedParamListAddInt(params, dom->state.reason, "state.reason") < 0)
|
||||||
- &record->nparams,
|
|
||||||
- maxparams,
|
|
||||||
- "state.reason",
|
|
||||||
- dom->state.reason) < 0)
|
|
||||||
- return -1;
|
- return -1;
|
||||||
-
|
-
|
||||||
- return 0;
|
- return 0;
|
||||||
+ return virDomainStatsGetState(dom, record, maxparams);
|
+ return virDomainStatsGetState(dom, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -20998,37 +20985,7 @@ qemuDomainGetStatsCpuCgroup(virDomainObj
|
@@ -20659,17 +20654,7 @@ qemuDomainGetStatsCpuCgroup(virDomainObj
|
||||||
int *maxparams)
|
if (!priv->cgroup)
|
||||||
{
|
return 0;
|
||||||
qemuDomainObjPrivatePtr priv = dom->privateData;
|
|
||||||
- unsigned long long cpu_time = 0;
|
|
||||||
- unsigned long long user_time = 0;
|
|
||||||
- unsigned long long sys_time = 0;
|
|
||||||
- int err = 0;
|
|
||||||
-
|
|
||||||
- if (!priv->cgroup)
|
|
||||||
- return 0;
|
|
||||||
-
|
|
||||||
- err = virCgroupGetCpuacctUsage(priv->cgroup, &cpu_time);
|
- err = virCgroupGetCpuacctUsage(priv->cgroup, &cpu_time);
|
||||||
- if (!err && virTypedParamsAddULLong(&record->params,
|
- if (!err && virTypedParamListAddULLong(params, cpu_time, "cpu.time") < 0)
|
||||||
- &record->nparams,
|
|
||||||
- maxparams,
|
|
||||||
- "cpu.time",
|
|
||||||
- cpu_time) < 0)
|
|
||||||
- return -1;
|
- return -1;
|
||||||
-
|
-
|
||||||
- err = virCgroupGetCpuacctStat(priv->cgroup, &user_time, &sys_time);
|
- err = virCgroupGetCpuacctStat(priv->cgroup, &user_time, &sys_time);
|
||||||
- if (!err && virTypedParamsAddULLong(&record->params,
|
- if (!err && virTypedParamListAddULLong(params, user_time, "cpu.user") < 0)
|
||||||
- &record->nparams,
|
|
||||||
- maxparams,
|
|
||||||
- "cpu.user",
|
|
||||||
- user_time) < 0)
|
|
||||||
- return -1;
|
- return -1;
|
||||||
- if (!err && virTypedParamsAddULLong(&record->params,
|
- if (!err && virTypedParamListAddULLong(params, sys_time, "cpu.system") < 0)
|
||||||
- &record->nparams,
|
|
||||||
- maxparams,
|
|
||||||
- "cpu.system",
|
|
||||||
- sys_time) < 0)
|
|
||||||
- return -1;
|
- return -1;
|
||||||
-
|
-
|
||||||
- return 0;
|
- return 0;
|
||||||
+ return virCgroupGetStatsCpu(priv->cgroup, record, maxparams);
|
+ return virCgroupGetStatsCpu(priv->cgroup, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -21224,44 +21181,6 @@ qemuDomainGetStatsVcpu(virQEMUDriverPtr
|
@@ -20827,79 +20812,15 @@ qemuDomainGetStatsVcpu(virQEMUDriverPtr
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
-#define QEMU_ADD_COUNT_PARAM(record, maxparams, type, count) \
|
-#define QEMU_ADD_NET_PARAM(params, num, name, value) \
|
||||||
-do { \
|
- if (value >= 0 && \
|
||||||
- char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; \
|
- virTypedParamListAddULLong((params), (value), "net.%zu.%s", (num), (name)) < 0) \
|
||||||
- snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "%s.count", type); \
|
- return -1;
|
||||||
- if (virTypedParamsAddUInt(&(record)->params, \
|
|
||||||
- &(record)->nparams, \
|
|
||||||
- maxparams, \
|
|
||||||
- param_name, \
|
|
||||||
- count) < 0) \
|
|
||||||
- goto cleanup; \
|
|
||||||
-} while (0)
|
|
||||||
-
|
|
||||||
-#define QEMU_ADD_NAME_PARAM(record, maxparams, type, subtype, num, name) \
|
|
||||||
-do { \
|
|
||||||
- char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; \
|
|
||||||
- snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, \
|
|
||||||
- "%s.%zu.%s", type, num, subtype); \
|
|
||||||
- if (virTypedParamsAddString(&(record)->params, \
|
|
||||||
- &(record)->nparams, \
|
|
||||||
- maxparams, \
|
|
||||||
- param_name, \
|
|
||||||
- name) < 0) \
|
|
||||||
- goto cleanup; \
|
|
||||||
-} while (0)
|
|
||||||
-
|
|
||||||
-#define QEMU_ADD_NET_PARAM(record, maxparams, num, name, value) \
|
|
||||||
-do { \
|
|
||||||
- char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; \
|
|
||||||
- snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, \
|
|
||||||
- "net.%zu.%s", num, name); \
|
|
||||||
- if (value >= 0 && virTypedParamsAddULLong(&(record)->params, \
|
|
||||||
- &(record)->nparams, \
|
|
||||||
- maxparams, \
|
|
||||||
- param_name, \
|
|
||||||
- value) < 0) \
|
|
||||||
- return -1; \
|
|
||||||
-} while (0)
|
|
||||||
-
|
-
|
||||||
static int
|
static int
|
||||||
qemuDomainGetStatsInterface(virQEMUDriverPtr driver ATTRIBUTE_UNUSED,
|
qemuDomainGetStatsInterface(virQEMUDriverPtr driver ATTRIBUTE_UNUSED,
|
||||||
virDomainObjPtr dom,
|
virDomainObjPtr dom,
|
||||||
@@ -21269,68 +21188,9 @@ qemuDomainGetStatsInterface(virQEMUDrive
|
virTypedParamListPtr params,
|
||||||
int *maxparams,
|
|
||||||
unsigned int privflags ATTRIBUTE_UNUSED)
|
unsigned int privflags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
- size_t i;
|
- size_t i;
|
||||||
@ -383,7 +299,8 @@ Index: libvirt-5.7.0/src/qemu/qemu_driver.c
|
|||||||
- if (!virDomainObjIsActive(dom))
|
- if (!virDomainObjIsActive(dom))
|
||||||
- return 0;
|
- return 0;
|
||||||
-
|
-
|
||||||
- QEMU_ADD_COUNT_PARAM(record, maxparams, "net", dom->def->nnets);
|
- if (virTypedParamListAddUInt(params, dom->def->nnets, "net.count") < 0)
|
||||||
|
- goto cleanup;
|
||||||
-
|
-
|
||||||
- /* Check the path is one of the domain's network interfaces. */
|
- /* Check the path is one of the domain's network interfaces. */
|
||||||
- for (i = 0; i < dom->def->nnets; i++) {
|
- for (i = 0; i < dom->def->nnets; i++) {
|
||||||
@ -397,8 +314,8 @@ Index: libvirt-5.7.0/src/qemu/qemu_driver.c
|
|||||||
-
|
-
|
||||||
- actualType = virDomainNetGetActualType(net);
|
- actualType = virDomainNetGetActualType(net);
|
||||||
-
|
-
|
||||||
- QEMU_ADD_NAME_PARAM(record, maxparams,
|
- if (virTypedParamListAddString(params, net->ifname, "net.%zu.name", i) < 0)
|
||||||
- "net", "name", i, net->ifname);
|
- goto cleanup;
|
||||||
-
|
-
|
||||||
- if (actualType == VIR_DOMAIN_NET_TYPE_VHOSTUSER) {
|
- if (actualType == VIR_DOMAIN_NET_TYPE_VHOSTUSER) {
|
||||||
- if (virNetDevOpenvswitchInterfaceStats(net->ifname, &tmp) < 0) {
|
- if (virNetDevOpenvswitchInterfaceStats(net->ifname, &tmp) < 0) {
|
||||||
@ -413,96 +330,45 @@ Index: libvirt-5.7.0/src/qemu/qemu_driver.c
|
|||||||
- }
|
- }
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "rx.bytes", tmp.rx_bytes);
|
- "rx.bytes", tmp.rx_bytes);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "rx.pkts", tmp.rx_packets);
|
- "rx.pkts", tmp.rx_packets);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "rx.errs", tmp.rx_errs);
|
- "rx.errs", tmp.rx_errs);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "rx.drop", tmp.rx_drop);
|
- "rx.drop", tmp.rx_drop);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "tx.bytes", tmp.tx_bytes);
|
- "tx.bytes", tmp.tx_bytes);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "tx.pkts", tmp.tx_packets);
|
- "tx.pkts", tmp.tx_packets);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "tx.errs", tmp.tx_errs);
|
- "tx.errs", tmp.tx_errs);
|
||||||
- QEMU_ADD_NET_PARAM(record, maxparams, i,
|
- QEMU_ADD_NET_PARAM(params, i,
|
||||||
- "tx.drop", tmp.tx_drop);
|
- "tx.drop", tmp.tx_drop);
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
- ret = 0;
|
- ret = 0;
|
||||||
- cleanup:
|
- cleanup:
|
||||||
- return ret;
|
- return ret;
|
||||||
+ return virDomainStatsGetInterface(dom, record, maxparams);
|
+ return virDomainStatsGetInterface(dom,params);
|
||||||
}
|
}
|
||||||
|
|
||||||
-#undef QEMU_ADD_NET_PARAM
|
-#undef QEMU_ADD_NET_PARAM
|
||||||
-
|
|
||||||
#define QEMU_ADD_BLOCK_PARAM_UI(record, maxparams, num, name, value) \
|
|
||||||
do { \
|
|
||||||
char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; \
|
|
||||||
@@ -21560,10 +21420,10 @@ qemuDomainGetStatsBlockExportHeader(virD
|
|
||||||
{
|
|
||||||
int ret = -1;
|
|
||||||
|
|
||||||
- QEMU_ADD_NAME_PARAM(records, nrecords, "block", "name", recordnr, disk->dst);
|
/* refresh information by opening images on the disk */
|
||||||
+ VIR_DOMAIN_STATS_ADD_NAME_PARAM(records, nrecords, "block", "name", recordnr, disk->dst);
|
|
||||||
|
|
||||||
if (virStorageSourceIsLocalStorage(src) && src->path)
|
|
||||||
- QEMU_ADD_NAME_PARAM(records, nrecords, "block", "path", recordnr, src->path);
|
|
||||||
+ VIR_DOMAIN_STATS_ADD_NAME_PARAM(records, nrecords, "block", "path", recordnr, src->path);
|
|
||||||
if (src->id)
|
|
||||||
QEMU_ADD_BLOCK_PARAM_UI(records, nrecords, recordnr, "backingIndex",
|
|
||||||
src->id);
|
|
||||||
@@ -21717,7 +21577,7 @@ qemuDomainGetStatsBlock(virQEMUDriverPtr
|
|
||||||
* after the iteration than it is to iterate twice; but we still
|
|
||||||
* want count listed first. */
|
|
||||||
count_index = record->nparams;
|
|
||||||
- QEMU_ADD_COUNT_PARAM(record, maxparams, "block", 0);
|
|
||||||
+ VIR_DOMAIN_STATS_ADD_COUNT_PARAM(record, maxparams, "block", 0);
|
|
||||||
|
|
||||||
for (i = 0; i < dom->def->ndisks; i++) {
|
|
||||||
if (qemuDomainGetStatsBlockExportDisk(dom->def->disks[i], stats, nodestats,
|
|
||||||
@@ -21742,8 +21602,6 @@ qemuDomainGetStatsBlock(virQEMUDriverPtr
|
|
||||||
|
|
||||||
#undef QEMU_ADD_BLOCK_PARAM_ULL
|
|
||||||
|
|
||||||
-#undef QEMU_ADD_NAME_PARAM
|
|
||||||
-
|
|
||||||
#define QEMU_ADD_IOTHREAD_PARAM_UI(record, maxparams, id, name, value) \
|
|
||||||
do { \
|
|
||||||
char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; \
|
|
||||||
@@ -21795,7 +21653,7 @@ qemuDomainGetStatsIOThread(virQEMUDriver
|
|
||||||
if (niothreads == 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
- QEMU_ADD_COUNT_PARAM(record, maxparams, "iothread", niothreads);
|
|
||||||
+ VIR_DOMAIN_STATS_ADD_COUNT_PARAM(record, maxparams, "iothread", niothreads);
|
|
||||||
|
|
||||||
for (i = 0; i < niothreads; i++) {
|
|
||||||
if (iothreads[i]->poll_valid) {
|
|
||||||
@@ -21828,8 +21686,6 @@ qemuDomainGetStatsIOThread(virQEMUDriver
|
|
||||||
|
|
||||||
#undef QEMU_ADD_IOTHREAD_PARAM_ULL
|
|
||||||
|
|
||||||
-#undef QEMU_ADD_COUNT_PARAM
|
|
||||||
-
|
|
||||||
static int
|
static int
|
||||||
qemuDomainGetStatsPerfOneEvent(virPerfPtr perf,
|
Index: libvirt-5.8.0/src/util/vircgroup.c
|
||||||
virPerfEventType type,
|
|
||||||
Index: libvirt-5.7.0/src/util/vircgroup.c
|
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/util/vircgroup.c
|
--- libvirt-5.8.0.orig/src/util/vircgroup.c
|
||||||
+++ libvirt-5.7.0/src/util/vircgroup.c
|
+++ libvirt-5.8.0/src/util/vircgroup.c
|
||||||
@@ -2791,6 +2791,44 @@ virCgroupControllerAvailable(int control
|
@@ -2792,6 +2792,31 @@ virCgroupControllerAvailable(int control
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
+int
|
+int
|
||||||
+virCgroupGetStatsCpu(virCgroupPtr cgroup,
|
+virCgroupGetStatsCpu(virCgroupPtr cgroup,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params)
|
||||||
+ int *maxparams)
|
|
||||||
+{
|
+{
|
||||||
+ unsigned long long cpu_time = 0;
|
+ unsigned long long cpu_time = 0;
|
||||||
+ unsigned long long user_time = 0;
|
+ unsigned long long user_time = 0;
|
||||||
@ -513,25 +379,13 @@ Index: libvirt-5.7.0/src/util/vircgroup.c
|
|||||||
+ return 0;
|
+ return 0;
|
||||||
+
|
+
|
||||||
+ err = virCgroupGetCpuacctUsage(cgroup, &cpu_time);
|
+ err = virCgroupGetCpuacctUsage(cgroup, &cpu_time);
|
||||||
+ if (!err && virTypedParamsAddULLong(&record->params,
|
+ if (!err && virTypedParamListAddULLong(params, cpu_time, "cpu.time") < 0)
|
||||||
+ &record->nparams,
|
|
||||||
+ maxparams,
|
|
||||||
+ "cpu.time",
|
|
||||||
+ cpu_time) < 0)
|
|
||||||
+ return -1;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ err = virCgroupGetCpuacctStat(cgroup, &user_time, &sys_time);
|
+ err = virCgroupGetCpuacctStat(cgroup, &user_time, &sys_time);
|
||||||
+ if (!err && virTypedParamsAddULLong(&record->params,
|
+ if (!err && virTypedParamListAddULLong(params, user_time, "cpu.user") < 0)
|
||||||
+ &record->nparams,
|
|
||||||
+ maxparams,
|
|
||||||
+ "cpu.user",
|
|
||||||
+ user_time) < 0)
|
|
||||||
+ return -1;
|
+ return -1;
|
||||||
+ if (!err && virTypedParamsAddULLong(&record->params,
|
+ if (!err && virTypedParamListAddULLong(params, sys_time, "cpu.system") < 0)
|
||||||
+ &record->nparams,
|
|
||||||
+ maxparams,
|
|
||||||
+ "cpu.system",
|
|
||||||
+ sys_time) < 0)
|
|
||||||
+ return -1;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
@ -540,14 +394,13 @@ Index: libvirt-5.7.0/src/util/vircgroup.c
|
|||||||
#else /* !__linux__ */
|
#else /* !__linux__ */
|
||||||
|
|
||||||
bool
|
bool
|
||||||
@@ -2800,6 +2838,15 @@ virCgroupAvailable(void)
|
@@ -2801,6 +2826,14 @@ virCgroupAvailable(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
+int
|
+int
|
||||||
+virCgroupGetStatsCpu(virCgroupPtr cgroup,
|
+virCgroupGetStatsCpu(virCgroupPtr cgroup,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params)
|
||||||
+ int *maxparams)
|
|
||||||
+{
|
+{
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
@ -556,22 +409,29 @@ Index: libvirt-5.7.0/src/util/vircgroup.c
|
|||||||
int
|
int
|
||||||
virCgroupNewPartition(const char *path ATTRIBUTE_UNUSED,
|
virCgroupNewPartition(const char *path ATTRIBUTE_UNUSED,
|
||||||
bool create ATTRIBUTE_UNUSED,
|
bool create ATTRIBUTE_UNUSED,
|
||||||
Index: libvirt-5.7.0/src/util/vircgroup.h
|
Index: libvirt-5.8.0/src/util/vircgroup.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/util/vircgroup.h
|
--- libvirt-5.8.0.orig/src/util/vircgroup.h
|
||||||
+++ libvirt-5.7.0/src/util/vircgroup.h
|
+++ libvirt-5.8.0/src/util/vircgroup.h
|
||||||
@@ -285,3 +285,7 @@ int virCgroupSetOwner(virCgroupPtr cgrou
|
@@ -24,6 +24,7 @@
|
||||||
|
#include "virutil.h"
|
||||||
|
#include "virbitmap.h"
|
||||||
|
#include "virenum.h"
|
||||||
|
+#include "virtypedparam.h"
|
||||||
|
|
||||||
|
struct _virCgroup;
|
||||||
|
typedef struct _virCgroup virCgroup;
|
||||||
|
@@ -285,3 +286,6 @@ int virCgroupSetOwner(virCgroupPtr cgrou
|
||||||
int virCgroupHasEmptyTasks(virCgroupPtr cgroup, int controller);
|
int virCgroupHasEmptyTasks(virCgroupPtr cgroup, int controller);
|
||||||
|
|
||||||
bool virCgroupControllerAvailable(int controller);
|
bool virCgroupControllerAvailable(int controller);
|
||||||
+
|
+
|
||||||
+int virCgroupGetStatsCpu(virCgroupPtr cgroup,
|
+int virCgroupGetStatsCpu(virCgroupPtr cgroup,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params);
|
||||||
+ int *maxparams);
|
Index: libvirt-5.8.0/src/conf/Makefile.inc.am
|
||||||
Index: libvirt-5.7.0/src/conf/Makefile.inc.am
|
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/conf/Makefile.inc.am
|
--- libvirt-5.8.0.orig/src/conf/Makefile.inc.am
|
||||||
+++ libvirt-5.7.0/src/conf/Makefile.inc.am
|
+++ libvirt-5.8.0/src/conf/Makefile.inc.am
|
||||||
@@ -26,6 +26,8 @@ DOMAIN_CONF_SOURCES = \
|
@@ -26,6 +26,8 @@ DOMAIN_CONF_SOURCES = \
|
||||||
conf/domain_audit.h \
|
conf/domain_audit.h \
|
||||||
conf/domain_nwfilter.c \
|
conf/domain_nwfilter.c \
|
||||||
|
@ -19,11 +19,11 @@ reworking this patch and submitting it to upstream libvirt.
|
|||||||
src/libxl/libxl_driver.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
|
src/libxl/libxl_driver.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
1 file changed, 91 insertions(+)
|
1 file changed, 91 insertions(+)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
Index: libvirt-5.8.0/src/libxl/libxl_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_driver.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_driver.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_driver.c
|
+++ libvirt-5.8.0/src/libxl/libxl_driver.c
|
||||||
@@ -5290,6 +5290,97 @@ libxlDomainMemoryStats(virDomainPtr dom,
|
@@ -5289,6 +5289,97 @@ libxlDomainMemoryStats(virDomainPtr dom,
|
||||||
|
|
||||||
#undef LIBXL_SET_MEMSTAT
|
#undef LIBXL_SET_MEMSTAT
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
|||||||
static int
|
static int
|
||||||
libxlDomainGetJobInfo(virDomainPtr dom,
|
libxlDomainGetJobInfo(virDomainPtr dom,
|
||||||
virDomainJobInfoPtr info)
|
virDomainJobInfoPtr info)
|
||||||
@@ -6738,6 +6829,7 @@ static virHypervisorDriver libxlHypervis
|
@@ -6737,6 +6828,7 @@ static virHypervisorDriver libxlHypervis
|
||||||
#endif
|
#endif
|
||||||
.nodeGetFreeMemory = libxlNodeGetFreeMemory, /* 0.9.0 */
|
.nodeGetFreeMemory = libxlNodeGetFreeMemory, /* 0.9.0 */
|
||||||
.nodeGetCellsFreeMemory = libxlNodeGetCellsFreeMemory, /* 1.1.1 */
|
.nodeGetCellsFreeMemory = libxlNodeGetCellsFreeMemory, /* 1.1.1 */
|
||||||
|
@ -9,10 +9,10 @@ them using the existing API.
|
|||||||
src/lxc/lxc_driver.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
src/lxc/lxc_driver.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
1 file changed, 138 insertions(+)
|
1 file changed, 138 insertions(+)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
Index: libvirt-5.8.0/src/lxc/lxc_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/lxc/lxc_driver.c
|
--- libvirt-5.8.0.orig/src/lxc/lxc_driver.c
|
||||||
+++ libvirt-5.7.0/src/lxc/lxc_driver.c
|
+++ libvirt-5.8.0/src/lxc/lxc_driver.c
|
||||||
@@ -75,6 +75,7 @@
|
@@ -75,6 +75,7 @@
|
||||||
#include "viraccessapichecklxc.h"
|
#include "viraccessapichecklxc.h"
|
||||||
#include "virhostdev.h"
|
#include "virhostdev.h"
|
||||||
@ -21,23 +21,22 @@ Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
|||||||
|
|
||||||
#define VIR_FROM_THIS VIR_FROM_LXC
|
#define VIR_FROM_THIS VIR_FROM_LXC
|
||||||
|
|
||||||
@@ -5402,6 +5403,142 @@ lxcDomainHasManagedSaveImage(virDomainPt
|
@@ -5404,6 +5405,135 @@ lxcDomainHasManagedSaveImage(virDomainPt
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
+static int
|
+static int
|
||||||
+lxcDomainGetStatsCpu(virDomainObjPtr dom,
|
+lxcDomainGetStatsCpu(virDomainObjPtr dom,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params)
|
||||||
+ int *maxparams)
|
|
||||||
+{
|
+{
|
||||||
+ virLXCDomainObjPrivatePtr priv = dom->privateData;
|
+ virLXCDomainObjPrivatePtr priv = dom->privateData;
|
||||||
+ return virCgroupGetStatsCpu(priv->cgroup, record, maxparams);
|
+ return virCgroupGetStatsCpu(priv->cgroup, params);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+typedef int
|
+typedef int
|
||||||
+(*lxcDomainGetStatsFunc)(virDomainObjPtr dom,
|
+(*lxcDomainGetStatsFunc)(virDomainObjPtr dom,
|
||||||
+ virDomainStatsRecordPtr record,
|
+ virTypedParamListPtr params);
|
||||||
+ int *maxparams);
|
+
|
||||||
+
|
+
|
||||||
+struct lxcDomainGetStatsWorker {
|
+struct lxcDomainGetStatsWorker {
|
||||||
+ lxcDomainGetStatsFunc func;
|
+ lxcDomainGetStatsFunc func;
|
||||||
@ -57,36 +56,30 @@ Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
|||||||
+ unsigned int stats,
|
+ unsigned int stats,
|
||||||
+ virDomainStatsRecordPtr *record)
|
+ virDomainStatsRecordPtr *record)
|
||||||
+{
|
+{
|
||||||
+ int maxparams = 0;
|
+ VIR_AUTOFREE(virDomainStatsRecordPtr) tmp = NULL;
|
||||||
+ virDomainStatsRecordPtr tmp;
|
+ VIR_AUTOPTR(virTypedParamList) params = NULL;
|
||||||
+ size_t i;
|
+ size_t i;
|
||||||
+ int ret = -1;
|
|
||||||
+
|
+
|
||||||
+ if (VIR_ALLOC(tmp) < 0)
|
+ if (VIR_ALLOC(params) < 0)
|
||||||
+ goto cleanup;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ for (i = 0; lxcDomainGetStatsWorkers[i].func; i++) {
|
+ for (i = 0; lxcDomainGetStatsWorkers[i].func; i++) {
|
||||||
+ if (stats & lxcDomainGetStatsWorkers[i].stats) {
|
+ if (stats & lxcDomainGetStatsWorkers[i].stats) {
|
||||||
+ if (lxcDomainGetStatsWorkers[i].func(dom, tmp, &maxparams) < 0)
|
+ if (lxcDomainGetStatsWorkers[i].func(dom, params) < 0)
|
||||||
+ goto cleanup;
|
+ return -1;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
+ if (VIR_ALLOC(tmp) < 0)
|
||||||
|
+ return -1;
|
||||||
|
+
|
||||||
+ if (!(tmp->dom = virGetDomain(conn, dom->def->name,
|
+ if (!(tmp->dom = virGetDomain(conn, dom->def->name,
|
||||||
+ dom->def->uuid, dom->def->id)))
|
+ dom->def->uuid, dom->def->id)))
|
||||||
+ goto cleanup;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ *record = tmp;
|
+ tmp->nparams = virTypedParamListStealParams(params, &tmp->params);
|
||||||
+ tmp = NULL;
|
+ VIR_STEAL_PTR(*record, tmp);
|
||||||
+ ret = 0;
|
+ return 0;
|
||||||
+
|
|
||||||
+ cleanup:
|
|
||||||
+ if (tmp) {
|
|
||||||
+ virTypedParamsFree(tmp->params, tmp->nparams);
|
|
||||||
+ VIR_FREE(tmp);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return ret;
|
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static int
|
+static int
|
||||||
@ -164,7 +157,7 @@ Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
|||||||
|
|
||||||
/* Function Tables */
|
/* Function Tables */
|
||||||
static virHypervisorDriver lxcHypervisorDriver = {
|
static virHypervisorDriver lxcHypervisorDriver = {
|
||||||
@@ -5497,6 +5634,7 @@ static virHypervisorDriver lxcHypervisor
|
@@ -5499,6 +5629,7 @@ static virHypervisorDriver lxcHypervisor
|
||||||
.nodeGetFreePages = lxcNodeGetFreePages, /* 1.2.6 */
|
.nodeGetFreePages = lxcNodeGetFreePages, /* 1.2.6 */
|
||||||
.nodeAllocPages = lxcNodeAllocPages, /* 1.2.9 */
|
.nodeAllocPages = lxcNodeAllocPages, /* 1.2.9 */
|
||||||
.domainHasManagedSaveImage = lxcDomainHasManagedSaveImage, /* 1.2.13 */
|
.domainHasManagedSaveImage = lxcDomainHasManagedSaveImage, /* 1.2.13 */
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7e91f23574c73f0da8812917922d45af1044dbe31d2526aa34e2ff29bfef62e0
|
|
||||||
size 13235904
|
|
@ -1,11 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQEzBAABCAAdFiEE20ZoG7ka3OoXD6LUFViLJllr6l0FAl1uhdgACgkQFViLJllr
|
|
||||||
6l0KNQgAlGxX8floI0ZHRtgeqe2mLE548yVnQBz7OHFsFDPSn3DdnLB3vMXe77iP
|
|
||||||
Bp7T3T7a7O6UqRvrYvcHsFP/UaNQcMvxdljB2M+QNifFRVS/Qbg2M3QZV65xsIaX
|
|
||||||
EhxmxX4lzIufNu0jUpVUq31kSzgIszzCZBR4UxjE5NB1uD88EbRwEcGFwnVHiPVx
|
|
||||||
ARUyamKZkT/ugptqRcrM6rC2wwEdXXWa4COGXXVXCJh3UefQyqyxk+iyMtsC0Qde
|
|
||||||
J5buwnrTwSdRRBZTL90t4c1bcZ130zqrDMvWPGywZ3KAgyk8BVbycqPBtnI4kAvZ
|
|
||||||
XPfoRg1qn6ppnfuH6aVF2osQ9MkPqg==
|
|
||||||
=YxDo
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
libvirt-5.8.0.tar.xz
Normal file
3
libvirt-5.8.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e23328289b18bdedc1e966f6c26402b2983149c660ed8bd52cda6feab0c20c55
|
||||||
|
size 13129328
|
11
libvirt-5.8.0.tar.xz.asc
Normal file
11
libvirt-5.8.0.tar.xz.asc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQEzBAABCAAdFiEE20ZoG7ka3OoXD6LUFViLJllr6l0FAl2YSzwACgkQFViLJllr
|
||||||
|
6l3vqwf/TdeKwVlG7R5gi+A013LqGM/oVyoIIBeFdoqTR/ei9Kg/glZhU/9Gjdmo
|
||||||
|
szRZ5Qi8rwD6UvFkhX1ZhCybbB5neHR5hhC4og/gvM4Ly7gLC8wwNYLw0QnCTjpm
|
||||||
|
BDDcGP46FYZA/F9a2BpsPd1iaDz+v4G2UAXPtB1QAm0FwZnWaP1Z3y8UGk6naH4o
|
||||||
|
yRO9DnJ8Mx3XF9MuBN5aCUgf+bm6F6k4s3/xWLRU3qfAP2SGfeVOqsWykPCOiVm+
|
||||||
|
7HoczIzn1ssyi9pRIkhn7w43Fe3qvamCOpO3Z67r9tvbljw12CUkjUM0DsErSwtz
|
||||||
|
e1/kR/vuYtHvPqZM513kBa1VuKovPg==
|
||||||
|
=m3we
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -2,10 +2,10 @@ Add POWER8 v2.0 and v2.1 to cpu map XML
|
|||||||
|
|
||||||
From: <ro@suse.de>
|
From: <ro@suse.de>
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/cpu_map/ppc64_POWER8.xml
|
Index: libvirt-5.8.0/src/cpu_map/ppc64_POWER8.xml
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/cpu_map/ppc64_POWER8.xml
|
--- libvirt-5.8.0.orig/src/cpu_map/ppc64_POWER8.xml
|
||||||
+++ libvirt-5.7.0/src/cpu_map/ppc64_POWER8.xml
|
+++ libvirt-5.8.0/src/cpu_map/ppc64_POWER8.xml
|
||||||
@@ -4,5 +4,7 @@
|
@@ -4,5 +4,7 @@
|
||||||
<pvr value='0x004b0000' mask='0xffff0000'/>
|
<pvr value='0x004b0000' mask='0xffff0000'/>
|
||||||
<pvr value='0x004c0000' mask='0xffff0000'/>
|
<pvr value='0x004c0000' mask='0xffff0000'/>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: libvirt-5.7.0/configure.ac
|
Index: libvirt-5.8.0/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/configure.ac
|
--- libvirt-5.8.0.orig/configure.ac
|
||||||
+++ libvirt-5.7.0/configure.ac
|
+++ libvirt-5.8.0/configure.ac
|
||||||
@@ -285,6 +285,7 @@ LIBVIRT_ARG_LIBSSH
|
@@ -285,6 +285,7 @@ LIBVIRT_ARG_LIBSSH
|
||||||
LIBVIRT_ARG_LIBXML
|
LIBVIRT_ARG_LIBXML
|
||||||
LIBVIRT_ARG_MACVTAP
|
LIBVIRT_ARG_MACVTAP
|
||||||
@ -18,7 +18,7 @@ Index: libvirt-5.7.0/configure.ac
|
|||||||
LIBVIRT_CHECK_NLS
|
LIBVIRT_CHECK_NLS
|
||||||
LIBVIRT_CHECK_NUMACTL
|
LIBVIRT_CHECK_NUMACTL
|
||||||
LIBVIRT_CHECK_NWFILTER
|
LIBVIRT_CHECK_NWFILTER
|
||||||
@@ -1025,6 +1027,7 @@ LIBVIRT_RESULT_LIBXL
|
@@ -1018,6 +1020,7 @@ LIBVIRT_RESULT_LIBXL
|
||||||
LIBVIRT_RESULT_LIBXML
|
LIBVIRT_RESULT_LIBXML
|
||||||
LIBVIRT_RESULT_MACVTAP
|
LIBVIRT_RESULT_MACVTAP
|
||||||
LIBVIRT_RESULT_NETCF
|
LIBVIRT_RESULT_NETCF
|
||||||
@ -26,11 +26,11 @@ Index: libvirt-5.7.0/configure.ac
|
|||||||
LIBVIRT_RESULT_NLS
|
LIBVIRT_RESULT_NLS
|
||||||
LIBVIRT_RESULT_NSS
|
LIBVIRT_RESULT_NSS
|
||||||
LIBVIRT_RESULT_NUMACTL
|
LIBVIRT_RESULT_NUMACTL
|
||||||
Index: libvirt-5.7.0/tools/virsh.c
|
Index: libvirt-5.8.0/tools/virsh.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tools/virsh.c
|
--- libvirt-5.8.0.orig/tools/virsh.c
|
||||||
+++ libvirt-5.7.0/tools/virsh.c
|
+++ libvirt-5.8.0/tools/virsh.c
|
||||||
@@ -561,6 +561,8 @@ virshShowVersion(vshControl *ctl ATTRIBU
|
@@ -558,6 +558,8 @@ virshShowVersion(vshControl *ctl ATTRIBU
|
||||||
vshPrint(ctl, " Interface");
|
vshPrint(ctl, " Interface");
|
||||||
# if defined(WITH_NETCF)
|
# if defined(WITH_NETCF)
|
||||||
vshPrint(ctl, " netcf");
|
vshPrint(ctl, " netcf");
|
||||||
@ -39,10 +39,10 @@ Index: libvirt-5.7.0/tools/virsh.c
|
|||||||
# elif defined(WITH_UDEV)
|
# elif defined(WITH_UDEV)
|
||||||
vshPrint(ctl, " udev");
|
vshPrint(ctl, " udev");
|
||||||
# endif
|
# endif
|
||||||
Index: libvirt-5.7.0/src/interface/interface_backend_netcf.c
|
Index: libvirt-5.8.0/src/interface/interface_backend_netcf.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/interface/interface_backend_netcf.c
|
--- libvirt-5.8.0.orig/src/interface/interface_backend_netcf.c
|
||||||
+++ libvirt-5.7.0/src/interface/interface_backend_netcf.c
|
+++ libvirt-5.8.0/src/interface/interface_backend_netcf.c
|
||||||
@@ -21,7 +21,12 @@
|
@@ -21,7 +21,12 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@ -106,7 +106,7 @@ Index: libvirt-5.7.0/src/interface/interface_backend_netcf.c
|
|||||||
/* open netcf */
|
/* open netcf */
|
||||||
if (ncf_init(&driver->netcf, NULL) != 0) {
|
if (ncf_init(&driver->netcf, NULL) != 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
@@ -1262,6 +1302,19 @@ static virStateDriver interfaceStateDriv
|
@@ -1251,6 +1291,19 @@ static virStateDriver interfaceStateDriv
|
||||||
|
|
||||||
int netcfIfaceRegister(void)
|
int netcfIfaceRegister(void)
|
||||||
{
|
{
|
||||||
@ -126,10 +126,10 @@ Index: libvirt-5.7.0/src/interface/interface_backend_netcf.c
|
|||||||
if (virRegisterConnectDriver(&interfaceConnectDriver, false) < 0)
|
if (virRegisterConnectDriver(&interfaceConnectDriver, false) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
if (virSetSharedInterfaceDriver(&interfaceDriver) < 0)
|
if (virSetSharedInterfaceDriver(&interfaceDriver) < 0)
|
||||||
Index: libvirt-5.7.0/src/interface/interface_driver.c
|
Index: libvirt-5.8.0/src/interface/interface_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/interface/interface_driver.c
|
--- libvirt-5.8.0.orig/src/interface/interface_driver.c
|
||||||
+++ libvirt-5.7.0/src/interface/interface_driver.c
|
+++ libvirt-5.8.0/src/interface/interface_driver.c
|
||||||
@@ -30,8 +30,15 @@ interfaceRegister(void)
|
@@ -30,8 +30,15 @@ interfaceRegister(void)
|
||||||
if (netcfIfaceRegister() == 0)
|
if (netcfIfaceRegister() == 0)
|
||||||
return 0;
|
return 0;
|
||||||
@ -147,10 +147,10 @@ Index: libvirt-5.7.0/src/interface/interface_driver.c
|
|||||||
if (udevIfaceRegister() == 0)
|
if (udevIfaceRegister() == 0)
|
||||||
return 0;
|
return 0;
|
||||||
#endif /* WITH_UDEV */
|
#endif /* WITH_UDEV */
|
||||||
Index: libvirt-5.7.0/m4/virt-netcontrol.m4
|
Index: libvirt-5.8.0/m4/virt-netcontrol.m4
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ libvirt-5.7.0/m4/virt-netcontrol.m4
|
+++ libvirt-5.8.0/m4/virt-netcontrol.m4
|
||||||
@@ -0,0 +1,39 @@
|
@@ -0,0 +1,39 @@
|
||||||
+dnl The libnetcontrol library
|
+dnl The libnetcontrol library
|
||||||
+dnl
|
+dnl
|
||||||
@ -191,10 +191,10 @@ Index: libvirt-5.7.0/m4/virt-netcontrol.m4
|
|||||||
+AC_DEFUN([LIBVIRT_RESULT_NETCONTROL],[
|
+AC_DEFUN([LIBVIRT_RESULT_NETCONTROL],[
|
||||||
+ LIBVIRT_RESULT_LIB([NETCONTROL])
|
+ LIBVIRT_RESULT_LIB([NETCONTROL])
|
||||||
+])
|
+])
|
||||||
Index: libvirt-5.7.0/src/interface/Makefile.inc.am
|
Index: libvirt-5.8.0/src/interface/Makefile.inc.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/interface/Makefile.inc.am
|
--- libvirt-5.8.0.orig/src/interface/Makefile.inc.am
|
||||||
+++ libvirt-5.7.0/src/interface/Makefile.inc.am
|
+++ libvirt-5.8.0/src/interface/Makefile.inc.am
|
||||||
@@ -6,6 +6,7 @@ INTERFACE_DRIVER_SOURCES = \
|
@@ -6,6 +6,7 @@ INTERFACE_DRIVER_SOURCES = \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 8 17:07:03 UTC 2019 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
- Update to libvirt 5.8.0
|
||||||
|
- bsc#1149100
|
||||||
|
- Many incremental improvements and bug fixes, see
|
||||||
|
https://libvirt.org/news.html
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 5 22:21:03 UTC 2019 - James Fehlig <jfehlig@suse.com>
|
Thu Sep 5 22:21:03 UTC 2019 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@
|
|||||||
|
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Url: http://libvirt.org/
|
Url: http://libvirt.org/
|
||||||
Version: 5.7.0
|
Version: 5.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library providing a virtualization API
|
Summary: Library providing a virtualization API
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -1034,7 +1034,6 @@ export PYTHON=%{_bindir}/python3
|
|||||||
%{?arg_esx} \
|
%{?arg_esx} \
|
||||||
%{?arg_hyperv} \
|
%{?arg_hyperv} \
|
||||||
%{?arg_vmware} \
|
%{?arg_vmware} \
|
||||||
--without-xenapi \
|
|
||||||
--without-vz \
|
--without-vz \
|
||||||
--without-bhyve \
|
--without-bhyve \
|
||||||
--with-remote-default-mode=legacy \
|
--with-remote-default-mode=legacy \
|
||||||
@ -1898,10 +1897,6 @@ fi
|
|||||||
%dir %{_datadir}/doc/%{name}/examples
|
%dir %{_datadir}/doc/%{name}/examples
|
||||||
%doc %{_datadir}/doc/%{name}/examples/*
|
%doc %{_datadir}/doc/%{name}/examples/*
|
||||||
|
|
||||||
# API docs
|
|
||||||
%dir %{_datadir}/gtk-doc/html/%{name}/
|
|
||||||
%doc %{_datadir}/gtk-doc/html/%{name}/*
|
|
||||||
|
|
||||||
%if %{with_sanlock}
|
%if %{with_sanlock}
|
||||||
|
|
||||||
%files lock-sanlock
|
%files lock-sanlock
|
||||||
|
@ -8,11 +8,11 @@ Date: Mon Jun 23 15:51:20 2014 -0600
|
|||||||
option, but domainReset can be implemented in the libxl driver by
|
option, but domainReset can be implemented in the libxl driver by
|
||||||
forcibly destroying the domain and starting it again.
|
forcibly destroying the domain and starting it again.
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
Index: libvirt-5.8.0/src/libxl/libxl_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_driver.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_driver.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_driver.c
|
+++ libvirt-5.8.0/src/libxl/libxl_driver.c
|
||||||
@@ -1364,6 +1364,61 @@ libxlDomainReboot(virDomainPtr dom, unsi
|
@@ -1367,6 +1367,61 @@ libxlDomainReboot(virDomainPtr dom, unsi
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -74,7 +74,7 @@ Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
|||||||
libxlDomainDestroyFlags(virDomainPtr dom,
|
libxlDomainDestroyFlags(virDomainPtr dom,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
@@ -6613,6 +6668,7 @@ static virHypervisorDriver libxlHypervis
|
@@ -6612,6 +6667,7 @@ static virHypervisorDriver libxlHypervis
|
||||||
.domainShutdown = libxlDomainShutdown, /* 0.9.0 */
|
.domainShutdown = libxlDomainShutdown, /* 0.9.0 */
|
||||||
.domainShutdownFlags = libxlDomainShutdownFlags, /* 0.9.10 */
|
.domainShutdownFlags = libxlDomainShutdownFlags, /* 0.9.10 */
|
||||||
.domainReboot = libxlDomainReboot, /* 0.9.0 */
|
.domainReboot = libxlDomainReboot, /* 0.9.0 */
|
||||||
|
@ -3,10 +3,10 @@ https://bugzilla.novell.com/show_bug.cgi?id=879425
|
|||||||
src/libxl/libxl_conf.c | 25 +++++++++++++++++++++++++
|
src/libxl/libxl_conf.c | 25 +++++++++++++++++++++++++
|
||||||
1 file changed, 25 insertions(+)
|
1 file changed, 25 insertions(+)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_conf.c
|
Index: libvirt-5.8.0/src/libxl/libxl_conf.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_conf.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_conf.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_conf.c
|
+++ libvirt-5.8.0/src/libxl/libxl_conf.c
|
||||||
@@ -897,6 +897,30 @@ libxlDiskSetDiscard(libxl_device_disk *x
|
@@ -897,6 +897,30 @@ libxlDiskSetDiscard(libxl_device_disk *x
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -16,10 +16,10 @@ Signed-off-by: Jim Fehlig <jfehlig@suse.com>
|
|||||||
tools/virsh.pod | 8 ++++++++
|
tools/virsh.pod | 8 ++++++++
|
||||||
6 files changed, 125 insertions(+), 6 deletions(-)
|
6 files changed, 125 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/include/libvirt/libvirt-domain.h
|
Index: libvirt-5.8.0/include/libvirt/libvirt-domain.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/include/libvirt/libvirt-domain.h
|
--- libvirt-5.8.0.orig/include/libvirt/libvirt-domain.h
|
||||||
+++ libvirt-5.7.0/include/libvirt/libvirt-domain.h
|
+++ libvirt-5.8.0/include/libvirt/libvirt-domain.h
|
||||||
@@ -1051,6 +1051,31 @@ typedef enum {
|
@@ -1051,6 +1051,31 @@ typedef enum {
|
||||||
*/
|
*/
|
||||||
# define VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS "parallel.connections"
|
# define VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS "parallel.connections"
|
||||||
@ -52,11 +52,11 @@ Index: libvirt-5.7.0/include/libvirt/libvirt-domain.h
|
|||||||
/* Domain migration. */
|
/* Domain migration. */
|
||||||
virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn,
|
virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn,
|
||||||
unsigned long flags, const char *dname,
|
unsigned long flags, const char *dname,
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
Index: libvirt-5.8.0/src/libxl/libxl_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_driver.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_driver.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_driver.c
|
+++ libvirt-5.8.0/src/libxl/libxl_driver.c
|
||||||
@@ -6156,6 +6156,9 @@ libxlDomainMigratePerform3Params(virDoma
|
@@ -6155,6 +6155,9 @@ libxlDomainMigratePerform3Params(virDoma
|
||||||
const char *dname = NULL;
|
const char *dname = NULL;
|
||||||
const char *uri = NULL;
|
const char *uri = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
@ -66,7 +66,7 @@ Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
|||||||
|
|
||||||
#ifdef LIBXL_HAVE_NO_SUSPEND_RESUME
|
#ifdef LIBXL_HAVE_NO_SUSPEND_RESUME
|
||||||
virReportUnsupportedError();
|
virReportUnsupportedError();
|
||||||
@@ -6172,6 +6175,18 @@ libxlDomainMigratePerform3Params(virDoma
|
@@ -6171,6 +6174,18 @@ libxlDomainMigratePerform3Params(virDoma
|
||||||
virTypedParamsGetString(params, nparams,
|
virTypedParamsGetString(params, nparams,
|
||||||
VIR_MIGRATE_PARAM_DEST_NAME,
|
VIR_MIGRATE_PARAM_DEST_NAME,
|
||||||
&dname) < 0 ||
|
&dname) < 0 ||
|
||||||
@ -85,7 +85,7 @@ Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
|||||||
virTypedParamsGetString(params, nparams,
|
virTypedParamsGetString(params, nparams,
|
||||||
VIR_MIGRATE_PARAM_URI,
|
VIR_MIGRATE_PARAM_URI,
|
||||||
&uri) < 0)
|
&uri) < 0)
|
||||||
@@ -6186,11 +6201,11 @@ libxlDomainMigratePerform3Params(virDoma
|
@@ -6185,11 +6200,11 @@ libxlDomainMigratePerform3Params(virDoma
|
||||||
|
|
||||||
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
|
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
|
||||||
if (libxlDomainMigrationSrcPerformP2P(driver, vm, dom->conn, dom_xml,
|
if (libxlDomainMigrationSrcPerformP2P(driver, vm, dom->conn, dom_xml,
|
||||||
@ -99,10 +99,10 @@ Index: libvirt-5.7.0/src/libxl/libxl_driver.c
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_migration.c
|
Index: libvirt-5.8.0/src/libxl/libxl_migration.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_migration.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_migration.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_migration.c
|
+++ libvirt-5.8.0/src/libxl/libxl_migration.c
|
||||||
@@ -342,18 +342,39 @@ libxlMigrateDstReceive(virNetSocketPtr s
|
@@ -342,18 +342,39 @@ libxlMigrateDstReceive(virNetSocketPtr s
|
||||||
static int
|
static int
|
||||||
libxlDoMigrateSrcSend(libxlDriverPrivatePtr driver,
|
libxlDoMigrateSrcSend(libxlDriverPrivatePtr driver,
|
||||||
@ -264,10 +264,10 @@ Index: libvirt-5.7.0/src/libxl/libxl_migration.c
|
|||||||
virObjectLock(vm);
|
virObjectLock(vm);
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_migration.h
|
Index: libvirt-5.8.0/src/libxl/libxl_migration.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_migration.h
|
--- libvirt-5.8.0.orig/src/libxl/libxl_migration.h
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_migration.h
|
+++ libvirt-5.8.0/src/libxl/libxl_migration.h
|
||||||
@@ -35,6 +35,10 @@
|
@@ -35,6 +35,10 @@
|
||||||
VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \
|
VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \
|
||||||
VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \
|
VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \
|
||||||
@ -312,11 +312,11 @@ Index: libvirt-5.7.0/src/libxl/libxl_migration.h
|
|||||||
|
|
||||||
virDomainPtr
|
virDomainPtr
|
||||||
libxlDomainMigrationDstFinish(virConnectPtr dconn,
|
libxlDomainMigrationDstFinish(virConnectPtr dconn,
|
||||||
Index: libvirt-5.7.0/tools/virsh-domain.c
|
Index: libvirt-5.8.0/tools/virsh-domain.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tools/virsh-domain.c
|
--- libvirt-5.8.0.orig/tools/virsh-domain.c
|
||||||
+++ libvirt-5.7.0/tools/virsh-domain.c
|
+++ libvirt-5.8.0/tools/virsh-domain.c
|
||||||
@@ -10591,6 +10591,22 @@ static const vshCmdOptDef opts_migrate[]
|
@@ -10572,6 +10572,22 @@ static const vshCmdOptDef opts_migrate[]
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.help = N_("migration bandwidth limit in MiB/s")
|
.help = N_("migration bandwidth limit in MiB/s")
|
||||||
},
|
},
|
||||||
@ -339,7 +339,7 @@ Index: libvirt-5.7.0/tools/virsh-domain.c
|
|||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -10614,6 +10630,7 @@ doMigrate(void *opaque)
|
@@ -10595,6 +10611,7 @@ doMigrate(void *opaque)
|
||||||
unsigned long long ullOpt = 0;
|
unsigned long long ullOpt = 0;
|
||||||
int rv;
|
int rv;
|
||||||
virConnectPtr dconn = data->dconn;
|
virConnectPtr dconn = data->dconn;
|
||||||
@ -347,7 +347,7 @@ Index: libvirt-5.7.0/tools/virsh-domain.c
|
|||||||
|
|
||||||
sigemptyset(&sigmask);
|
sigemptyset(&sigmask);
|
||||||
sigaddset(&sigmask, SIGINT);
|
sigaddset(&sigmask, SIGINT);
|
||||||
@@ -10733,6 +10750,27 @@ doMigrate(void *opaque)
|
@@ -10714,6 +10731,27 @@ doMigrate(void *opaque)
|
||||||
goto save_error;
|
goto save_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,10 +375,10 @@ Index: libvirt-5.7.0/tools/virsh-domain.c
|
|||||||
if (vshCommandOptStringReq(ctl, cmd, "xml", &opt) < 0)
|
if (vshCommandOptStringReq(ctl, cmd, "xml", &opt) < 0)
|
||||||
goto out;
|
goto out;
|
||||||
if (opt) {
|
if (opt) {
|
||||||
Index: libvirt-5.7.0/tools/virsh.pod
|
Index: libvirt-5.8.0/tools/virsh.pod
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tools/virsh.pod
|
--- libvirt-5.8.0.orig/tools/virsh.pod
|
||||||
+++ libvirt-5.7.0/tools/virsh.pod
|
+++ libvirt-5.8.0/tools/virsh.pod
|
||||||
@@ -2254,6 +2254,14 @@ I<--parallel-connections>. Parallel conn
|
@@ -2254,6 +2254,14 @@ I<--parallel-connections>. Parallel conn
|
||||||
network link between the source and the target and thus speeding up the
|
network link between the source and the target and thus speeding up the
|
||||||
migration.
|
migration.
|
||||||
|
@ -7,10 +7,10 @@ and npiv.
|
|||||||
|
|
||||||
For more details, see bsc#954872 and FATE#319810
|
For more details, see bsc#954872 and FATE#319810
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_conf.c
|
Index: libvirt-5.8.0/src/libxl/libxl_conf.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_conf.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_conf.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_conf.c
|
+++ libvirt-5.8.0/src/libxl/libxl_conf.c
|
||||||
@@ -897,6 +897,25 @@ libxlDiskSetDiscard(libxl_device_disk *x
|
@@ -897,6 +897,25 @@ libxlDiskSetDiscard(libxl_device_disk *x
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,10 @@ device with the same name that is being created.
|
|||||||
src/lxc/lxc_process.c | 1 +
|
src/lxc/lxc_process.c | 1 +
|
||||||
3 files changed, 4 insertions(+)
|
3 files changed, 4 insertions(+)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/lxc/lxc_controller.c
|
Index: libvirt-5.8.0/src/lxc/lxc_controller.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/lxc/lxc_controller.c
|
--- libvirt-5.8.0.orig/src/lxc/lxc_controller.c
|
||||||
+++ libvirt-5.7.0/src/lxc/lxc_controller.c
|
+++ libvirt-5.8.0/src/lxc/lxc_controller.c
|
||||||
@@ -69,6 +69,7 @@
|
@@ -69,6 +69,7 @@
|
||||||
#include "rpc/virnetdaemon.h"
|
#include "rpc/virnetdaemon.h"
|
||||||
#include "virstring.h"
|
#include "virstring.h"
|
||||||
@ -33,10 +33,10 @@ Index: libvirt-5.7.0/src/lxc/lxc_controller.c
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
Index: libvirt-5.8.0/src/lxc/lxc_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/lxc/lxc_driver.c
|
--- libvirt-5.8.0.orig/src/lxc/lxc_driver.c
|
||||||
+++ libvirt-5.7.0/src/lxc/lxc_driver.c
|
+++ libvirt-5.8.0/src/lxc/lxc_driver.c
|
||||||
@@ -70,6 +70,7 @@
|
@@ -70,6 +70,7 @@
|
||||||
#include "virtime.h"
|
#include "virtime.h"
|
||||||
#include "virtypedparam.h"
|
#include "virtypedparam.h"
|
||||||
@ -45,7 +45,7 @@ Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
|||||||
#include "virstring.h"
|
#include "virstring.h"
|
||||||
#include "viraccessapicheck.h"
|
#include "viraccessapicheck.h"
|
||||||
#include "viraccessapichecklxc.h"
|
#include "viraccessapichecklxc.h"
|
||||||
@@ -3925,6 +3926,7 @@ lxcDomainAttachDeviceNetLive(virConnectP
|
@@ -3927,6 +3928,7 @@ lxcDomainAttachDeviceNetLive(virConnectP
|
||||||
case VIR_DOMAIN_NET_TYPE_NETWORK:
|
case VIR_DOMAIN_NET_TYPE_NETWORK:
|
||||||
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
case VIR_DOMAIN_NET_TYPE_ETHERNET:
|
||||||
ignore_value(virNetDevVethDelete(veth));
|
ignore_value(virNetDevVethDelete(veth));
|
||||||
@ -53,7 +53,7 @@ Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
||||||
@@ -4369,6 +4371,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb
|
@@ -4371,6 +4373,7 @@ lxcDomainDetachDeviceNetLive(virDomainOb
|
||||||
virDomainAuditNet(vm, detach, NULL, "detach", false);
|
virDomainAuditNet(vm, detach, NULL, "detach", false);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -61,10 +61,10 @@ Index: libvirt-5.7.0/src/lxc/lxc_driver.c
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* It'd be nice to support this, but with macvlan
|
/* It'd be nice to support this, but with macvlan
|
||||||
Index: libvirt-5.7.0/src/lxc/lxc_process.c
|
Index: libvirt-5.8.0/src/lxc/lxc_process.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/lxc/lxc_process.c
|
--- libvirt-5.8.0.orig/src/lxc/lxc_process.c
|
||||||
+++ libvirt-5.7.0/src/lxc/lxc_process.c
|
+++ libvirt-5.8.0/src/lxc/lxc_process.c
|
||||||
@@ -51,6 +51,7 @@
|
@@ -51,6 +51,7 @@
|
||||||
#include "viratomic.h"
|
#include "viratomic.h"
|
||||||
#include "virprocess.h"
|
#include "virprocess.h"
|
||||||
|
@ -17,11 +17,11 @@ Signed-off-by: Martin Wilck <mwilck@suse.com>
|
|||||||
tests/networkxml2confdata/dhcp6host-routed-network.conf | 1 -
|
tests/networkxml2confdata/dhcp6host-routed-network.conf | 1 -
|
||||||
2 files changed, 8 insertions(+), 2 deletions(-)
|
2 files changed, 8 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/network/bridge_driver.c
|
Index: libvirt-5.8.0/src/network/bridge_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/network/bridge_driver.c
|
--- libvirt-5.8.0.orig/src/network/bridge_driver.c
|
||||||
+++ libvirt-5.7.0/src/network/bridge_driver.c
|
+++ libvirt-5.8.0/src/network/bridge_driver.c
|
||||||
@@ -1510,7 +1510,14 @@ networkDnsmasqConfContents(virNetworkObj
|
@@ -1516,7 +1516,14 @@ networkDnsmasqConfContents(virNetworkObj
|
||||||
if (VIR_SOCKET_ADDR_IS_FAMILY(&ipdef->address, AF_INET)) {
|
if (VIR_SOCKET_ADDR_IS_FAMILY(&ipdef->address, AF_INET)) {
|
||||||
if (ipdef->nranges || ipdef->nhosts) {
|
if (ipdef->nranges || ipdef->nhosts) {
|
||||||
virBufferAddLit(&configbuf, "dhcp-no-override\n");
|
virBufferAddLit(&configbuf, "dhcp-no-override\n");
|
||||||
@ -37,10 +37,10 @@ Index: libvirt-5.7.0/src/network/bridge_driver.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ipdef->tftproot) {
|
if (ipdef->tftproot) {
|
||||||
Index: libvirt-5.7.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
|
Index: libvirt-5.8.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tests/networkxml2confdata/dhcp6host-routed-network.conf
|
--- libvirt-5.8.0.orig/tests/networkxml2confdata/dhcp6host-routed-network.conf
|
||||||
+++ libvirt-5.7.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
|
+++ libvirt-5.8.0/tests/networkxml2confdata/dhcp6host-routed-network.conf
|
||||||
@@ -10,7 +10,6 @@ bind-dynamic
|
@@ -10,7 +10,6 @@ bind-dynamic
|
||||||
interface=virbr1
|
interface=virbr1
|
||||||
dhcp-range=192.168.122.1,static
|
dhcp-range=192.168.122.1,static
|
||||||
|
@ -2,10 +2,10 @@ Canonicalize hostarch name ppc64le to ppc64
|
|||||||
|
|
||||||
See bnc#894956
|
See bnc#894956
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/util/virarch.c
|
Index: libvirt-5.8.0/src/util/virarch.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/util/virarch.c
|
--- libvirt-5.8.0.orig/src/util/virarch.c
|
||||||
+++ libvirt-5.7.0/src/util/virarch.c
|
+++ libvirt-5.8.0/src/util/virarch.c
|
||||||
@@ -172,6 +172,8 @@ virArch virArchFromHost(void)
|
@@ -172,6 +172,8 @@ virArch virArchFromHost(void)
|
||||||
arch = VIR_ARCH_I686;
|
arch = VIR_ARCH_I686;
|
||||||
} else if (STREQ(ut.machine, "amd64")) {
|
} else if (STREQ(ut.machine, "amd64")) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: libvirt-5.7.0/src/security/apparmor/libvirt-qemu
|
Index: libvirt-5.8.0/src/security/apparmor/libvirt-qemu
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/security/apparmor/libvirt-qemu
|
--- libvirt-5.8.0.orig/src/security/apparmor/libvirt-qemu
|
||||||
+++ libvirt-5.7.0/src/security/apparmor/libvirt-qemu
|
+++ libvirt-5.8.0/src/security/apparmor/libvirt-qemu
|
||||||
@@ -228,3 +228,6 @@
|
@@ -228,3 +228,6 @@
|
||||||
# required for sasl GSSAPI plugin
|
# required for sasl GSSAPI plugin
|
||||||
/etc/gss/mech.d/ r,
|
/etc/gss/mech.d/ r,
|
||||||
|
@ -8,10 +8,10 @@ Subject: [PATCH] support managed pci devices in xen driver
|
|||||||
src/xenxs/xen_xm.c | 28 +++++++++++++++++++++++++++-
|
src/xenxs/xen_xm.c | 28 +++++++++++++++++++++++++++-
|
||||||
2 files changed, 35 insertions(+), 15 deletions(-)
|
2 files changed, 35 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/xen_common.c
|
Index: libvirt-5.8.0/src/libxl/xen_common.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/xen_common.c
|
--- libvirt-5.8.0.orig/src/libxl/xen_common.c
|
||||||
+++ libvirt-5.7.0/src/libxl/xen_common.c
|
+++ libvirt-5.8.0/src/libxl/xen_common.c
|
||||||
@@ -388,12 +388,19 @@ xenParsePCI(char *entry)
|
@@ -388,12 +388,19 @@ xenParsePCI(char *entry)
|
||||||
int busID;
|
int busID;
|
||||||
int slotID;
|
int slotID;
|
||||||
|
@ -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.
|
to squelch a denial when starting confined domains.
|
||||||
|
|
||||||
Found while investigating bsc#1058847
|
Found while investigating bsc#1058847
|
||||||
Index: libvirt-5.7.0/src/security/apparmor/libvirt-qemu
|
Index: libvirt-5.8.0/src/security/apparmor/libvirt-qemu
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/security/apparmor/libvirt-qemu
|
--- libvirt-5.8.0.orig/src/security/apparmor/libvirt-qemu
|
||||||
+++ libvirt-5.7.0/src/security/apparmor/libvirt-qemu
|
+++ libvirt-5.8.0/src/security/apparmor/libvirt-qemu
|
||||||
@@ -63,6 +63,7 @@
|
@@ -63,6 +63,7 @@
|
||||||
#/dev/fb* rw,
|
#/dev/fb* rw,
|
||||||
|
|
||||||
@ -20,10 +20,10 @@ Index: libvirt-5.7.0/src/security/apparmor/libvirt-qemu
|
|||||||
@{HOME}/.pulse-cookie rwk,
|
@{HOME}/.pulse-cookie rwk,
|
||||||
owner /root/.pulse-cookie rwk,
|
owner /root/.pulse-cookie rwk,
|
||||||
owner /root/.pulse/ rw,
|
owner /root/.pulse/ rw,
|
||||||
Index: libvirt-5.7.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
|
Index: libvirt-5.8.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
|
--- libvirt-5.8.0.orig/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
|
||||||
+++ libvirt-5.7.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
|
+++ libvirt-5.8.0/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
|
||||||
@@ -20,7 +20,7 @@ profile virt-aa-helper /usr/{lib,lib64}/
|
@@ -20,7 +20,7 @@ profile virt-aa-helper /usr/{lib,lib64}/
|
||||||
# Used when internally running another command (namely apparmor_parser)
|
# Used when internally running another command (namely apparmor_parser)
|
||||||
@{PROC}/@{pid}/fd/ r,
|
@{PROC}/@{pid}/fd/ r,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Adjust libvirt-guests service to conform to SUSE standards
|
Adjust libvirt-guests service to conform to SUSE standards
|
||||||
|
|
||||||
Index: libvirt-5.7.0/tools/libvirt-guests.sh.in
|
Index: libvirt-5.8.0/tools/libvirt-guests.sh.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tools/libvirt-guests.sh.in
|
--- libvirt-5.8.0.orig/tools/libvirt-guests.sh.in
|
||||||
+++ libvirt-5.7.0/tools/libvirt-guests.sh.in
|
+++ libvirt-5.8.0/tools/libvirt-guests.sh.in
|
||||||
@@ -16,14 +16,13 @@
|
@@ -16,14 +16,13 @@
|
||||||
# License along with this library. If not, see
|
# License along with this library. If not, see
|
||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
@ -163,10 +163,10 @@ Index: libvirt-5.7.0/tools/libvirt-guests.sh.in
|
|||||||
esac
|
esac
|
||||||
-exit $RETVAL
|
-exit $RETVAL
|
||||||
+rc_exit
|
+rc_exit
|
||||||
Index: libvirt-5.7.0/tools/libvirt-guests.sysconf
|
Index: libvirt-5.8.0/tools/libvirt-guests.sysconf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tools/libvirt-guests.sysconf
|
--- libvirt-5.8.0.orig/tools/libvirt-guests.sysconf
|
||||||
+++ libvirt-5.7.0/tools/libvirt-guests.sysconf
|
+++ libvirt-5.8.0/tools/libvirt-guests.sysconf
|
||||||
@@ -1,19 +1,29 @@
|
@@ -1,19 +1,29 @@
|
||||||
+## Path: System/Virtualization/libvirt-guests
|
+## Path: System/Virtualization/libvirt-guests
|
||||||
+
|
+
|
||||||
|
@ -3,10 +3,10 @@ Disable TLS by default
|
|||||||
On SUSE distros, the default is for libvirtd to listen only on the
|
On SUSE distros, the default is for libvirtd to listen only on the
|
||||||
Unix Domain Socket. The libvirt client still provides remote access
|
Unix Domain Socket. The libvirt client still provides remote access
|
||||||
via a SSH tunnel.
|
via a SSH tunnel.
|
||||||
Index: libvirt-5.7.0/src/remote/remote_daemon_config.c
|
Index: libvirt-5.8.0/src/remote/remote_daemon_config.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/remote/remote_daemon_config.c
|
--- libvirt-5.8.0.orig/src/remote/remote_daemon_config.c
|
||||||
+++ libvirt-5.7.0/src/remote/remote_daemon_config.c
|
+++ libvirt-5.8.0/src/remote/remote_daemon_config.c
|
||||||
@@ -109,7 +109,7 @@ daemonConfigNew(bool privileged ATTRIBUT
|
@@ -109,7 +109,7 @@ daemonConfigNew(bool privileged ATTRIBUT
|
||||||
|
|
||||||
#ifdef WITH_IP
|
#ifdef WITH_IP
|
||||||
@ -16,10 +16,10 @@ Index: libvirt-5.7.0/src/remote/remote_daemon_config.c
|
|||||||
# else /* ! LIBVIRTD */
|
# else /* ! LIBVIRTD */
|
||||||
data->listen_tls = 0; /* Always honoured, --listen doesn't exist. */
|
data->listen_tls = 0; /* Always honoured, --listen doesn't exist. */
|
||||||
# endif /* ! LIBVIRTD */
|
# endif /* ! LIBVIRTD */
|
||||||
Index: libvirt-5.7.0/src/remote/libvirtd.conf.in
|
Index: libvirt-5.8.0/src/remote/libvirtd.conf.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/remote/libvirtd.conf.in
|
--- libvirt-5.8.0.orig/src/remote/libvirtd.conf.in
|
||||||
+++ libvirt-5.7.0/src/remote/libvirtd.conf.in
|
+++ libvirt-5.8.0/src/remote/libvirtd.conf.in
|
||||||
@@ -17,8 +17,8 @@
|
@@ -17,8 +17,8 @@
|
||||||
# It is necessary to setup a CA and issue server certificates before
|
# It is necessary to setup a CA and issue server certificates before
|
||||||
# using this capability.
|
# using this capability.
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Adjust libvirtd sysconfig file to conform to SUSE standards
|
Adjust libvirtd sysconfig file to conform to SUSE standards
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/remote/libvirtd.sysconf
|
Index: libvirt-5.8.0/src/remote/libvirtd.sysconf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/remote/libvirtd.sysconf
|
--- libvirt-5.8.0.orig/src/remote/libvirtd.sysconf
|
||||||
+++ libvirt-5.7.0/src/remote/libvirtd.sysconf
|
+++ libvirt-5.8.0/src/remote/libvirtd.sysconf
|
||||||
@@ -1,5 +1,9 @@
|
@@ -1,5 +1,9 @@
|
||||||
+## Path: System/Virtualization/libvirt
|
+## Path: System/Virtualization/libvirt
|
||||||
# Customizations for the libvirtd.service systemd unit
|
# Customizations for the libvirtd.service systemd unit
|
||||||
|
@ -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
|
by default. It can only be enabled with the 'autoballoon' setting in
|
||||||
libxl.conf. See jsc#SLE-3059 for more details.
|
libxl.conf. See jsc#SLE-3059 for more details.
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl.conf
|
Index: libvirt-5.8.0/src/libxl/libxl.conf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl.conf
|
--- libvirt-5.8.0.orig/src/libxl/libxl.conf
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl.conf
|
+++ libvirt-5.8.0/src/libxl/libxl.conf
|
||||||
@@ -4,12 +4,11 @@
|
@@ -4,12 +4,11 @@
|
||||||
|
|
||||||
# Enable autoballooning of domain0
|
# Enable autoballooning of domain0
|
||||||
@ -27,10 +27,10 @@ Index: libvirt-5.7.0/src/libxl/libxl.conf
|
|||||||
|
|
||||||
|
|
||||||
# In order to prevent accidentally starting two domains that
|
# In order to prevent accidentally starting two domains that
|
||||||
Index: libvirt-5.7.0/src/libxl/libxl_conf.c
|
Index: libvirt-5.8.0/src/libxl/libxl_conf.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/libxl/libxl_conf.c
|
--- libvirt-5.8.0.orig/src/libxl/libxl_conf.c
|
||||||
+++ libvirt-5.7.0/src/libxl/libxl_conf.c
|
+++ libvirt-5.8.0/src/libxl/libxl_conf.c
|
||||||
@@ -22,7 +22,6 @@
|
@@ -22,7 +22,6 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Adjust paths of OVMF firmwares on SUSE distros
|
Adjust paths of OVMF firmwares on SUSE distros
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/qemu/qemu.conf
|
Index: libvirt-5.8.0/src/qemu/qemu.conf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/qemu/qemu.conf
|
--- libvirt-5.8.0.orig/src/qemu/qemu.conf
|
||||||
+++ libvirt-5.7.0/src/qemu/qemu.conf
|
+++ libvirt-5.8.0/src/qemu/qemu.conf
|
||||||
@@ -796,10 +796,9 @@
|
@@ -796,10 +796,9 @@
|
||||||
# for x86_64 and i686, but it's AAVMF for aarch64. The libvirt default
|
# for x86_64 and i686, but it's AAVMF for aarch64. The libvirt default
|
||||||
# follows this scheme.
|
# follows this scheme.
|
||||||
@ -18,10 +18,10 @@ Index: libvirt-5.7.0/src/qemu/qemu.conf
|
|||||||
#]
|
#]
|
||||||
|
|
||||||
# The backend to use for handling stdout/stderr output from
|
# The backend to use for handling stdout/stderr output from
|
||||||
Index: libvirt-5.7.0/src/qemu/qemu_conf.c
|
Index: libvirt-5.8.0/src/qemu/qemu_conf.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/qemu/qemu_conf.c
|
--- libvirt-5.8.0.orig/src/qemu/qemu_conf.c
|
||||||
+++ libvirt-5.7.0/src/qemu/qemu_conf.c
|
+++ libvirt-5.8.0/src/qemu/qemu_conf.c
|
||||||
@@ -96,10 +96,9 @@ qemuDriverUnlock(virQEMUDriverPtr driver
|
@@ -96,10 +96,9 @@ qemuDriverUnlock(virQEMUDriverPtr driver
|
||||||
|
|
||||||
#ifndef DEFAULT_LOADER_NVRAM
|
#ifndef DEFAULT_LOADER_NVRAM
|
||||||
@ -36,10 +36,10 @@ Index: libvirt-5.7.0/src/qemu/qemu_conf.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/security/virt-aa-helper.c
|
Index: libvirt-5.8.0/src/security/virt-aa-helper.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/security/virt-aa-helper.c
|
--- libvirt-5.8.0.orig/src/security/virt-aa-helper.c
|
||||||
+++ libvirt-5.7.0/src/security/virt-aa-helper.c
|
+++ libvirt-5.8.0/src/security/virt-aa-helper.c
|
||||||
@@ -509,7 +509,8 @@ valid_path(const char *path, const bool
|
@@ -509,7 +509,8 @@ valid_path(const char *path, const bool
|
||||||
"/usr/share/ovmf/", /* for OVMF images */
|
"/usr/share/ovmf/", /* for OVMF images */
|
||||||
"/usr/share/AAVMF/", /* for AAVMF images */
|
"/usr/share/AAVMF/", /* for AAVMF images */
|
||||||
|
@ -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
|
etc.), but for now they are all lumped together in this
|
||||||
single patch.
|
single patch.
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/qemu/qemu.conf
|
Index: libvirt-5.8.0/src/qemu/qemu.conf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/qemu/qemu.conf
|
--- libvirt-5.8.0.orig/src/qemu/qemu.conf
|
||||||
+++ libvirt-5.7.0/src/qemu/qemu.conf
|
+++ libvirt-5.8.0/src/qemu/qemu.conf
|
||||||
@@ -420,10 +420,19 @@
|
@@ -420,10 +420,19 @@
|
||||||
# isolation, but it cannot appear in a list of drivers.
|
# isolation, but it cannot appear in a list of drivers.
|
||||||
#
|
#
|
||||||
@ -60,11 +60,11 @@ Index: libvirt-5.7.0/src/qemu/qemu.conf
|
|||||||
#
|
#
|
||||||
#lock_manager = "lockd"
|
#lock_manager = "lockd"
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/qemu/qemu_conf.c
|
Index: libvirt-5.8.0/src/qemu/qemu_conf.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/qemu/qemu_conf.c
|
--- libvirt-5.8.0.orig/src/qemu/qemu_conf.c
|
||||||
+++ libvirt-5.7.0/src/qemu/qemu_conf.c
|
+++ libvirt-5.8.0/src/qemu/qemu_conf.c
|
||||||
@@ -287,7 +287,7 @@ virQEMUDriverConfigPtr virQEMUDriverConf
|
@@ -278,7 +278,7 @@ virQEMUDriverConfigPtr virQEMUDriverConf
|
||||||
|
|
||||||
cfg->clearEmulatorCapabilities = true;
|
cfg->clearEmulatorCapabilities = true;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Adjust virtlockd sysconfig file to conform to SUSE standards
|
Adjust virtlockd sysconfig file to conform to SUSE standards
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/locking/virtlockd.sysconf
|
Index: libvirt-5.8.0/src/locking/virtlockd.sysconf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/locking/virtlockd.sysconf
|
--- libvirt-5.8.0.orig/src/locking/virtlockd.sysconf
|
||||||
+++ libvirt-5.7.0/src/locking/virtlockd.sysconf
|
+++ libvirt-5.8.0/src/locking/virtlockd.sysconf
|
||||||
@@ -1,3 +1,7 @@
|
@@ -1,3 +1,7 @@
|
||||||
+## Path: System/Virtualization/virtlockd
|
+## Path: System/Virtualization/virtlockd
|
||||||
+
|
+
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Adjust virtlogd sysconfig file to conform to SUSE standards
|
Adjust virtlogd sysconfig file to conform to SUSE standards
|
||||||
|
|
||||||
Index: libvirt-5.7.0/src/logging/virtlogd.sysconf
|
Index: libvirt-5.8.0/src/logging/virtlogd.sysconf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/src/logging/virtlogd.sysconf
|
--- libvirt-5.8.0.orig/src/logging/virtlogd.sysconf
|
||||||
+++ libvirt-5.7.0/src/logging/virtlogd.sysconf
|
+++ libvirt-5.8.0/src/logging/virtlogd.sysconf
|
||||||
@@ -1,3 +1,7 @@
|
@@ -1,3 +1,7 @@
|
||||||
+## Path: System/Virtualization/virtlogd
|
+## Path: System/Virtualization/virtlogd
|
||||||
+
|
+
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: libvirt-5.7.0/tools/Makefile.am
|
Index: libvirt-5.8.0/tools/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-5.7.0.orig/tools/Makefile.am
|
--- libvirt-5.8.0.orig/tools/Makefile.am
|
||||||
+++ libvirt-5.7.0/tools/Makefile.am
|
+++ libvirt-5.8.0/tools/Makefile.am
|
||||||
@@ -59,6 +59,7 @@ PODFILES = \
|
@@ -59,6 +59,7 @@ PODFILES = \
|
||||||
virt-sanlock-cleanup.pod \
|
virt-sanlock-cleanup.pod \
|
||||||
virt-xml-validate.pod \
|
virt-xml-validate.pod \
|
||||||
@ -28,10 +28,10 @@ Index: libvirt-5.7.0/tools/Makefile.am
|
|||||||
virt-xml-validate: virt-xml-validate.in Makefile
|
virt-xml-validate: virt-xml-validate.in Makefile
|
||||||
$(AM_V_GEN)sed -e 's|[@]schemadir@|$(pkgdatadir)/schemas|g' \
|
$(AM_V_GEN)sed -e 's|[@]schemadir@|$(pkgdatadir)/schemas|g' \
|
||||||
-e 's|[@]VERSION@|$(VERSION)|g' \
|
-e 's|[@]VERSION@|$(VERSION)|g' \
|
||||||
Index: libvirt-5.7.0/tools/virt-create-rootfs
|
Index: libvirt-5.8.0/tools/virt-create-rootfs
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ libvirt-5.7.0/tools/virt-create-rootfs
|
+++ libvirt-5.8.0/tools/virt-create-rootfs
|
||||||
@@ -0,0 +1,214 @@
|
@@ -0,0 +1,214 @@
|
||||||
+#!/bin/sh
|
+#!/bin/sh
|
||||||
+set -e
|
+set -e
|
||||||
@ -247,10 +247,10 @@ Index: libvirt-5.7.0/tools/virt-create-rootfs
|
|||||||
+ echo "pts/0" >> "$ROOT/etc/securetty"
|
+ echo "pts/0" >> "$ROOT/etc/securetty"
|
||||||
+ chroot "$ROOT" /usr/bin/passwd
|
+ chroot "$ROOT" /usr/bin/passwd
|
||||||
+fi
|
+fi
|
||||||
Index: libvirt-5.7.0/tools/virt-create-rootfs.pod
|
Index: libvirt-5.8.0/tools/virt-create-rootfs.pod
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ libvirt-5.7.0/tools/virt-create-rootfs.pod
|
+++ libvirt-5.8.0/tools/virt-create-rootfs.pod
|
||||||
@@ -0,0 +1,77 @@
|
@@ -0,0 +1,77 @@
|
||||||
+=head1 NAME
|
+=head1 NAME
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user