Displaying 6 results from an estimated 6 matches for "libxl_send_trigger".
2013 Sep 09
1
[PATCH V3] xl: HVM domain S3 bugfix
...LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN:
+ rc = libxl__qmp_system_wakeup(gc, domid);
+ break;
+ default:
+ rc = ERROR_INVAL;
+ break;
+ }
+ break;
+ default:
+ rc = ERROR_INVAL;
+ break;
+ }
+
+ return rc;
+}
+
int libxl_send_trigger(libxl_ctx *ctx, uint32_t domid,
libxl_trigger trigger, uint32_t vcpuid)
{
int rc;
+ GC_INIT(ctx);
switch (trigger) {
case LIBXL_TRIGGER_POWER:
@@ -4668,8 +4695,7 @@ int libxl_send_trigger(libxl_ctx *ctx, uint32_t domid,...
2013 Oct 22
0
Re: [PATCH V3] xl: HVM domain S3 bugfix
...>> default: + rc = ERROR_INVAL;
>> + break;
>> + }
>> + break;
>> + default:
>> + rc = ERROR_INVAL;
>> + break;
>> + }
>> +
>> + return rc;
>> +}
>> +
>> int libxl_send_trigger(libxl_ctx *ctx, uint32_t domid,
>> libxl_trigger trigger, uint32_t vcpuid) {
>> int rc;
>> + GC_INIT(ctx);
>>
>> switch (trigger) {
>> case LIBXL_TRIGGER_POWER:
>> @@ -4668,8 +4695,7 @@ int libxl_send_trigger(libx...
2011 Jan 10
3
[PATCH] libxl: implement trigger s3resume
...Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
diff -r 1ae74f060a39 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Mon Jan 10 10:37:53 2011 +0000
+++ b/tools/libxl/libxl.c Mon Jan 10 10:58:50 2011 +0000
@@ -2668,8 +2668,14 @@ static int trigger_type_from_string(char
int libxl_send_trigger(libxl_ctx *ctx, uint32_t domid, char *trigger_name, uint32_t vcpuid)
{
int rc = -1;
- int trigger_type = trigger_type_from_string(trigger_name);
-
+ int trigger_type = -1;
+
+ if (!strcmp(trigger_name, "s3resume")) {
+ xc_set_hvm_param(ctx->xch, domid, HVM_PARAM_A...
2010 Jun 28
8
[PATCH] add xl ocaml bindings
...amp;c_scinfo);
+ if (ret != 0)
+ failwith_xl("sched_credit_domain_set");
+ FREE_CTX();
+
+ CAMLreturn(Val_unit);
+}
+
+value stub_xl_send_trigger(value domid, value trigger, value vcpuid)
+{
+ CAMLparam3(domid, trigger, vcpuid);
+ struct libxl_ctx ctx;
+ int ret;
+
+ INIT_CTX();
+ ret = libxl_send_trigger(&ctx, Int_val(domid), String_val(trigger), Int_val(vcpuid));
+ if (ret != 0)
+ failwith_xl("send_trigger");
+ FREE_CTX();
+ CAMLreturn(Val_unit);
+}
+
+value stub_xl_send_sysrq(value domid, value sysrq)
+{
+ CAMLparam2(domid, sysrq);
+ struct libxl_ctx ctx;
+ int ret;
+
+ INIT_CTX();...
2013 Mar 25
86
[PATCH 00/28] libxl: ocaml: improve the bindings
The following series of patches fill in most of the gaps in the OCaml bindings
to libxl, to make them useful for clients such as xapi/xenopsd (from XCP).
There are a number of bugfixes to the existing bindings as well. I have an
experimental version of xenopsd that successfully uses the new bindings.
An earlier version of the first half of the series was submitted to the last
by Ian Campbell on
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...%s/cpu/%u/availability", dompath, i),
"%s", ((1 << i) & ((1 << count) - 1)) ? "online" : "offline");
}
- return 0;
+ rc = 0;
+out:
+ libxl_free_all(&gc);
+ return rc;
}
/*
@@ -2916,10 +3107,12 @@ int libxl_send_trigger(libxl_ctx *ctx, u
int libxl_send_sysrq(libxl_ctx *ctx, uint32_t domid, char sysrq)
{
- char *dompath = libxl_xs_get_dompath(ctx, domid);
-
- libxl_xs_write(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/control/sysrq", dompath), "%c", sysrq);
-
+ libxl_gc gc = LIBXL_INIT_GC(...