I know it is very late for 0.9.2 but perhabs we could
squeeze these patches in (then the version numbers
of the functions in patch 2 have to be changed to 0.9.2).
Markus Groß (2):
Get maximum memory of running domain in libxl driver
Add managedSave support to libxl driver
src/libxl
---
src/libxl/libxl_driver.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 3491f40..61c3494 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -1639,6 +1639,7 @@
---
src/libxl/libxl_driver.c | 353 --
1 files changed, 276 insertions(+), 77 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 61c3494..9bcc3b9 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@
Forgot to mention that most of this patch is duplicated
from the qemu driver (perhabs this helps in testing and review).
Am Mittwoch 01 Juni 2011 12:55:34 schrieb Markus Groß:
---
src/libxl/libxl_driver.c | 353
--
1 files changed, 276 insertions
Am Donnerstag 26 Mai 2011 22:04:35 schrieb Jim Fehlig:
Markus Groß wrote:
Am Dienstag 24 Mai 2011 06:06:08 schrieb Jim Fehlig:
+
+event = virDomainEventNewFromObj(vm, VIR_DOMAIN_EVENT_STOPPED,
+ VIR_DOMAIN_EVENT_STOPPED_SAVED
:
http://lists.xensource.com/archives/html/xen-devel/2011-05/msg01717.html
Markus Groß (4):
Populate domid field of devices for libxenlight
Add domainCoreDump to libxl driver
Add domainSave/Restore to libxl driver
Support maximum and current memory flags in libxl driver
src/libxl
v2:
* incorporated Jim Fehlig's review
---
src/libxl/libxl_driver.c | 95 ++
1 files changed, 95 insertions(+), 0 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 5463b90..86b01b2 100644
---
This patch fixes the population of the
libxenlight data structures. Now the devices
should be removed correctly from the xenstore
if they are detached.
---
src/libxl/libxl_conf.c | 20 +---
src/libxl/libxl_conf.h | 10 ++
src/libxl/libxl_driver.c |6 +++---
3
Add support to set the maximum memory of the domain.
Also add support to change the memory of the current
state of the domain, which translates to a running
domain or the config of the domain.
Based on the code from the qemu driver.
---
src/libxl/libxl_driver.c | 101
it under the terms of the GNU Lesser General Public
@@ -17,6 +18,7 @@
*
* Authors:
* Jim Fehlig jfeh...@novell.com
+ * Markus Groß gr...@univention.de
*/
/*---*/
@@ -81,6 +83,18 @@ struct _libxlDomainObjPrivate
Quoting Jim Fehlig jfeh...@novell.com:
Markus Groß wrote:
Am Dienstag 24 Mai 2011 06:06:08 schrieb Jim Fehlig:
+
+event = virDomainEventNewFromObj(vm, VIR_DOMAIN_EVENT_STOPPED,
+ VIR_DOMAIN_EVENT_STOPPED_SAVED);
+
+if (libxlVmReap
Quoting Jim Fehlig jfeh...@novell.com:
Markus Groß wrote:
For core dumping to work correctly the following patch
for xen is needed:
http://lists.xensource.com/archives/html/xen-devel/2011-05/msg01469.html
This patch is in xen-unstable and is considered for backport to
the xen stable branches
Quoting Jim Fehlig jfeh...@novell.com:
Markus Groß wrote:
Based on the device attach/detach code from the QEMU driver.
---
src/libxl/libxl_driver.c | 519
++
1 files changed, 519 insertions(+), 0 deletions(-)
diff --git a/src/libxl
Am Dienstag 24 Mai 2011 06:06:08 schrieb Jim Fehlig:
+
+event = virDomainEventNewFromObj(vm, VIR_DOMAIN_EVENT_STOPPED,
+ VIR_DOMAIN_EVENT_STOPPED_SAVED);
+
+if (libxlVmReap(driver, vm, 1, VIR_DOMAIN_SHUTOFF_SAVED) != 0) {
+
For core dumping to work correctly the following patch
for xen is needed:
http://lists.xensource.com/archives/html/xen-devel/2011-05/msg01469.html
This patch is in xen-unstable and is considered for backport to
the xen stable branches. Without this patch the mapped
memory pages of the pv guest
Quoting Jim Fehlig jfeh...@novell.com:
Markus Groß wrote:
Am Montag 23 Mai 2011 04:30:12 schrieb Jim Fehlig:
Jim Fehlig wrote:
Markus Groß wrote:
This patch adds save/restore functionality to the libxl driver.
It is a v2 of this patch:
https://www.redhat.com/archives/libvir-list/2011
Am Montag 23 Mai 2011 04:30:12 schrieb Jim Fehlig:
Jim Fehlig wrote:
Markus Groß wrote:
This patch adds save/restore functionality to the libxl driver.
It is a v2 of this patch:
https://www.redhat.com/archives/libvir-list/2011-April/msg00338.html
v2:
* header is now padded
v2:
- free dev before using it again.
When modifying the disk devices of a live domain and the domain
configuration, the function qemuDomainAttachDeviceConfig
first sets dev-data-disk to NULL. Later qemuDomainAttachDeviceLive
accesses dev-data.disk and causes a segfault.
---
fixes the handling of vm def's on cleanup.
The last patch finally adds the device attach/detach code
and follows qemu's implementation.
Markus Groß (3):
Refactored libxl datastructure instantiation
Fix libxl vm def handling on domU cleanup
Add disk attach/detach support to libxl driver
src
Otherwise vm-newDef remains in the domain
object even when it is destroyed.
---
src/libxl/libxl_driver.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 5cc9362..a14ace1 100644
--- a/src/libxl/libxl_driver.c
.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -17,6 +18,7 @@
*
* Authors:
* Jim Fehlig jfeh...@novell.com
+ * Markus Groß gr...@univention.de
Based on the device attach/detach code from the QEMU driver.
---
src/libxl/libxl_driver.c | 519 ++
1 files changed, 519 insertions(+), 0 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index a14ace1..a056be9 100644
---
Am Mittwoch 18 Mai 2011 10:06:38 schrieb Markus Groß:
Based on the device attach/detach code from the QEMU driver.
---
src/libxl/libxl_driver.c | 519
++
1 files changed, 519 insertions(+), 0 deletions(-)
diff --git a/src/libxl/libxl_driver.c
Am Mittwoch 18 Mai 2011 09:22:43 schrieb Markus Groß:
v2:
- free dev before using it again.
When modifying the disk devices of a live domain and the domain
configuration, the function qemuDomainAttachDeviceConfig
first sets dev-data-disk to NULL. Later qemuDomainAttachDeviceLive
accesses
When modifying the disk devices of a live domain and the domain
configuration, the function qemuDomainAttachDeviceConfig
first sets dev-data-disk to NULL. Later qemuDomainAttachDeviceLive
accesses dev-data.disk and causes a segfault.
---
src/qemu/qemu_driver.c | 14 ++
1 files
Creating a domU on a freshly booted dom0 does not work,
because the libxl driver does not allocate memory for the domU.
After creating a domain with xl libvirt is able to create domains too.
This patch reserves enough memory for the domU first.
---
src/libxl/libxl_driver.c | 48
...@novell.com
+ * Markus Groß gr...@univention.de
*/
/*---*/
@@ -85,6 +87,18 @@ struct _libxlDomainObjPrivate {
int eventHdl;
};
+#define LIBXL_SAVE_MAGIC libvirt-xml\n \0 \r
+#define LIBXL_SAVE_VERSION 1
+
+typedef
Here is a new version of this patch:
https://www.redhat.com/archives/libvir-list/2011-April/msg00337.html
v2:
- store the cputune info for the whole runtime of the domain
- remove cputune info when domain is destroyed
The nodeGetInfo code had to be moved into a helper
function to reuse it
---
src/libxl/libxl_driver.c | 24 +++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 8cc4469..e95c403 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -2330,6 +2330,28 @@
This patch set adds some more functions to the libxl driver.
Best regards
Markus
Markus Groß (4):
Add domainIsUpdated to libxl driver
Add domainSet/GetSchedulerParameters to libxl driver
Add cputune support to libxl driver
Add domainSave/Restore to libxl driver
src/libxl/libxl_conf.h
The nodeGetInfo code had to be moved into a helper
function to reuse it without a virConnectPtr.
---
src/libxl/libxl_driver.c | 143 ++
1 files changed, 107 insertions(+), 36 deletions(-)
diff --git a/src/libxl/libxl_driver.c
it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -17,6 +18,7 @@
*
* Authors:
* Jim Fehlig jfeh...@novell.com
+ * Markus Groß gr...@univention.de
*/
/*---*/
@@ -85,6 +87,14 @@ struct
Libxenlight currently only supports the credit scheduler.
Therefore setting or getting a parameter of other
schedulers raise an error (for now).
---
src/libxl/libxl_driver.c | 166 +-
1 files changed, 164 insertions(+), 2 deletions(-)
diff --git
Am Donnerstag 24 März 2011 17:24:26 schrieb Jim Fehlig:
Markus Groß wrote:
@@ -225,6 +284,9 @@ static void libxlEventHandler(int watch,
switch (info.shutdown_reason) {
case SHUTDOWN_poweroff:
case SHUTDOWN_crash:
+dom_event
Am Mittwoch 23 März 2011 17:59:11 schrieb Jim Fehlig:
Markus Groß wrote:
+maplen = (unsigned int) ceil((double) nvcpus / 8);
+if (VIR_ALLOC_N(bitmask, maplen) 0) {
+virReportOOMError();
+goto cleanup;
+}
+
+memset(bitmask, 0, maplen);
+for (i
Am Donnerstag 24 März 2011 15:48:20 schrieb Jim Fehlig:
Markus Groß wrote:
---
src/libxl/libxl_driver.c | 64
+-
1 files changed, 63 insertions(+), 1 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index
Am Donnerstag 24 März 2011 16:55:23 schrieb Jim Fehlig:
Markus Groß wrote:
---
src/libxl/libxl_driver.c | 114
+-
1 files changed, 112 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index
---
src/libxl/libxl_driver.c | 64 +-
1 files changed, 63 insertions(+), 1 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 7d83975..1a70f79 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@
---
src/libxl/libxl_driver.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index b8b8ee8..80a43a0 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -107,7 +107,7 @@ libxlDomainObjUnref(void
+ * Markus Groß gr...@univention.de
+ * Daniel P. Berrange berra...@redhat.com
*/
/*---*/
diff --git a/src/libxl/libxl_driver.h b/src/libxl/libxl_driver.h
index e047552..4632d33 100644
--- a/src/libxl/libxl_driver.h
This series of patches adds new functionality to the libxl driver.
V2:
- Incorporated review from Jim Fehlig
- Allow domainGetSchedulerType only on active domains
- Fix warnings about virDomainObjUnref
Markus Groß (8):
Ignore return value of virDomainObjUnref
Add event callbacks to libxl
---
src/libxl/libxl_conf.h |8 ++-
src/libxl/libxl_driver.c | 194 +-
2 files changed, 197 insertions(+), 5 deletions(-)
diff --git a/src/libxl/libxl_conf.h b/src/libxl/libxl_conf.h
index bb49d35..a86df9a 100644
--- a/src/libxl/libxl_conf.h
+++
---
src/libxl/libxl_driver.c | 122 +-
1 files changed, 120 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 47b7e56..3409340 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@
---
src/libxl/libxl_driver.c | 310 +-
1 files changed, 305 insertions(+), 5 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index aa135dd..3251e66 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@
---
src/libxl/libxl_driver.c | 29 -
1 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 1a70f79..47b7e56 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -1174,6 +1174,33 @@
---
configure.ac |2 +
daemon/Makefile.am |3 +
src/Makefile.am |8 ++-
src/libxl/libxl_driver.c | 94 +-
4 files changed, 102 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index
Am Montag 28 März 2011 11:26:15 schrieb Daniel P. Berrange:
On Thu, Mar 24, 2011 at 10:24:26AM -0600, Jim Fehlig wrote:
Markus Groß wrote:
---
src/libxl/libxl_conf.h |8 ++-
src/libxl/libxl_driver.c | 199
+-
2 files changed
I reworked this patch according to Daniel's comments in
https://www.redhat.com/archives/libvir-list/2011-March/msg01272.html
Find the new version below.
---
configure.ac |2 +
src/Makefile.am | 10 +++--
src/libvirt_private.syms | 16
This patch is rebased against the patchset from here:
https://www.redhat.com/archives/libvir-list/2011-March/msg01260.html
The domainSetAutostart function is nearly identical to the one from qemu.
---
src/libxl/libxl_driver.c | 137 --
1 files
Am Freitag 18 März 2011 04:23:34 schrieb Jim Fehlig:
Daniel Veillard wrote:
Gentle reminder that for feature to go into 0.9.0, your patches should
get reviewed and commited in the next week. In case you're the owner of
a forgotten patch needing review, please raise it again so it doesn't
---
src/libxl/libxl_driver.c | 16 ++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index ad95e2b..7ee3930 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -1170,6 +1170,7 @@
---
src/libxl/libxl_driver.c | 114 +-
1 files changed, 112 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 4b31197..669c170 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@
, Boston, MA 02111-1307 USA
+ *
+ * Authors:
+ * Jim Fehlig jfeh...@novell.com
+ * Markus Groß gr...@univention.de
+ * Daniel P. Berrange berra...@redhat.com
*/
/*---*/
@@ -99,6 +105,58
Am Donnerstag 10 März 2011 07:45:49 schrieb Jim Fehlig:
Add a new xen driver based on libxenlight [1], which is the primary
toolstack starting with Xen 4.1.0. The driver is stateful, runs
privileged only, and is accessed with libxl:/// URI.
V5:
- Ensure events are unregistered when domain
---
src/Makefile.am |2 +-
src/{xen = util}/sexpr.c |0
src/{xen = util}/sexpr.h |0
3 files changed, 1 insertions(+), 1 deletions(-)
rename src/{xen = util}/sexpr.c (100%)
rename src/{xen = util}/sexpr.h (100%)
diff --git a/src/Makefile.am b/src/Makefile.am
index
---
src/util/sexpr.c| 64 ++
src/util/sexpr.h|6
src/xen/xend_internal.c | 65 ---
3 files changed, 70 insertions(+), 65 deletions(-)
diff --git a/src/util/sexpr.c
---
src/xen/xen_driver.c|8 +-
src/xen/xend_internal.c | 54 +++---
src/xen/xm_internal.c |6 +-
src/xenxs/xen_sxpr.c| 184 +++
src/xenxs/xen_sxpr.h| 60 +---
src/xenxs/xen_xm.c | 35 +-
comments about this.
Markus Groß (8):
Moved SEXPR unit to utils
Moved some SEXPR functions from xen-unified
Moved SEXPR parsing functions to xenxs
Moved SEXPR formatting functions to xenxs
Moved XM parsing functions to xenxs
Moved XM formatting functions to xenxs
Renamed functions
---
AUTHORS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 6ff7c14..fb42662 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -155,6 +155,7 @@ Patches have also been contributed by:
Gui Jianfeng guijianf...@cn.fujitsu.com
Michal Novotny
---
src/xen/xen_driver.c |2 +-
src/xen/xm_internal.c | 723 +
src/xen/xm_internal.h |2 -
src/xenxs/xen_sxpr.h |6 -
src/xenxs/xen_xm.c| 715
src/xenxs/xen_xm.h
---
AUTHORS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 6ff7c14..fb42662 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -155,6 +155,7 @@ Patches have also been contributed by:
Gui Jianfeng guijianf...@cn.fujitsu.com
Michal Novotny
-source directory to an include dir in your PATH.
Right now this file is not copied when installing xen,
but I will talk with the xen developers about that.
Please let me know what you think about it.
Thanks,
Markus
Markus Groß (3):
Add basic libxenlight driver
Integrate libxenlight
---
AUTHORS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 38ea4bb..24ae98b 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -154,6 +154,7 @@ Patches have also been contributed by:
Zdenek Styblik sty...@turnovfree.net
Gui Jianfeng
---
configure.ac| 35 +--
include/libvirt/virterror.h |1 +
po/POTFILES.in |2 ++
src/Makefile.am | 25 +
src/driver.h|3 ++-
src/libvirt.c | 13
64 matches
Mail list logo