Re: [libvirt] [PATCH v2 0/4] Add cpu hotplug support to libvirt.

2012-09-04 Thread Srivatsa S. Bhat
in the kernel by commit d35be8bab). [1]. http://thread.gmane.org/gmane.linux.documentation/4805 Regards, Srivatsa S. Bhat vm1 cannot be started again. # virsh start vm1 error: Failed to start domain vm1 error: Unable to set cpuset.cpus: Permission denied And libvird gave the following errors. 2012

Re: [libvirt] [RFC] Support cpu hotplug in libvirt.

2012-08-19 Thread Srivatsa S. Bhat
/resume case was inevitable (as long as it depends on CPU hotplug).] And the suspend/resume case has been fixed, in the 3.6 merge window by this commit: commit d35be8bab9b0ce44bed4b9453f86ebf64062721e Author: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com Date: Thu May 24 19:46:26 2012 +0530

Re: [libvirt] [PATCH v2] doc: update the minimum value for nodesuspend time duration

2012-07-24 Thread Srivatsa S. Bhat
seconds or more as a valid value. 60 seconds is not a hard-and-fast rule anyway.. Its just a good estimate that aims to be on the safer side, that's all. Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo

Re: [libvirt] [PATCH] Improve docs about compiling libvirt from GIT

2012-05-25 Thread Srivatsa S. Bhat
, libvirtd will attempt to find the modules from the same + source tree. If this is not possible though, you can explicitly + set codeLIBVIRT_DRIVER_DIR=/path/to/source/tree/src/.libs/code +/p /body /html Regards, Srivatsa S. Bhat -- libvir-list mailing list libvir-list

Re: [libvirt] cgroup cpuset limited by default?

2012-04-17 Thread Srivatsa S. Bhat
On 04/17/2012 03:02 PM, Daniel P. Berrange wrote: On Tue, Apr 17, 2012 at 11:09:33AM +0530, Srivatsa S. Bhat wrote: On 04/16/2012 09:43 PM, Daniel P. Berrange wrote: On Mon, Apr 16, 2012 at 06:00:22PM +0200, Marc-André Lureau wrote: Hi On Mon, Apr 16, 2012 at 2:32 PM, Srivatsa S. Bhat

Re: [libvirt] cgroup cpuset limited by default?

2012-04-16 Thread Srivatsa S. Bhat
, we don't have a kernel fix (yet). Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] cgroup cpuset limited by default?

2012-04-16 Thread Srivatsa S. Bhat
On 04/16/2012 09:43 PM, Daniel P. Berrange wrote: On Mon, Apr 16, 2012 at 06:00:22PM +0200, Marc-André Lureau wrote: Hi On Mon, Apr 16, 2012 at 2:32 PM, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: On 04/16/2012 05:34 PM, Marc-André Lureau wrote: Did you happen to perform

Re: [libvirt] [ PATCH v5 0/4] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-29 Thread Srivatsa S. Bhat
On 11/29/2011 03:12 PM, Daniel Veillard wrote: On Tue, Nov 29, 2011 at 03:12:07AM +0530, Srivatsa S. Bhat wrote: This patchset adds a new API to put a host to a suspended state (Suspend-to-RAM, Suspend-to-Disk or Hybrid-Suspend) and setup a timed resume to get the host back online, from

Re: [libvirt] [PATCH 06/14] Rename suspend capabilities APIs

2011-11-29 Thread Srivatsa S. Bhat
, perhaps? -- Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 06/14] Rename suspend capabilities APIs

2011-11-29 Thread Srivatsa S. Bhat
On 11/29/2011 09:53 PM, Eric Blake wrote: On 11/29/2011 09:19 AM, Srivatsa S. Bhat wrote: /** - * virGetPMCapabilities: + * virNodeSuspendGetTargetMask: * * Get the Power Management Capabilities that the host system supports, * such as Suspend-to-RAM (S3), Suspend-to-Disk (S4

Re: [libvirt] [PATCH 09/14] Fix check for whether a suspend target is supported

2011-11-29 Thread Srivatsa S. Bhat
which I ran every time before submitting the patches :-) -- Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 10/14] Remove powerMgmt_valid field from capabilities struct

2011-11-29 Thread Srivatsa S. Bhat
, + virCapsHostPMTargetTypeToString(bit)); +pm = ~(1U bit); } +virBufferAddLit(xml, /power_management\n); +} else { +/* The host does not support any PM feature. */ +virBufferAddLit(xml, power_management/\n); } -- Regards, Srivatsa S. Bhat IBM Linux

Re: [libvirt] [PATCH 07/14] Move suspend capabilities APIs out of util.h into virnodesuspend.c

2011-11-29 Thread Srivatsa S. Bhat
, int virNodeSuspendInit(void); +int virNodeSuspendSupportsTarget(unsigned int target, bool *supported); +int virNodeSuspendGetTargetMask(unsigned int *bitmask); #endif /* __VIR_NODE_SUSPEND_H__ */ -- Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir

Re: [libvirt] [PATCH 08/14] Add export of node suspend capabilities APIs

2011-11-29 Thread Srivatsa S. Bhat
; +virNodeSuspendGetTargetMask; +virNodeSuspendSupportsTarget; And we need not export virNodeSuspendSupportsTarget here, if we mark it as static in patch 7/14. -- Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir

Re: [libvirt] [PATCH 05/14] Sanitize virDiscoverHostPMFeature to return a boolean

2011-11-29 Thread Srivatsa S. Bhat
virGetPMCapabilities(unsigned int *bitmask); #endif /* __VIR_UTIL_H__ */ -- Regards, Srivatsa S. Bhat IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH v4 3/4] Implement the core API to suspend/resume the host

2011-11-28 Thread Srivatsa S. Bhat
. However, returning the status to the caller is only best-effort, but not guaranteed. To resume the host, an RTC alarm is set up (based on how long we want to suspend) before suspending the host. When this alarm fires, the host gets woken up. Signed-off-by: Srivatsa S. Bhat srivatsa.b

[libvirt] [ PATCH v4 0/4] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-28 Thread Srivatsa S. Bhat
/2011-November/msg01407.html [5]. http://thread.gmane.org/gmane.comp.emulators.libvirt/47950 Srivatsa S. Bhat (4): Add a public API to invoke suspend/resume on the host Add the remote protocol implementation for virNodeSuspendForDuration Implement the core API to suspend/resume

[libvirt] [PATCH v4 4/4] Add virsh command to initiate suspend on the host

2011-11-28 Thread Srivatsa S. Bhat
Add a new command 'nodesuspend' to perform a timed suspend on the host. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- tools/virsh.c | 64 +++ tools/virsh.pod |7 ++ 2 files changed, 71 insertions(+), 0

[libvirt] [PATCH v4 2/4] Add the remote protocol implementation for virNodeSuspendForDuration

2011-11-28 Thread Srivatsa S. Bhat
Implement the remote protocol for virNodeSuspendForDuration() API. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- src/remote/remote_driver.c |1 + src/remote/remote_protocol.x | 10 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src

Re: [libvirt] [PATCH v4 3/4] Implement the core API to suspend/resume the host

2011-11-28 Thread Srivatsa S. Bhat
Hi Daniel, On 11/28/2011 05:50 PM, Daniel P. Berrange wrote: On Mon, Nov 28, 2011 at 05:33:22PM +0530, Srivatsa S. Bhat wrote: Add the core functions that implement the functionality of the API. Suspend is done by using an asynchronous mechanism so that we can return the status to the caller

Re: [libvirt] [PATCH v4 3/4] Implement the core API to suspend/resume the host

2011-11-28 Thread Srivatsa S. Bhat
On 11/28/2011 05:50 PM, Daniel P. Berrange wrote: On Mon, Nov 28, 2011 at 05:33:22PM +0530, Srivatsa S. Bhat wrote: Add the core functions that implement the functionality of the API. Suspend is done by using an asynchronous mechanism so that we can return the status to the caller before

Re: [libvirt] [PATCH v4 3/4] Implement the core API to suspend/resume the host

2011-11-28 Thread Srivatsa S. Bhat
On 11/28/2011 11:26 PM, Eric Blake wrote: On 11/28/2011 10:46 AM, Srivatsa S. Bhat wrote: +/* Check if the host supports the requested suspend state */ +switch (state) { +case VIR_NODE_S3: +if (hostPMFeatures VIR_NODE_S3) { +cmdString = strdup(pm-suspend

[libvirt] [ PATCH v5 0/4] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-28 Thread Srivatsa S. Bhat
/archives/libvir-list/2011-November/msg01407.html [2]. http://thread.gmane.org/gmane.comp.emulators.libvirt/47950 [3]. http://thread.gmane.org/gmane.comp.emulators.libvirt/49054 Srivatsa S. Bhat (4): Add a public API to invoke suspend/resume on the host Add the remote protocol implementation

[libvirt] [PATCH v5 2/4] Add the remote protocol implementation for virNodeSuspendForDuration

2011-11-28 Thread Srivatsa S. Bhat
Implement the remote protocol for virNodeSuspendForDuration() API. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- src/remote/remote_driver.c |1 + src/remote/remote_protocol.x | 10 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src

[libvirt] [PATCH v5 1/4] Add a public API to invoke suspend/resume on the host

2011-11-28 Thread Srivatsa S. Bhat
Implement the public definitions for the new API virNodeSuspendForDuration() which will be subsequently used to do a timed suspend on the host. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in | 16 +++ src/driver.h

[libvirt] [PATCH v5 3/4] Implement the core API to suspend/resume the host

2011-11-28 Thread Srivatsa S. Bhat
it to disk etc. So, we do not allow the user to specify a suspend duration of less than 60 seconds, to be on the safer side, since we don't want to prematurely declare failure when we only had to wait for some more time. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- src

[libvirt] [PATCH v5 4/4] Add virsh command to initiate suspend on the host

2011-11-28 Thread Srivatsa S. Bhat
Add a new command 'nodesuspend' to perform a timed suspend on the host. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- tools/virsh.c | 64 +++ tools/virsh.pod |7 ++ 2 files changed, 71 insertions(+), 0

Re: [libvirt] [PATCH] Add 'Hybrid-Suspend' power management discovery for the host

2011-11-28 Thread Srivatsa S. Bhat
On 11/29/2011 12:37 PM, Daniel Veillard wrote: On Thu, Nov 24, 2011 at 02:22:41PM +0530, Srivatsa S. Bhat wrote: Some systems support a feature known as 'Hybrid-Suspend', apart from the usual system-wide sleep states such as Suspend-to-RAM (S3) or Suspend-to-Disk (S4). Add the functionality

Re: [libvirt] [PATCH v3 2/2] Make the API public

2011-11-24 Thread Srivatsa S. Bhat
On 11/23/2011 06:55 PM, Eric Blake wrote: On 11/23/2011 05:33 AM, Srivatsa S. Bhat wrote: Perhaps, I'll send a companion patch to add the hybrid-suspend discovery to that, and then base the next version of this patchset on that. Actually thinking about it, I don't see how that would

[libvirt] [PATCH] Add 'Hybrid-Suspend' power management discovery for the host

2011-11-24 Thread Srivatsa S. Bhat
. This addition was suggested in [1]. References: 1. http://www.redhat.com/archives/libvir-list/2011-November/msg01298.html Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- docs/formatcaps.html.in | 12 +++-- docs/schemas/capability.rng |5 ++ src/conf/capabilities.c

Re: [libvirt] [PATCH v3 2/2] Make the API public

2011-11-23 Thread Srivatsa S. Bhat
On 11/22/2011 11:56 PM, Eric Blake wrote: On 11/09/2011 05:05 AM, Srivatsa S. Bhat wrote: Define the required interfaces to export the API. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in |4 src/driver.h |5

Re: [libvirt] [PATCH v3 2/2] Make the API public

2011-11-23 Thread Srivatsa S. Bhat
On 11/23/2011 04:10 PM, Srivatsa S. Bhat wrote: On 11/22/2011 11:56 PM, Eric Blake wrote: On 11/09/2011 05:05 AM, Srivatsa S. Bhat wrote: Define the required interfaces to export the API. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in

Re: [libvirt] [PATCH v3 0/2] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-22 Thread Srivatsa S. Bhat
On 11/22/2011 05:56 AM, Eric Blake wrote: On 11/09/2011 05:05 AM, Srivatsa S. Bhat wrote: (This patch is positioned to go in after the patch that exports the host power management capabilities as XML, posted in [4]) I'm now reviewing that patch along with this series; if we need another

Re: [libvirt] [PATCH v3 0/2] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-22 Thread Srivatsa S. Bhat
On 11/22/2011 03:48 PM, Alon Levy wrote: On Mon, Nov 21, 2011 at 05:26:55PM -0700, Eric Blake wrote: On 11/09/2011 05:05 AM, Srivatsa S. Bhat wrote: (This patch is positioned to go in after the patch that exports the host power management capabilities as XML, posted in [4]) I'm now reviewing

Re: [libvirt] [PATCH v3 1/2] Implement the asynchronous suspend and RTC wakeup

2011-11-22 Thread Srivatsa S. Bhat
On 11/22/2011 06:18 AM, Eric Blake wrote: On 11/09/2011 05:05 AM, Srivatsa S. Bhat wrote: Add the core functions that implement the functionality of the API. Suspend is done by using an asynchronous mechanism so that we can return the status to the caller successfully before the host gets

Re: [libvirt] [PATCH RESEND v5] Export KVM Host Power Management capabilities

2011-11-22 Thread Srivatsa S. Bhat
On 11/22/2011 05:53 AM, Eric Blake wrote: On 11/13/2011 10:29 PM, Srivatsa S. Bhat wrote: On 11/09/2011 04:38 PM, Srivatsa S. Bhat wrote: This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make use of these features available

Re: [libvirt] [PATCH RESEND v5] Export KVM Host Power Management capabilities

2011-11-22 Thread Srivatsa S. Bhat
On 11/22/2011 08:59 AM, Daniel Veillard wrote: On Wed, Nov 09, 2011 at 04:38:02PM +0530, Srivatsa S. Bhat wrote: This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make use of these features available in the host. The script

Re: [libvirt] [PATCH v3 1/2] Implement the asynchronous suspend and RTC wakeup

2011-11-22 Thread Srivatsa S. Bhat
On 11/22/2011 11:33 PM, Eric Blake wrote: On 11/09/2011 05:05 AM, Srivatsa S. Bhat wrote: Add the core functions that implement the functionality of the API. Suspend is done by using an asynchronous mechanism so that we can return the status to the caller successfully before the host gets

Re: [libvirt] [PATCH RESEND v5] Export KVM Host Power Management capabilities

2011-11-13 Thread Srivatsa S. Bhat
On 11/09/2011 04:38 PM, Srivatsa S. Bhat wrote: This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make use of these features available in the host. The script pm-is-supported (from pm-utils package) is run to discover

[libvirt] [PATCH RESEND v5] Export KVM Host Power Management capabilities

2011-11-09 Thread Srivatsa S. Bhat
://www.redhat.com/archives/libvir-list/2011-August/msg00248.html [2] http://www.redhat.com/archives/libvir-list/2011-August/msg00302.html Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- docs/formatcaps.html.in | 19 docs/schemas/capability.rng | 18

[libvirt] [PATCH v3 1/2] Implement the asynchronous suspend and RTC wakeup

2011-11-09 Thread Srivatsa S. Bhat
of execution. To resume the host, an RTC alarm is set up (based on how long we want to suspend) before suspending the host. When this alarm fires, the host gets woken up. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in |5 + src

[libvirt] [PATCH v3 2/2] Make the API public

2011-11-09 Thread Srivatsa S. Bhat
Define the required interfaces to export the API. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in |4 src/driver.h |5 src/libvirt.c| 48 ++ src

[libvirt] [PATCH v3 0/2] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-09 Thread Srivatsa S. Bhat
/2011-November/msg00378.html Srivatsa S. Bhat (2): Implement the asynchronous suspend and RTC wakeup Make the API public include/libvirt/libvirt.h.in |9 ++ src/driver.h |5 + src/libvirt.c| 48 + src/libvirt_private.syms |7

Re: [libvirt] [PATCH] macvtap: Fix error return values to -1 instead of 1

2011-10-20 Thread Srivatsa S. Bhat
; +rc = -1; } err_exit: -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list -- Regards, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com Linux Technology Center, IBM India Systems and Technology Lab -- libvir-list mailing

[libvirt] [RFC PATCH v2 2/2] Make the API public

2011-10-14 Thread Srivatsa S. Bhat
Define the required interfaces to make the API publicly accessible. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in |4 src/driver.h |5 + src/libvirt.c| 46

[libvirt] [RFC PATCH v2 1/2] Implement the asynchronous suspend and RTC wakeup

2011-10-14 Thread Srivatsa S. Bhat
of execution. To resume the host, an RTC alarm is set up (based on how long we want to suspend) before suspending the host. When this alarm fires, the host gets woken up. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in |5 + src

[libvirt] [RFC v1] API to invoke S3/S4 on a KVM host and also resume from within libvirt

2011-09-21 Thread Srivatsa S. Bhat
://www.redhat.com/archives/libvir-list/2011-September/msg00438.html Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/libvirt/libvirt.h.in |9 +++ src/driver.h |5 ++ src/libvirt.c| 45 ++ src/libvirt_private.syms

[libvirt] [RFC] API to invoke S3/S4 on a KVM host and also resume from within libvirt

2011-09-12 Thread Srivatsa S. Bhat
me know your suggestions. -- Regards, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com Linux Technology Center, IBM India Systems and Technology Lab -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [RFC v4] Export KVM Host Power Management capabilities

2011-08-09 Thread Srivatsa S. Bhat
-list/2011-August/msg00282.html Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- docs/formatcaps.html.in | 19 +++--- docs/schemas/capability.rng | 18 + include/libvirt/virterror.h |1 + libvirt.spec.in |2 + src/conf/capabilities.c

[libvirt] [RFC v5] Export KVM Host Power Management capabilities

2011-08-09 Thread Srivatsa S. Bhat
/gmane.comp.emulators.libvirt/40886 References: -- [1] http://www.redhat.com/archives/libvir-list/2011-August/msg00248.html [2] http://www.redhat.com/archives/libvir-list/2011-August/msg00302.html Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- docs/formatcaps.html.in | 19

Re: [libvirt] [RFC v2] Export KVM Host Power Management capabilities

2011-08-08 Thread Srivatsa S. Bhat
On 08/05/2011 09:21 PM, Eric Blake wrote: On 08/05/2011 05:54 AM, Srivatsa S. Bhat wrote: This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make use of these features available in the host. The script pm-is-supported (from

[libvirt] [RFC v3] Export KVM Host Power Management capabilities

2011-08-08 Thread Srivatsa S. Bhat
/gmane.comp.emulators.libvirt/41688 [3] http://www.redhat.com/archives/libvir-list/2011-August/msg00238.html [4] http://www.redhat.com/archives/libvir-list/2011-August/msg00248.html Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- docs/formatcaps.html.in | 19 ++--- docs

[libvirt] [RFC v2] Export KVM Host Power Management capabilities

2011-08-05 Thread Srivatsa S. Bhat
in [2]. Please let me know your comments and feedback. References: -- [1] Exporting KVM host power saving capabilities through libvirt http://thread.gmane.org/gmane.comp.emulators.libvirt/40886 [2] http://article.gmane.org/gmane.comp.emulators.libvirt/41688 Signed-off-by: Srivatsa S