[libvirt] [PATCH] hyperv: Correct number of milliseconds in five minutes

2017-07-28 Thread Sri Ramanujam
--- src/hyperv/hyperv_wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperv/hyperv_wmi.c b/src/hyperv/hyperv_wmi.c index 57125ae..33ad964 100644 --- a/src/hyperv/hyperv_wmi.c +++ b/src/hyperv/hyperv_wmi.c @@ -42,7 +42,7 @@ #define VIR_FROM_THIS VIR_FROM_HYPERV

[libvirt] [PATCH] hyperv: Reduce usage of libxml API functions

2017-07-28 Thread Sri Ramanujam
Slight refactor of the WMI serialization code to minimize mixing openwsman and libxml2 APIs. The only usage of libxml2 APIs now is in creating CDATA blocks, because the openwsman API does not provide that functionality. --- src/hyperv/hyperv_wmi.c | 65

Re: [libvirt] [PATCH v7 3/6] hyperv: add hypervInvokeMethod

2017-07-19 Thread Sri Ramanujam
when I'm back. On Wed, Jul 19, 2017 at 1:21 AM, Matthias Bolte <matthias.bo...@googlemail.com> wrote: > 2017-07-18 18:54 GMT+02:00 Andrea Bolognani <abolo...@redhat.com>: >> On Tue, 2017-06-27 at 15:13 -0400, Sri Ramanujam wrote: >>> This commit adds support for invo

[libvirt] [PATCH v7 4/6] hyperv: support virDomainSendKey

2017-06-27 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 123 ++ src/hyperv/hyperv_wmi.c | 7 ++

[libvirt] [PATCH v7 6/6] news: Update news for new Hyper-V APIs

2017-06-27 Thread Sri Ramanujam
--- docs/news.xml | 5 + 1 file changed, 5 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 27562e1..77d167c 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -48,6 +48,11 @@ + + + hyperv: Implement virDomainSetMemory and

[libvirt] [PATCH v7 1/6] hyperv: Functions to work with invocation parameters.

2017-06-27 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH v7 2/6] hyperv: Generate object property type information.

2017-06-27 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH v7 5/6] hyperv: Add support for virDomainSetMemory

2017-06-27 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 114 ++

[libvirt] [PATCH v7 3/6] hyperv: add hypervInvokeMethod

2017-06-27 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 590 src/hyperv/hyperv_wmi.h | 8 +- src/hyperv/openwsman.h | 4 + 3 files changed, 600 insertions(+), 2 deletions(-) diff

[libvirt] [PATCH v7 0/6] Hyper-V method invocation

2017-06-27 Thread Sri Ramanujam
Changes from v6: * Added news entry Sri Ramanujam (6): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type information. hyperv: add hypervInvokeMethod hyperv: support virDomainSendKey hyperv: Add support for virDomainSetMemory news: Update

[libvirt] [PATCH v6 2/5] hyperv: Generate object property type information.

2017-06-26 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH v6 1/5] hyperv: Functions to work with invocation parameters.

2017-06-26 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH v6 3/5] hyperv: add hypervInvokeMethod

2017-06-26 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 590 src/hyperv/hyperv_wmi.h | 8 +- src/hyperv/openwsman.h | 4 + 3 files changed, 600 insertions(+), 2 deletions(-) diff

[libvirt] [PATCH v6 5/5] hyperv: Add support for virDomainSetMemory

2017-06-26 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 114 ++

[libvirt] [PATCH v6 4/5] hyperv: support virDomainSendKey

2017-06-26 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 123 ++ src/hyperv/hyperv_wmi.c | 7 ++

[libvirt] [PATCH v6 0/5] Hyper-V method invocation

2017-06-26 Thread Sri Ramanujam
Changes from v5: * Changes from review * Fixed memory leak in hypervDomainSetMemory where params would leak in failure case Sri Ramanujam (5): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type information. hyperv: add hypervInvokeMethod

[libvirt] [PATCH v5 1/5] hyperv: Functions to work with invocation parameters.

2017-06-12 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH v5 3/5] hyperv: add hypervInvokeMethod

2017-06-12 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 591 src/hyperv/hyperv_wmi.h | 8 +- src/hyperv/openwsman.h | 4 + 3 files changed, 601 insertions(+), 2 deletions(-) diff

[libvirt] [PATCH v5 4/5] hyperv: support virDomainSendKey

2017-06-12 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 123 ++ src/hyperv/hyperv_wmi.c | 7 ++

[libvirt] [PATCH v5 5/5] hyperv: Add support for virDomainSetMemory

2017-06-12 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 105 ++

[libvirt] [PATCH v5 0/5] Hyper-V method invocation

2017-06-12 Thread Sri Ramanujam
Changes from v4: * Changes from review * Added hypervFreeEmbeddedParam Sri Ramanujam (5): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type information. hyperv: add hypervInvokeMethod hyperv: support virDomainSendKey hyperv: Add support

[libvirt] [PATCH v5 2/5] hyperv: Generate object property type information.

2017-06-12 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH v4 4/5] hyperv: support virDomainSendKey

2017-05-19 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 107 ++ src/hyperv/hyperv_wmi.c | 7 +++

[libvirt] [PATCH v4 5/5] hyperv: Add support for virDomainSetMemory

2017-05-19 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 94 +++

[libvirt] [PATCH v4 1/5] hyperv: Functions to work with invocation parameters.

2017-05-19 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH v4 3/5] hyperv: add hypervInvokeMethod

2017-05-19 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 584 src/hyperv/hyperv_wmi.h | 3 + src/hyperv/openwsman.h | 4 + 3 files changed, 591 insertions(+) diff --git

[libvirt] [PATCH v4 2/5] hyperv: Generate object property type information.

2017-05-19 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH v4 0/5] Hyperv-method invocation

2017-05-19 Thread Sri Ramanujam
Changes from v3: * Feedback from code review * Added 5 minute timeout to hypervInvokeMethod Sri Ramanujam (5): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type information. hyperv: add hypervInvokeMethod hyperv: support virDomainSendKey hyperv

Re: [libvirt] [PATCH v3 1/5] hyperv: Functions to work with invocation parameters.

2017-05-04 Thread Sri Ramanujam
On Mon, May 1, 2017 at 6:25 PM, Matthias Bolte <matthias.bo...@googlemail.com> wrote: > > 2017-04-24 20:19 GMT+02:00 Sri Ramanujam <sramanu...@datto.com>: > > This commit introduces functionality for creating and working with > > invoke parameters. This co

[libvirt] [PATCH v3 3/5] hyperv: add hypervInvokeMethod

2017-04-24 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 569 src/hyperv/hyperv_wmi.h | 3 + src/hyperv/openwsman.h | 4 + 3 files changed, 576 insertions(+) diff --git

[libvirt] [PATCH v3 5/5] hyperv: Add support for virDomainSetMemory

2017-04-24 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 96 +++

[libvirt] [PATCH v3 4/5] hyperv: support virDomainSendKey

2017-04-24 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 85 ++ src/hyperv/hyperv_wmi.c | 7 +++

[libvirt] [PATCH v3 0/5] Hyper-V method invocation

2017-04-24 Thread Sri Ramanujam
to the driver. Let me know if you want access to them :) Sri Ramanujam (5): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type information. hyperv: add hypervInvokeMethod hyperv: support virDomainSendKey hyperv: Add support for virDomainSetMemory

[libvirt] [PATCH v3 1/5] hyperv: Functions to work with invocation parameters.

2017-04-24 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH v3 2/5] hyperv: Generate object property type information.

2017-04-24 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH v2 5/5] hyperv: Add support for virDomainSetMemory

2017-04-19 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 97 +++

[libvirt] [PATCH v2 2/5] hyperv: Generate object property type information.

2017-04-19 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH v2 0/5] Hyper-V method invocation

2017-04-19 Thread Sri Ramanujam
Changes from v1: * Removed unneeded util function Sri Ramanujam (5): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type information. hyperv: add hypervInvokeMethod hyperv: support virDomainSendKey hyperv: Add support for virDomainSetMemory src

[libvirt] [PATCH v2 4/5] hyperv: support virDomainSendKey

2017-04-19 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 85 ++ src/hyperv/hyperv_wmi.c | 7 +++

[libvirt] [PATCH v2 1/5] hyperv: Functions to work with invocation parameters.

2017-04-19 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH v2 3/5] hyperv: add hypervInvokeMethod

2017-04-19 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 566 src/hyperv/hyperv_wmi.h | 3 + src/hyperv/openwsman.h | 4 + 3 files changed, 573 insertions(+) diff --git

Re: [libvirt] [PATCH 5/6] util: add virNumToStr

2017-04-18 Thread Sri Ramanujam
Ah, you're absolutely right, I completely forgot this function existed. On Tue, Apr 18, 2017 at 5:18 PM Matthias Bolte < matthias.bo...@googlemail.com> wrote: > 2017-04-18 0:36 GMT+02:00 Sri Ramanujam <sramanu...@datto.com>: > > Add virNumToStr(), which safely converts numb

[libvirt] [PATCH 5/6] util: add virNumToStr

2017-04-17 Thread Sri Ramanujam
Add virNumToStr(), which safely converts numbers into their string representation. Functions added: * virNumToStr_l * virNumToStr_ul --- src/util/virstring.c | 34 ++ src/util/virstring.h | 8 2 files changed, 42 insertions(+) diff --git

[libvirt] [PATCH 2/6] hyperv: Generate object property type information.

2017-04-17 Thread Sri Ramanujam
Update the generator to generate basic property type information for each CIM object representation. Right now, it generates arrays of hypervCimType structs: struct _hypervCimType { const char *name; const char *type; bool isArray; }; --- src/hyperv/hyperv_wmi_classes.h| 19

[libvirt] [PATCH 6/6] hyperv: Add support for virDomainSetMemory

2017-04-17 Thread Sri Ramanujam
Introduces support for virDomainSetMemory. This also serves an an example for how to use the new method invocation API with a more complicated method, this time including an EPR and embedded param. --- src/hyperv/hyperv_driver.c| 97 +++

[libvirt] [PATCH 4/6] hyperv: support virDomainSendKey

2017-04-17 Thread Sri Ramanujam
This commit adds support for virDomainSendKey. It also serves as an example of how to use the new method invocation APIs with a single "simple" type parameter. --- src/hyperv/hyperv_driver.c| 85 ++ src/hyperv/hyperv_wmi.c | 7 +++

[libvirt] [PATCH 0/6] Hyper-V method invocation support

2017-04-17 Thread Sri Ramanujam
be represented as a string at the XML layer, this function comes in handy throughout the Hyper-V driver and I thought it would have some utility as a convenience method for the whole project. Sri Ramanujam (6): hyperv: Functions to work with invocation parameters. hyperv: Generate object property type

[libvirt] [PATCH 1/6] hyperv: Functions to work with invocation parameters.

2017-04-17 Thread Sri Ramanujam
This commit introduces functionality for creating and working with invoke parameters. This commit does not include any code for serializing and actually performing the method invocations; it merely defines the functions and API for using invocation parameters in driver code.

[libvirt] [PATCH 3/6] hyperv: add hypervInvokeMethod

2017-04-17 Thread Sri Ramanujam
This commit adds support for invoking methods on remote objects via hypervInvokeMethod. --- src/hyperv/hyperv_wmi.c | 566 src/hyperv/hyperv_wmi.h | 3 + src/hyperv/openwsman.h | 4 + 3 files changed, 573 insertions(+) diff --git