Update to libvirt 0.7.4
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=23
This commit is contained in:
parent
8564dd97e4
commit
48020eedc5
@ -2,7 +2,7 @@ Index: src/lxc/lxc_container.c
|
||||
===================================================================
|
||||
--- src/lxc/lxc_container.c.orig
|
||||
+++ src/lxc/lxc_container.c
|
||||
@@ -796,6 +796,9 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
@@ -813,6 +813,9 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
lxc_child_argv_t args = { def, nveths, veths, control, ttyPath };
|
||||
|
||||
/* allocate a stack for the container */
|
||||
@ -12,7 +12,7 @@ Index: src/lxc/lxc_container.c
|
||||
if (VIR_ALLOC_N(stack, stacksize) < 0) {
|
||||
virReportOOMError(NULL);
|
||||
return -1;
|
||||
@@ -810,7 +813,11 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
@@ -827,7 +830,11 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
if (def->nets != NULL)
|
||||
flags |= CLONE_NEWNET;
|
||||
|
||||
@ -24,7 +24,7 @@ Index: src/lxc/lxc_container.c
|
||||
VIR_FREE(stack);
|
||||
DEBUG("clone() returned, %d", pid);
|
||||
|
||||
@@ -836,6 +843,7 @@ int lxcContainerAvailable(int features)
|
||||
@@ -853,6 +860,7 @@ int lxcContainerAvailable(int features)
|
||||
char *childStack;
|
||||
char *stack;
|
||||
int childStatus;
|
||||
@ -32,7 +32,7 @@ Index: src/lxc/lxc_container.c
|
||||
|
||||
if (features & LXC_CONTAINER_FEATURE_USER)
|
||||
flags |= CLONE_NEWUSER;
|
||||
@@ -843,14 +851,21 @@ int lxcContainerAvailable(int features)
|
||||
@@ -860,14 +868,21 @@ int lxcContainerAvailable(int features)
|
||||
if (features & LXC_CONTAINER_FEATURE_NET)
|
||||
flags |= CLONE_NEWNET;
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/xend_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/xend_internal.c
|
||||
@@ -4087,13 +4087,12 @@ xenDaemonAttachDevice(virDomainPtr domai
|
||||
--- libvirt-0.7.4.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/xend_internal.c
|
||||
@@ -4109,13 +4109,12 @@ xenDaemonAttachDevice(virDomainPtr domai
|
||||
|
||||
priv = (xenUnifiedPrivatePtr) domain->conn->privateData;
|
||||
|
||||
@ -21,7 +21,7 @@ Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
if (!(def = xenDaemonDomainFetch(domain->conn,
|
||||
domain->id,
|
||||
domain->name,
|
||||
@@ -4191,12 +4190,11 @@ xenDaemonDetachDevice(virDomainPtr domai
|
||||
@@ -4213,12 +4212,11 @@ xenDaemonDetachDevice(virDomainPtr domai
|
||||
|
||||
priv = (xenUnifiedPrivatePtr) domain->conn->privateData;
|
||||
|
||||
@ -38,11 +38,11 @@ Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
|
||||
if (!(def = xenDaemonDomainFetch(domain->conn,
|
||||
domain->id,
|
||||
Index: libvirt-0.7.2/src/libvirt.c
|
||||
Index: libvirt-0.7.4/src/libvirt.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/libvirt.c
|
||||
+++ libvirt-0.7.2/src/libvirt.c
|
||||
@@ -4868,7 +4868,8 @@ error:
|
||||
--- libvirt-0.7.4.orig/src/libvirt.c
|
||||
+++ libvirt-0.7.4/src/libvirt.c
|
||||
@@ -4919,7 +4919,8 @@ error:
|
||||
* @domain: pointer to domain object
|
||||
* @xml: pointer to XML description of one device
|
||||
*
|
||||
@ -52,7 +52,7 @@ Index: libvirt-0.7.2/src/libvirt.c
|
||||
*
|
||||
* Returns 0 in case of success, -1 in case of failure.
|
||||
*/
|
||||
@@ -4911,7 +4912,8 @@ error:
|
||||
@@ -4962,7 +4963,8 @@ error:
|
||||
* @domain: pointer to domain object
|
||||
* @xml: pointer to XML description of one device
|
||||
*
|
||||
|
@ -1,32 +0,0 @@
|
||||
Index: libvirt-0.7.2/configure.in
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/configure.in
|
||||
+++ libvirt-0.7.2/configure.in
|
||||
@@ -1304,11 +1304,22 @@ if test "$with_storage_mpath" = "yes"; t
|
||||
DEVMAPPER_REQUIRED=0.0
|
||||
DEVMAPPER_CFLAGS=
|
||||
DEVMAPPER_LIBS=
|
||||
- PKG_CHECK_MODULES(DEVMAPPER, devmapper >= $DEVMAPPER_REQUIRED,
|
||||
- [], [
|
||||
- AC_MSG_ERROR(
|
||||
- [You must install device-mapper-devel >= $DEVMAPPER_REQUIRED to compile libvirt])
|
||||
- ])
|
||||
+ PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= $DEVMAPPER_REQUIRED], [], [DEVMAPPER_FOUND=no])
|
||||
+ if test "$DEVMAPPER_FOUND" = "no"; then
|
||||
+ # devmapper is missing pkg-config files in ubuntu, suse, etc
|
||||
+ save_LIBS="$LIBS"
|
||||
+ save_CFLAGS="$CFLAGS"
|
||||
+ DEVMAPPER_FOUND=yes
|
||||
+ AC_CHECK_HEADER([libdevmapper.h],,[DEVMAPPER_FOUND=no])
|
||||
+ AC_CHECK_LIB([devmapper], [dm_task_run],,[DEVMAPPER_FOUND=no])
|
||||
+ DEVMAPPER_LIBS="-ldevmapper"
|
||||
+ LIBS="$save_LIBS"
|
||||
+ CFLAGS="$save_CFLAGS"
|
||||
+ fi
|
||||
+ if test "$DEVMAPPER_FOUND" = "no" ; then
|
||||
+ AC_MSG_ERROR([You must install device-mapper-devel/libdevmapper >= $DEVMAPPER_REQUIRED to compile libvirt])
|
||||
+ fi
|
||||
+
|
||||
fi
|
||||
AC_SUBST([DEVMAPPER_CFLAGS])
|
||||
AC_SUBST([DEVMAPPER_LIBS])
|
@ -1,25 +0,0 @@
|
||||
Index: libvirt-0.7.2/src/conf/storage_conf.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/conf/storage_conf.c
|
||||
+++ libvirt-0.7.2/src/conf/storage_conf.c
|
||||
@@ -60,7 +60,7 @@ VIR_ENUM_IMPL(virStoragePoolFormatFileSy
|
||||
VIR_STORAGE_POOL_FS_LAST,
|
||||
"auto", "ext2", "ext3",
|
||||
"ext4", "ufs", "iso9660", "udf",
|
||||
- "gfs", "gfs2", "vfat", "hfs+", "xfs")
|
||||
+ "gfs", "gfs2", "vfat", "hfs+", "xfs", "ocfs2")
|
||||
|
||||
VIR_ENUM_IMPL(virStoragePoolFormatFileSystemNet,
|
||||
VIR_STORAGE_POOL_NETFS_LAST,
|
||||
Index: libvirt-0.7.2/src/conf/storage_conf.h
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/conf/storage_conf.h
|
||||
+++ libvirt-0.7.2/src/conf/storage_conf.h
|
||||
@@ -395,6 +395,7 @@ enum virStoragePoolFormatFileSystem {
|
||||
VIR_STORAGE_POOL_FS_VFAT,
|
||||
VIR_STORAGE_POOL_FS_HFSPLUS,
|
||||
VIR_STORAGE_POOL_FS_XFS,
|
||||
+ VIR_STORAGE_POOL_FS_OCFS2,
|
||||
VIR_STORAGE_POOL_FS_LAST,
|
||||
};
|
||||
VIR_ENUM_DECL(virStoragePoolFormatFileSystem)
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:311817f34ace89ee44b09a4d4854bbc3a5c0567bf9a8e8a6772c494432f94b33
|
||||
size 5563880
|
3
libvirt-0.7.4.tar.bz2
Normal file
3
libvirt-0.7.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6316a53b4cfaf184e795c7be69a371c5dc90a8a6dd6cd05c4208a1314aac10d4
|
||||
size 5692288
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 24 10:29:03 MST 2009 - jfehlig@novell.com
|
||||
|
||||
- Updated to version 0.7.4
|
||||
- Implement a node device backend using libudev
|
||||
- New APIs for checking some object properties
|
||||
- Fully asynchronous monitor I/O processing
|
||||
- add MAC address based port filtering to qemu
|
||||
- support for IPv6 / multiple addresses per interfaces
|
||||
- lots of improvements and bug fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 19 16:48:36 MST 2009 - jfehlig@novell.com
|
||||
|
||||
|
16
libvirt.spec
16
libvirt.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package libvirt (Version 0.7.2)
|
||||
# spec file for package libvirt (Version 0.7.4)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -64,7 +64,7 @@ Url: http://libvirt.org/
|
||||
License: LGPL v2.1 or later
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: yes
|
||||
Version: 0.7.2
|
||||
Version: 0.7.4
|
||||
Release: 3
|
||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||
Requires: readline
|
||||
@ -91,12 +91,7 @@ Requires: PolicyKit >= 0.6
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: libvirtd.init
|
||||
# Upstream patches
|
||||
Patch0: devmap-no-pkgconfig.patch
|
||||
Patch1: fs-ocfs2.patch
|
||||
Patch2: selinux-ldflags.patch
|
||||
Patch3: virsh-warning.patch
|
||||
Patch4: xen-max-vcpus.patch
|
||||
Patch5: detach-disk.patch
|
||||
Patch0: detach-disk.patch
|
||||
# Need to go upstream
|
||||
Patch100: socat.patch
|
||||
Patch101: clone.patch
|
||||
@ -198,11 +193,6 @@ Authors:
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch100 -p1
|
||||
%patch101
|
||||
%patch102 -p1
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/xend_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/xend_internal.c
|
||||
@@ -4489,6 +4489,8 @@ xenDaemonDomainMigratePerform (virDomain
|
||||
--- libvirt-0.7.4.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/xend_internal.c
|
||||
@@ -4514,6 +4514,8 @@ xenDaemonDomainMigratePerform (virDomain
|
||||
"node", "-1",
|
||||
"ssl", "0",
|
||||
"resource", "0", /* required, xend ignores it */
|
||||
|
@ -1,13 +0,0 @@
|
||||
Index: libvirt-0.7.2/src/Makefile.am
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/Makefile.am
|
||||
+++ libvirt-0.7.2/src/Makefile.am
|
||||
@@ -657,6 +657,8 @@ libvirt_driver_security_la_CFLAGS = \
|
||||
libvirt_driver_security_la_LDFLAGS =
|
||||
if WITH_SECDRIVER_SELINUX
|
||||
libvirt_driver_security_la_SOURCES += $(SECURITY_DRIVER_SELINUX_SOURCES)
|
||||
+libvirt_driver_security_la_CFLAGS += $(SELINUX_CFLAGS)
|
||||
+libvirt_driver_security_la_LDFLAGS += $(SELINUX_LIBS)
|
||||
endif
|
||||
if WITH_SECDRIVER_APPARMOR
|
||||
libvirt_driver_security_la_SOURCES += $(SECURITY_DRIVER_APPARMOR_SOURCES)
|
296
snapshots.patch
296
snapshots.patch
@ -1,8 +1,8 @@
|
||||
Index: libvirt-0.7.2/include/libvirt/libvirt.h.in
|
||||
Index: libvirt-0.7.4/include/libvirt/libvirt.h.in
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/include/libvirt/libvirt.h.in
|
||||
+++ libvirt-0.7.2/include/libvirt/libvirt.h.in
|
||||
@@ -561,6 +561,21 @@ int virDomainRestore
|
||||
--- libvirt-0.7.4.orig/include/libvirt/libvirt.h.in
|
||||
+++ libvirt-0.7.4/include/libvirt/libvirt.h.in
|
||||
@@ -565,6 +565,21 @@ int virDomainRestore
|
||||
const char *from);
|
||||
|
||||
/*
|
||||
@ -24,11 +24,11 @@ Index: libvirt-0.7.2/include/libvirt/libvirt.h.in
|
||||
* Domain core dump
|
||||
*/
|
||||
int virDomainCoreDump (virDomainPtr domain,
|
||||
Index: libvirt-0.7.2/src/libvirt.c
|
||||
Index: libvirt-0.7.4/src/libvirt.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/libvirt.c
|
||||
+++ libvirt-0.7.2/src/libvirt.c
|
||||
@@ -2234,6 +2234,166 @@ error:
|
||||
--- libvirt-0.7.4.orig/src/libvirt.c
|
||||
+++ libvirt-0.7.4/src/libvirt.c
|
||||
@@ -2281,6 +2281,166 @@ error:
|
||||
}
|
||||
|
||||
/**
|
||||
@ -195,11 +195,11 @@ Index: libvirt-0.7.2/src/libvirt.c
|
||||
* virDomainCoreDump:
|
||||
* @domain: a domain object
|
||||
* @to: path for the core file
|
||||
Index: libvirt-0.7.2/src/driver.h
|
||||
Index: libvirt-0.7.4/src/driver.h
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/driver.h
|
||||
+++ libvirt-0.7.2/src/driver.h
|
||||
@@ -133,6 +133,21 @@ typedef int
|
||||
--- libvirt-0.7.4.orig/src/driver.h
|
||||
+++ libvirt-0.7.4/src/driver.h
|
||||
@@ -136,6 +136,21 @@ typedef int
|
||||
(*virDrvDomainRestore) (virConnectPtr conn,
|
||||
const char *from);
|
||||
typedef int
|
||||
@ -221,10 +221,10 @@ Index: libvirt-0.7.2/src/driver.h
|
||||
(*virDrvDomainCoreDump) (virDomainPtr domain,
|
||||
const char *to,
|
||||
int flags);
|
||||
@@ -418,6 +433,11 @@ struct _virDriver {
|
||||
virDrvNodeDeviceReAttach nodeDeviceReAttach;
|
||||
virDrvNodeDeviceReset nodeDeviceReset;
|
||||
virDrvDomainMigratePrepareTunnel domainMigratePrepareTunnel;
|
||||
@@ -435,6 +450,11 @@ struct _virDriver {
|
||||
virDrvConnectIsSecure isSecure;
|
||||
virDrvDomainIsActive domainIsActive;
|
||||
virDrvDomainIsPersistent domainIsPersistent;
|
||||
+ virDrvDomainSnapshotCreate domainSnapshotCreate;
|
||||
+ virDrvDomainSnapshotApply domainSnapshotApply;
|
||||
+ virDrvDomainSnapshotDelete domainSnapshotDelete;
|
||||
@ -233,11 +233,11 @@ Index: libvirt-0.7.2/src/driver.h
|
||||
};
|
||||
|
||||
typedef int
|
||||
Index: libvirt-0.7.2/src/xen/xen_driver.c
|
||||
Index: libvirt-0.7.4/src/xen/xen_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xen_driver.c
|
||||
+++ libvirt-0.7.2/src/xen/xen_driver.c
|
||||
@@ -955,6 +955,81 @@ xenUnifiedDomainRestore (virConnectPtr c
|
||||
--- libvirt-0.7.4.orig/src/xen/xen_driver.c
|
||||
+++ libvirt-0.7.4/src/xen/xen_driver.c
|
||||
@@ -1052,6 +1052,81 @@ xenUnifiedDomainRestore (virConnectPtr c
|
||||
}
|
||||
|
||||
static int
|
||||
@ -319,23 +319,11 @@ Index: libvirt-0.7.2/src/xen/xen_driver.c
|
||||
xenUnifiedDomainCoreDump (virDomainPtr dom, const char *to, int flags)
|
||||
{
|
||||
GET_PRIVATE(dom->conn);
|
||||
@@ -1726,6 +1801,11 @@ static virDriver xenUnifiedDriver = {
|
||||
xenUnifiedNodeDeviceReAttach, /* nodeDeviceReAttach */
|
||||
xenUnifiedNodeDeviceReset, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
+ xenUnifiedDomainSnapshotCreate,
|
||||
+ xenUnifiedDomainSnapshotApply,
|
||||
+ xenUnifiedDomainSnapshotDelete,
|
||||
+ xenUnifiedDomainNumOfSnapshots,
|
||||
+ xenUnifiedDomainListSnapshots,
|
||||
};
|
||||
|
||||
/**
|
||||
Index: libvirt-0.7.2/src/xen/xen_driver.h
|
||||
Index: libvirt-0.7.4/src/xen/xen_driver.h
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xen_driver.h
|
||||
+++ libvirt-0.7.2/src/xen/xen_driver.h
|
||||
@@ -98,6 +98,11 @@ struct xenUnifiedDriver {
|
||||
--- libvirt-0.7.4.orig/src/xen/xen_driver.h
|
||||
+++ libvirt-0.7.4/src/xen/xen_driver.h
|
||||
@@ -100,6 +100,11 @@ struct xenUnifiedDriver {
|
||||
virDrvDomainGetSchedulerType domainGetSchedulerType;
|
||||
virDrvDomainGetSchedulerParameters domainGetSchedulerParameters;
|
||||
virDrvDomainSetSchedulerParameters domainSetSchedulerParameters;
|
||||
@ -347,10 +335,10 @@ Index: libvirt-0.7.2/src/xen/xen_driver.h
|
||||
};
|
||||
|
||||
typedef struct xenXMConfCache *xenXMConfCachePtr;
|
||||
Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/xend_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/xend_internal.c
|
||||
--- libvirt-0.7.4.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/xend_internal.c
|
||||
@@ -53,6 +53,12 @@
|
||||
|
||||
#ifndef PROXY
|
||||
@ -364,7 +352,7 @@ Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
/*
|
||||
* The number of Xen scheduler parameters
|
||||
*/
|
||||
@@ -3257,6 +3263,87 @@ xenDaemonDomainRestore(virConnectPtr con
|
||||
@@ -3268,6 +3274,87 @@ xenDaemonDomainRestore(virConnectPtr con
|
||||
}
|
||||
return xend_op(conn, "", "op", "restore", "file", filename, NULL);
|
||||
}
|
||||
@ -452,7 +440,7 @@ Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
#endif /* !PROXY */
|
||||
|
||||
/**
|
||||
@@ -5080,6 +5167,11 @@ struct xenUnifiedDriver xenDaemonDriver
|
||||
@@ -5115,6 +5202,11 @@ struct xenUnifiedDriver xenDaemonDriver
|
||||
xenDaemonGetSchedulerType, /* domainGetSchedulerType */
|
||||
xenDaemonGetSchedulerParameters, /* domainGetSchedulerParameters */
|
||||
xenDaemonSetSchedulerParameters, /* domainSetSchedulerParameters */
|
||||
@ -464,11 +452,11 @@ Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
Index: libvirt-0.7.2/src/xen/proxy_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/proxy_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/proxy_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/proxy_internal.c
|
||||
@@ -84,6 +84,11 @@ struct xenUnifiedDriver xenProxyDriver =
|
||||
--- libvirt-0.7.4.orig/src/xen/proxy_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/proxy_internal.c
|
||||
@@ -83,6 +83,11 @@ struct xenUnifiedDriver xenProxyDriver =
|
||||
NULL, /* domainGetSchedulerType */
|
||||
NULL, /* domainGetSchedulerParameters */
|
||||
NULL, /* domainSetSchedulerParameters */
|
||||
@ -480,10 +468,10 @@ Index: libvirt-0.7.2/src/xen/proxy_internal.c
|
||||
};
|
||||
|
||||
|
||||
Index: libvirt-0.7.2/src/xen/xen_hypervisor.c
|
||||
Index: libvirt-0.7.4/src/xen/xen_hypervisor.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xen_hypervisor.c
|
||||
+++ libvirt-0.7.2/src/xen/xen_hypervisor.c
|
||||
--- libvirt-0.7.4.orig/src/xen/xen_hypervisor.c
|
||||
+++ libvirt-0.7.4/src/xen/xen_hypervisor.c
|
||||
@@ -750,6 +750,11 @@ struct xenUnifiedDriver xenHypervisorDri
|
||||
xenHypervisorGetSchedulerType, /* domainGetSchedulerType */
|
||||
xenHypervisorGetSchedulerParameters, /* domainGetSchedulerParameters */
|
||||
@ -496,10 +484,10 @@ Index: libvirt-0.7.2/src/xen/xen_hypervisor.c
|
||||
};
|
||||
#endif /* !PROXY */
|
||||
|
||||
Index: libvirt-0.7.2/src/xen/xm_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/xm_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xm_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/xm_internal.c
|
||||
--- libvirt-0.7.4.orig/src/xen/xm_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/xm_internal.c
|
||||
@@ -116,6 +116,11 @@ struct xenUnifiedDriver xenXMDriver = {
|
||||
NULL, /* domainGetSchedulerType */
|
||||
NULL, /* domainGetSchedulerParameters */
|
||||
@ -512,10 +500,10 @@ Index: libvirt-0.7.2/src/xen/xm_internal.c
|
||||
};
|
||||
|
||||
#define xenXMError(conn, code, fmt...) \
|
||||
Index: libvirt-0.7.2/src/xen/xs_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/xs_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xs_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/xs_internal.c
|
||||
--- libvirt-0.7.4.orig/src/xen/xs_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/xs_internal.c
|
||||
@@ -83,6 +83,11 @@ struct xenUnifiedDriver xenStoreDriver =
|
||||
NULL, /* domainGetSchedulerType */
|
||||
NULL, /* domainGetSchedulerParameters */
|
||||
@ -528,11 +516,11 @@ Index: libvirt-0.7.2/src/xen/xs_internal.c
|
||||
};
|
||||
|
||||
#endif /* ! PROXY */
|
||||
Index: libvirt-0.7.2/tools/virsh.c
|
||||
Index: libvirt-0.7.4/tools/virsh.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/tools/virsh.c
|
||||
+++ libvirt-0.7.2/tools/virsh.c
|
||||
@@ -1168,6 +1168,188 @@ cmdSave(vshControl *ctl, const vshCmd *c
|
||||
--- libvirt-0.7.4.orig/tools/virsh.c
|
||||
+++ libvirt-0.7.4/tools/virsh.c
|
||||
@@ -1179,6 +1179,188 @@ cmdSave(vshControl *ctl, const vshCmd *c
|
||||
}
|
||||
|
||||
/*
|
||||
@ -721,7 +709,7 @@ Index: libvirt-0.7.2/tools/virsh.c
|
||||
* "schedinfo" command
|
||||
*/
|
||||
static const vshCmdInfo info_schedinfo[] = {
|
||||
@@ -7273,6 +7455,12 @@ static const vshCmdDef commands[] = {
|
||||
@@ -7298,6 +7480,12 @@ static const vshCmdDef commands[] = {
|
||||
{"undefine", cmdUndefine, opts_undefine, info_undefine},
|
||||
{"uri", cmdURI, NULL, info_uri},
|
||||
|
||||
@ -734,14 +722,14 @@ Index: libvirt-0.7.2/tools/virsh.c
|
||||
{"vol-create", cmdVolCreate, opts_vol_create, info_vol_create},
|
||||
{"vol-create-from", cmdVolCreateFrom, opts_vol_create_from, info_vol_create_from},
|
||||
{"vol-create-as", cmdVolCreateAs, opts_vol_create_as, info_vol_create_as},
|
||||
Index: libvirt-0.7.2/src/lxc/lxc_driver.c
|
||||
Index: libvirt-0.7.4/src/lxc/lxc_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/lxc/lxc_driver.c
|
||||
+++ libvirt-0.7.2/src/lxc/lxc_driver.c
|
||||
@@ -2324,6 +2324,11 @@ static virDriver lxcDriver = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/lxc/lxc_driver.c
|
||||
+++ libvirt-0.7.4/src/lxc/lxc_driver.c
|
||||
@@ -2404,6 +2404,11 @@ static virDriver lxcDriver = {
|
||||
lxcIsSecure,
|
||||
lxcDomainIsActive,
|
||||
lxcDomainIsPersistent,
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -750,14 +738,14 @@ Index: libvirt-0.7.2/src/lxc/lxc_driver.c
|
||||
};
|
||||
|
||||
static virStateDriver lxcStateDriver = {
|
||||
Index: libvirt-0.7.2/src/openvz/openvz_driver.c
|
||||
Index: libvirt-0.7.4/src/openvz/openvz_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/openvz/openvz_driver.c
|
||||
+++ libvirt-0.7.2/src/openvz/openvz_driver.c
|
||||
@@ -1433,6 +1433,11 @@ static virDriver openvzDriver = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/openvz/openvz_driver.c
|
||||
+++ libvirt-0.7.4/src/openvz/openvz_driver.c
|
||||
@@ -1534,6 +1534,11 @@ static virDriver openvzDriver = {
|
||||
openvzIsSecure,
|
||||
openvzDomainIsActive,
|
||||
openvzDomainIsPersistent,
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -766,14 +754,14 @@ Index: libvirt-0.7.2/src/openvz/openvz_driver.c
|
||||
};
|
||||
|
||||
int openvzRegister(void) {
|
||||
Index: libvirt-0.7.2/src/qemu/qemu_driver.c
|
||||
Index: libvirt-0.7.4/src/qemu/qemu_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/qemu/qemu_driver.c
|
||||
+++ libvirt-0.7.2/src/qemu/qemu_driver.c
|
||||
@@ -7136,6 +7136,11 @@ static virDriver qemuDriver = {
|
||||
qemudNodeDeviceReAttach, /* nodeDeviceReAttach */
|
||||
qemudNodeDeviceReset, /* nodeDeviceReset */
|
||||
qemudDomainMigratePrepareTunnel, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/qemu/qemu_driver.c
|
||||
+++ libvirt-0.7.4/src/qemu/qemu_driver.c
|
||||
@@ -7559,6 +7559,11 @@ static virDriver qemuDriver = {
|
||||
qemuIsSecure,
|
||||
qemuDomainIsActive,
|
||||
qemuDomainIsPersistent,
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -782,14 +770,14 @@ Index: libvirt-0.7.2/src/qemu/qemu_driver.c
|
||||
};
|
||||
|
||||
|
||||
Index: libvirt-0.7.2/src/esx/esx_driver.c
|
||||
Index: libvirt-0.7.4/src/esx/esx_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/esx/esx_driver.c
|
||||
+++ libvirt-0.7.2/src/esx/esx_driver.c
|
||||
@@ -3275,6 +3275,11 @@ static virDriver esxDriver = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/esx/esx_driver.c
|
||||
+++ libvirt-0.7.4/src/esx/esx_driver.c
|
||||
@@ -3425,6 +3425,11 @@ static virDriver esxDriver = {
|
||||
esxIsSecure, /* isSecure */
|
||||
esxDomainIsActive, /* domainIsActive */
|
||||
esxDomainIsPersistent, /* domainIsPersistent */
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -798,14 +786,14 @@ Index: libvirt-0.7.2/src/esx/esx_driver.c
|
||||
};
|
||||
|
||||
|
||||
Index: libvirt-0.7.2/src/test/test_driver.c
|
||||
Index: libvirt-0.7.4/src/test/test_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/test/test_driver.c
|
||||
+++ libvirt-0.7.2/src/test/test_driver.c
|
||||
@@ -4558,6 +4558,11 @@ static virDriver testDriver = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/test/test_driver.c
|
||||
+++ libvirt-0.7.4/src/test/test_driver.c
|
||||
@@ -5233,6 +5233,11 @@ static virDriver testDriver = {
|
||||
testIsSecure, /* isEncrypted */
|
||||
testDomainIsActive, /* domainIsActive */
|
||||
testDomainIsPersistent, /* domainIsPersistent */
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -814,14 +802,14 @@ Index: libvirt-0.7.2/src/test/test_driver.c
|
||||
};
|
||||
|
||||
static virNetworkDriver testNetworkDriver = {
|
||||
Index: libvirt-0.7.2/src/uml/uml_driver.c
|
||||
Index: libvirt-0.7.4/src/uml/uml_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/uml/uml_driver.c
|
||||
+++ libvirt-0.7.2/src/uml/uml_driver.c
|
||||
@@ -1862,6 +1862,11 @@ static virDriver umlDriver = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/uml/uml_driver.c
|
||||
+++ libvirt-0.7.4/src/uml/uml_driver.c
|
||||
@@ -1888,6 +1888,11 @@ static virDriver umlDriver = {
|
||||
umlIsSecure,
|
||||
umlDomainIsActive,
|
||||
umlDomainIsPersistent,
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -830,14 +818,14 @@ Index: libvirt-0.7.2/src/uml/uml_driver.c
|
||||
};
|
||||
|
||||
|
||||
Index: libvirt-0.7.2/src/vbox/vbox_tmpl.c
|
||||
Index: libvirt-0.7.4/src/vbox/vbox_tmpl.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/vbox/vbox_tmpl.c
|
||||
+++ libvirt-0.7.2/src/vbox/vbox_tmpl.c
|
||||
@@ -6468,6 +6468,11 @@ virDriver NAME(Driver) = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/vbox/vbox_tmpl.c
|
||||
+++ libvirt-0.7.4/src/vbox/vbox_tmpl.c
|
||||
@@ -6571,6 +6571,11 @@ virDriver NAME(Driver) = {
|
||||
vboxIsSecure,
|
||||
vboxDomainIsActive,
|
||||
vboxDomainIsPersistent,
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -846,14 +834,14 @@ Index: libvirt-0.7.2/src/vbox/vbox_tmpl.c
|
||||
};
|
||||
|
||||
virNetworkDriver NAME(NetworkDriver) = {
|
||||
Index: libvirt-0.7.2/src/opennebula/one_driver.c
|
||||
Index: libvirt-0.7.4/src/opennebula/one_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/opennebula/one_driver.c
|
||||
+++ libvirt-0.7.2/src/opennebula/one_driver.c
|
||||
@@ -788,6 +788,11 @@ static virDriver oneDriver = {
|
||||
NULL, /* nodeDeviceReAttach; */
|
||||
NULL, /* nodeDeviceReset; */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/opennebula/one_driver.c
|
||||
+++ libvirt-0.7.4/src/opennebula/one_driver.c
|
||||
@@ -781,6 +781,11 @@ static virDriver oneDriver = {
|
||||
oneIsSecure,
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -862,14 +850,14 @@ Index: libvirt-0.7.2/src/opennebula/one_driver.c
|
||||
};
|
||||
|
||||
static virStateDriver oneStateDriver = {
|
||||
Index: libvirt-0.7.2/src/phyp/phyp_driver.c
|
||||
Index: libvirt-0.7.4/src/phyp/phyp_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/phyp/phyp_driver.c
|
||||
+++ libvirt-0.7.2/src/phyp/phyp_driver.c
|
||||
@@ -1378,6 +1378,11 @@ virDriver phypDriver = {
|
||||
NULL, /* nodeDeviceReAttach */
|
||||
NULL, /* nodeDeviceReset */
|
||||
NULL, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/phyp/phyp_driver.c
|
||||
+++ libvirt-0.7.4/src/phyp/phyp_driver.c
|
||||
@@ -1650,6 +1650,11 @@ virDriver phypDriver = {
|
||||
phypIsSecure,
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -878,14 +866,14 @@ Index: libvirt-0.7.2/src/phyp/phyp_driver.c
|
||||
};
|
||||
|
||||
int
|
||||
Index: libvirt-0.7.2/src/remote/remote_driver.c
|
||||
Index: libvirt-0.7.4/src/remote/remote_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/remote/remote_driver.c
|
||||
+++ libvirt-0.7.2/src/remote/remote_driver.c
|
||||
@@ -8466,6 +8466,11 @@ static virDriver remote_driver = {
|
||||
remoteNodeDeviceReAttach, /* nodeDeviceReAttach */
|
||||
remoteNodeDeviceReset, /* nodeDeviceReset */
|
||||
remoteDomainMigratePrepareTunnel, /* domainMigratePrepareTunnel */
|
||||
--- libvirt-0.7.4.orig/src/remote/remote_driver.c
|
||||
+++ libvirt-0.7.4/src/remote/remote_driver.c
|
||||
@@ -8847,6 +8847,11 @@ static virDriver remote_driver = {
|
||||
remoteIsSecure, /* isSecure */
|
||||
remoteDomainIsActive, /* domainIsActive */
|
||||
remoteDomainIsPersistent, /* domainIsPersistent */
|
||||
+ NULL, /* domainSnapshotCreate */
|
||||
+ NULL, /* domainSnapshotApply */
|
||||
+ NULL, /* domainSnapshotDelete */
|
||||
@ -894,11 +882,11 @@ Index: libvirt-0.7.2/src/remote/remote_driver.c
|
||||
};
|
||||
|
||||
static virNetworkDriver network_driver = {
|
||||
Index: libvirt-0.7.2/docs/libvirt-api.xml
|
||||
Index: libvirt-0.7.4/docs/libvirt-api.xml
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/docs/libvirt-api.xml
|
||||
+++ libvirt-0.7.2/docs/libvirt-api.xml
|
||||
@@ -262,6 +262,11 @@
|
||||
--- libvirt-0.7.4.orig/docs/libvirt-api.xml
|
||||
+++ libvirt-0.7.4/docs/libvirt-api.xml
|
||||
@@ -271,6 +271,11 @@
|
||||
<exports symbol='virDomainSetVcpus' type='function'/>
|
||||
<exports symbol='virDomainShutdown' type='function'/>
|
||||
<exports symbol='virDomainSuspend' type='function'/>
|
||||
@ -910,7 +898,7 @@ Index: libvirt-0.7.2/docs/libvirt-api.xml
|
||||
<exports symbol='virDomainUndefine' type='function'/>
|
||||
<exports symbol='virEventAddHandleFunc' type='function'/>
|
||||
<exports symbol='virEventAddTimeoutFunc' type='function'/>
|
||||
@@ -1817,6 +1822,36 @@ This function may requires privileged ac
|
||||
@@ -1878,6 +1883,36 @@ This function may requires privileged ac
|
||||
<return type='int' info='0 in case of success and -1 in case of failure.'/>
|
||||
<arg name='domain' type='virDomainPtr' info='a domain object'/>
|
||||
</function>
|
||||
@ -947,10 +935,10 @@ Index: libvirt-0.7.2/docs/libvirt-api.xml
|
||||
<function name='virDomainUndefine' file='libvirt' module='libvirt'>
|
||||
<info><![CDATA[Undefine a domain but does not stop it if it is running]]></info>
|
||||
<return type='int' info='0 in case of success, -1 in case of error'/>
|
||||
Index: libvirt-0.7.2/src/libvirt_public.syms
|
||||
Index: libvirt-0.7.4/src/libvirt_public.syms
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/libvirt_public.syms
|
||||
+++ libvirt-0.7.2/src/libvirt_public.syms
|
||||
--- libvirt-0.7.4.orig/src/libvirt_public.syms
|
||||
+++ libvirt-0.7.4/src/libvirt_public.syms
|
||||
@@ -215,6 +215,11 @@ LIBVIRT_0.4.2 {
|
||||
LIBVIRT_0.4.5 {
|
||||
global:
|
||||
@ -963,11 +951,11 @@ Index: libvirt-0.7.2/src/libvirt_public.syms
|
||||
} LIBVIRT_0.4.2;
|
||||
|
||||
LIBVIRT_0.5.0 {
|
||||
Index: libvirt-0.7.2/python/generator.py
|
||||
Index: libvirt-0.7.4/python/generator.py
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/python/generator.py
|
||||
+++ libvirt-0.7.2/python/generator.py
|
||||
@@ -286,6 +286,7 @@ skip_impl = (
|
||||
--- libvirt-0.7.4.orig/python/generator.py
|
||||
+++ libvirt-0.7.4/python/generator.py
|
||||
@@ -287,6 +287,7 @@ skip_impl = (
|
||||
'virDomainSetSchedulerParameters',
|
||||
'virDomainGetVcpus',
|
||||
'virDomainPinVcpu',
|
||||
@ -975,11 +963,11 @@ Index: libvirt-0.7.2/python/generator.py
|
||||
'virSecretGetValue',
|
||||
'virSecretSetValue',
|
||||
'virSecretGetUUID',
|
||||
Index: libvirt-0.7.2/python/libvirt-override.c
|
||||
Index: libvirt-0.7.4/python/libvirt-override.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/python/libvirt-override.c
|
||||
+++ libvirt-0.7.2/python/libvirt-override.c
|
||||
@@ -1375,6 +1375,34 @@ libvirt_virStoragePoolGetInfo(PyObject *
|
||||
--- libvirt-0.7.4.orig/python/libvirt-override.c
|
||||
+++ libvirt-0.7.4/python/libvirt-override.c
|
||||
@@ -1400,6 +1400,34 @@ libvirt_virStoragePoolGetInfo(PyObject *
|
||||
return(py_retval);
|
||||
}
|
||||
|
||||
@ -1014,7 +1002,7 @@ Index: libvirt-0.7.2/python/libvirt-override.c
|
||||
|
||||
static PyObject *
|
||||
libvirt_virStorageVolGetInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
|
||||
@@ -2425,6 +2453,7 @@ static PyMethodDef libvirtMethods[] = {
|
||||
@@ -2557,6 +2585,7 @@ static PyMethodDef libvirtMethods[] = {
|
||||
{(char *) "virStoragePoolGetAutostart", libvirt_virStoragePoolGetAutostart, METH_VARARGS, NULL},
|
||||
{(char *) "virStoragePoolListVolumes", libvirt_virStoragePoolListVolumes, METH_VARARGS, NULL},
|
||||
{(char *) "virStoragePoolGetInfo", libvirt_virStoragePoolGetInfo, METH_VARARGS, NULL},
|
||||
@ -1022,11 +1010,11 @@ Index: libvirt-0.7.2/python/libvirt-override.c
|
||||
{(char *) "virStorageVolGetInfo", libvirt_virStorageVolGetInfo, METH_VARARGS, NULL},
|
||||
{(char *) "virStoragePoolGetUUID", libvirt_virStoragePoolGetUUID, METH_VARARGS, NULL},
|
||||
{(char *) "virStoragePoolGetUUIDString", libvirt_virStoragePoolGetUUIDString, METH_VARARGS, NULL},
|
||||
Index: libvirt-0.7.2/python/libvirt-override-api.xml
|
||||
Index: libvirt-0.7.4/python/libvirt-override-api.xml
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/python/libvirt-override-api.xml
|
||||
+++ libvirt-0.7.2/python/libvirt-override-api.xml
|
||||
@@ -135,6 +135,11 @@
|
||||
--- libvirt-0.7.4.orig/python/libvirt-override-api.xml
|
||||
+++ libvirt-0.7.4/python/libvirt-override-api.xml
|
||||
@@ -140,6 +140,11 @@
|
||||
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
|
||||
<arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
|
||||
</function>
|
||||
@ -1038,11 +1026,11 @@ Index: libvirt-0.7.2/python/libvirt-override-api.xml
|
||||
<function name='virConnectListStoragePools' file='python'>
|
||||
<info>list the storage pools, stores the pointers to the names in @names</info>
|
||||
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
|
||||
Index: libvirt-0.7.2/src/xen/xen_inotify.c
|
||||
Index: libvirt-0.7.4/src/xen/xen_inotify.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xen_inotify.c
|
||||
+++ libvirt-0.7.2/src/xen/xen_inotify.c
|
||||
@@ -88,6 +88,11 @@ struct xenUnifiedDriver xenInotifyDriver
|
||||
--- libvirt-0.7.4.orig/src/xen/xen_inotify.c
|
||||
+++ libvirt-0.7.4/src/xen/xen_inotify.c
|
||||
@@ -86,6 +86,11 @@ struct xenUnifiedDriver xenInotifyDriver
|
||||
NULL, /* domainGetSchedulerType */
|
||||
NULL, /* domainGetSchedulerParameters */
|
||||
NULL, /* domainSetSchedulerParameters */
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: libvirt-0.7.2/src/remote/remote_driver.c
|
||||
Index: libvirt-0.7.4/src/remote/remote_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/remote/remote_driver.c
|
||||
+++ libvirt-0.7.2/src/remote/remote_driver.c
|
||||
@@ -760,12 +760,29 @@ doRemoteOpen (virConnectPtr conn,
|
||||
--- libvirt-0.7.4.orig/src/remote/remote_driver.c
|
||||
+++ libvirt-0.7.4/src/remote/remote_driver.c
|
||||
@@ -763,12 +763,29 @@ doRemoteOpen (virConnectPtr conn,
|
||||
cmd_argv[j++] = strdup ("none");
|
||||
}
|
||||
cmd_argv[j++] = strdup (priv->hostname);
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: libvirt-0.7.2/src/conf/network_conf.c
|
||||
Index: libvirt-0.7.4/src/conf/network_conf.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/conf/network_conf.c
|
||||
+++ libvirt-0.7.2/src/conf/network_conf.c
|
||||
@@ -824,6 +824,137 @@ error:
|
||||
--- libvirt-0.7.4.orig/src/conf/network_conf.c
|
||||
+++ libvirt-0.7.4/src/conf/network_conf.c
|
||||
@@ -865,6 +865,137 @@ error:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -140,7 +140,7 @@ Index: libvirt-0.7.2/src/conf/network_conf.c
|
||||
int virNetworkLoadAllConfigs(virConnectPtr conn,
|
||||
virNetworkObjListPtr nets,
|
||||
const char *configDir,
|
||||
@@ -863,6 +994,7 @@ int virNetworkLoadAllConfigs(virConnectP
|
||||
@@ -904,6 +1035,7 @@ int virNetworkLoadAllConfigs(virConnectP
|
||||
|
||||
closedir(dir);
|
||||
|
||||
@ -148,11 +148,11 @@ Index: libvirt-0.7.2/src/conf/network_conf.c
|
||||
return 0;
|
||||
}
|
||||
|
||||
Index: libvirt-0.7.2/src/conf/network_conf.h
|
||||
Index: libvirt-0.7.4/src/conf/network_conf.h
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/conf/network_conf.h
|
||||
+++ libvirt-0.7.2/src/conf/network_conf.h
|
||||
@@ -92,6 +92,7 @@ struct _virNetworkObj {
|
||||
--- libvirt-0.7.4.orig/src/conf/network_conf.h
|
||||
+++ libvirt-0.7.4/src/conf/network_conf.h
|
||||
@@ -94,6 +94,7 @@ struct _virNetworkObj {
|
||||
unsigned int active : 1;
|
||||
unsigned int autostart : 1;
|
||||
unsigned int persistent : 1;
|
||||
@ -160,11 +160,11 @@ Index: libvirt-0.7.2/src/conf/network_conf.h
|
||||
|
||||
virNetworkDefPtr def; /* The current definition */
|
||||
virNetworkDefPtr newDef; /* New definition to activate at shutdown */
|
||||
Index: libvirt-0.7.2/src/network/bridge_driver.c
|
||||
Index: libvirt-0.7.4/src/network/bridge_driver.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/network/bridge_driver.c
|
||||
+++ libvirt-0.7.2/src/network/bridge_driver.c
|
||||
@@ -977,6 +977,11 @@ static int networkShutdownNetworkDaemon(
|
||||
--- libvirt-0.7.4.orig/src/network/bridge_driver.c
|
||||
+++ libvirt-0.7.4/src/network/bridge_driver.c
|
||||
@@ -994,6 +994,11 @@ static int networkShutdownNetworkDaemon(
|
||||
unlink(stateFile);
|
||||
VIR_FREE(stateFile);
|
||||
|
||||
@ -176,7 +176,7 @@ Index: libvirt-0.7.2/src/network/bridge_driver.c
|
||||
if (network->dnsmasqPid > 0)
|
||||
kill(network->dnsmasqPid, SIGTERM);
|
||||
|
||||
@@ -1433,6 +1438,12 @@ static int networkSetAutostart(virNetwor
|
||||
@@ -1494,6 +1499,12 @@ static int networkSetAutostart(virNetwor
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
commit edea3dfdd861d5eee4712da43781908f0fa2a6d5
|
||||
Author: Jim Fehlig <jfehlig@novell.com>
|
||||
Date: Mon Oct 19 13:53:40 2009 -0600
|
||||
|
||||
Remove extra arg in call to vshError()
|
||||
|
||||
Index: libvirt-0.7.2/tools/virsh.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/tools/virsh.c
|
||||
+++ libvirt-0.7.2/tools/virsh.c
|
||||
@@ -2510,7 +2510,7 @@ cmdMigrate (vshControl *ctl, const vshCm
|
||||
* a libvirt URI, or a hypervisor specific URI. */
|
||||
|
||||
if (migrateuri != NULL) {
|
||||
- vshError(ctl, FALSE, "%s", _("migrate: Unexpected migrateuri for peer2peer/direct migration"));
|
||||
+ vshError(ctl, "%s", _("migrate: Unexpected migrateuri for peer2peer/direct migration"));
|
||||
goto done;
|
||||
}
|
||||
|
@ -1,28 +0,0 @@
|
||||
commit d08067f04248c7f1bd797f4401308ea9a8971f1b
|
||||
Author: Jim Fehlig <jfehlig@novell.com>
|
||||
Date: Fri Nov 13 14:44:56 2009 -0700
|
||||
|
||||
xen-unstable changeset 19788 removed MAX_VIRT_CPUS from public
|
||||
headers, breaking compilation of libvirt on -unstable. Its
|
||||
semanitc was retained with XEN_LEGACY_MAX_VCPUS. Ensure
|
||||
MAX_VIRT_CPUS is defined accordingly.
|
||||
|
||||
diff --git a/src/xen/xen_hypervisor.c b/src/xen/xen_hypervisor.c
|
||||
index 6d8bfdd..843102a 100644
|
||||
--- a/src/xen/xen_hypervisor.c
|
||||
+++ b/src/xen/xen_hypervisor.c
|
||||
@@ -109,6 +109,14 @@ typedef privcmd_hypercall_t hypercall_t;
|
||||
#define SYS_IFACE_MIN_VERS_NUMA 4
|
||||
#endif
|
||||
|
||||
+/* xen-unstable changeset 19788 removed MAX_VIRT_CPUS from public
|
||||
+ * headers. Its semanitc was retained with XEN_LEGACY_MAX_VCPUS.
|
||||
+ * Ensure MAX_VIRT_CPUS is defined accordingly.
|
||||
+ */
|
||||
+#if !defined(MAX_VIRT_CPUS) && defined(XEN_LEGACY_MAX_VCPUS)
|
||||
+#define MAX_VIRT_CPUS XEN_LEGACY_MAX_VCPUS
|
||||
+#endif
|
||||
+
|
||||
static int xen_ioctl_hypercall_cmd = 0;
|
||||
static int initialized = 0;
|
||||
static int in_init = 0;
|
@ -1,8 +1,8 @@
|
||||
Index: libvirt-0.7.2/src/xen/xend_internal.c
|
||||
Index: libvirt-0.7.4/src/xen/xend_internal.c
|
||||
===================================================================
|
||||
--- libvirt-0.7.2.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.2/src/xen/xend_internal.c
|
||||
@@ -5322,7 +5322,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
||||
--- libvirt-0.7.4.orig/src/xen/xend_internal.c
|
||||
+++ libvirt-0.7.4/src/xen/xend_internal.c
|
||||
@@ -5357,7 +5357,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
||||
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
||||
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user