forked from pool/libvirt
Accepting request 558230 from home:jfehlig:branches:Virtualization
- libvirt-guests: fix 'stop' operation when action is 'suspend' 69ed99c7-dom0-persistent.patch, 8599aedd-libvirt-guests-dom0-filter.patch bsc#1070130 OBS-URL: https://build.opensuse.org/request/show/558230 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=650
This commit is contained in:
parent
9e7c17be27
commit
c01d33d0ce
21
69ed99c7-dom0-persistent.patch
Normal file
21
69ed99c7-dom0-persistent.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
commit 69ed99c78696d7ac405ce9e193a4a312fd9945d7
|
||||||
|
Author: Jim Fehlig <jfehlig@suse.com>
|
||||||
|
Date: Wed Dec 13 14:20:37 2017 -0700
|
||||||
|
|
||||||
|
libxl: mark domain0 as persistent
|
||||||
|
|
||||||
|
A Xen domain0 is better described as a persistent domain. Mark it
|
||||||
|
as such during intialization.
|
||||||
|
|
||||||
|
Index: libvirt-3.10.0/src/libxl/libxl_driver.c
|
||||||
|
===================================================================
|
||||||
|
--- libvirt-3.10.0.orig/src/libxl/libxl_driver.c
|
||||||
|
+++ libvirt-3.10.0/src/libxl/libxl_driver.c
|
||||||
|
@@ -609,6 +609,7 @@ libxlAddDom0(libxlDriverPrivatePtr drive
|
||||||
|
|
||||||
|
def = NULL;
|
||||||
|
|
||||||
|
+ vm->persistent = 1;
|
||||||
|
virDomainObjSetState(vm, VIR_DOMAIN_RUNNING, VIR_DOMAIN_RUNNING_BOOTED);
|
||||||
|
if (virDomainDefSetVcpusMax(vm->def, d_info.vcpu_max_id + 1, driver->xmlopt))
|
||||||
|
goto cleanup;
|
25
8599aedd-libvirt-guests-dom0-filter.patch
Normal file
25
8599aedd-libvirt-guests-dom0-filter.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
commit 8599aedd434a2843dca7fae37bd397f07a584c1a
|
||||||
|
Author: Jim Fehlig <jfehlig@suse.com>
|
||||||
|
Date: Fri Dec 15 15:28:49 2017 -0700
|
||||||
|
|
||||||
|
Improve filtering of Xen domain0 in libvirt-guests
|
||||||
|
|
||||||
|
The list_guests function in libvirt-guests uses 'grep -v' to filter
|
||||||
|
Xen domain0 from a list of guests. If domain0 is the only item in
|
||||||
|
the list, 'grep -v' returns 1, causing the 'stop' operation to fail
|
||||||
|
when action is 'suspend'. Improve the filtering by using sed to remove
|
||||||
|
domain0 from the list of guests.
|
||||||
|
|
||||||
|
Index: libvirt-3.10.0/tools/libvirt-guests.sh.in
|
||||||
|
===================================================================
|
||||||
|
--- libvirt-3.10.0.orig/tools/libvirt-guests.sh.in
|
||||||
|
+++ libvirt-3.10.0/tools/libvirt-guests.sh.in
|
||||||
|
@@ -121,7 +121,7 @@ list_guests() {
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- echo "$list" | grep -v 00000000-0000-0000-0000-000000000000
|
||||||
|
+ echo "$list" | sed "/00000000-0000-0000-0000-000000000000/d"
|
||||||
|
}
|
||||||
|
|
||||||
|
# guest_name URI UUID
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 18 17:08:28 UTC 2017 - jfehlig@suse.com
|
||||||
|
|
||||||
|
- libvirt-guests: fix 'stop' operation when action is 'suspend'
|
||||||
|
69ed99c7-dom0-persistent.patch,
|
||||||
|
8599aedd-libvirt-guests-dom0-filter.patch
|
||||||
|
bsc#1070130
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 14 23:04:20 UTC 2017 - jfehlig@suse.com
|
Thu Dec 14 23:04:20 UTC 2017 - jfehlig@suse.com
|
||||||
|
|
||||||
|
@ -309,6 +309,8 @@ Source99: baselibs.conf
|
|||||||
Source100: %{name}-rpmlintrc
|
Source100: %{name}-rpmlintrc
|
||||||
# Upstream patches
|
# Upstream patches
|
||||||
Patch0: 2d07f1f0-fix-storage-crash.patch
|
Patch0: 2d07f1f0-fix-storage-crash.patch
|
||||||
|
Patch1: 69ed99c7-dom0-persistent.patch
|
||||||
|
Patch2: 8599aedd-libvirt-guests-dom0-filter.patch
|
||||||
# Patches pending upstream review
|
# Patches pending upstream review
|
||||||
Patch100: libxl-dom-reset.patch
|
Patch100: libxl-dom-reset.patch
|
||||||
Patch101: network-don-t-use-dhcp-authoritative-on-static-netwo.patch
|
Patch101: network-don-t-use-dhcp-authoritative-on-static-netwo.patch
|
||||||
@ -885,6 +887,8 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
%patch150 -p1
|
%patch150 -p1
|
||||||
|
@ -12,7 +12,7 @@ Index: libvirt-3.10.0/src/libxl/libxl_driver.c
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-3.10.0.orig/src/libxl/libxl_driver.c
|
--- libvirt-3.10.0.orig/src/libxl/libxl_driver.c
|
||||||
+++ libvirt-3.10.0/src/libxl/libxl_driver.c
|
+++ libvirt-3.10.0/src/libxl/libxl_driver.c
|
||||||
@@ -1381,6 +1381,61 @@ libxlDomainReboot(virDomainPtr dom, unsi
|
@@ -1382,6 +1382,61 @@ libxlDomainReboot(virDomainPtr dom, unsi
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -74,7 +74,7 @@ Index: libvirt-3.10.0/src/libxl/libxl_driver.c
|
|||||||
libxlDomainDestroyFlags(virDomainPtr dom,
|
libxlDomainDestroyFlags(virDomainPtr dom,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
@@ -6497,6 +6552,7 @@ static virHypervisorDriver libxlHypervis
|
@@ -6498,6 +6553,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 */
|
||||||
|
@ -56,7 +56,7 @@ Index: libvirt-3.10.0/src/libxl/libxl_driver.c
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-3.10.0.orig/src/libxl/libxl_driver.c
|
--- libvirt-3.10.0.orig/src/libxl/libxl_driver.c
|
||||||
+++ libvirt-3.10.0/src/libxl/libxl_driver.c
|
+++ libvirt-3.10.0/src/libxl/libxl_driver.c
|
||||||
@@ -6099,6 +6099,9 @@ libxlDomainMigratePerform3Params(virDoma
|
@@ -6100,6 +6100,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-3.10.0/src/libxl/libxl_driver.c
|
|||||||
|
|
||||||
#ifdef LIBXL_HAVE_NO_SUSPEND_RESUME
|
#ifdef LIBXL_HAVE_NO_SUSPEND_RESUME
|
||||||
virReportUnsupportedError();
|
virReportUnsupportedError();
|
||||||
@@ -6115,6 +6118,18 @@ libxlDomainMigratePerform3Params(virDoma
|
@@ -6116,6 +6119,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-3.10.0/src/libxl/libxl_driver.c
|
|||||||
virTypedParamsGetString(params, nparams,
|
virTypedParamsGetString(params, nparams,
|
||||||
VIR_MIGRATE_PARAM_URI,
|
VIR_MIGRATE_PARAM_URI,
|
||||||
&uri) < 0)
|
&uri) < 0)
|
||||||
@@ -6129,11 +6144,11 @@ libxlDomainMigratePerform3Params(virDoma
|
@@ -6130,11 +6145,11 @@ libxlDomainMigratePerform3Params(virDoma
|
||||||
|
|
||||||
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
|
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
|
||||||
if (libxlDomainMigrationPerformP2P(driver, vm, dom->conn, dom_xml,
|
if (libxlDomainMigrationPerformP2P(driver, vm, dom->conn, dom_xml,
|
||||||
|
Loading…
Reference in New Issue
Block a user