search for: libxl_domain_build_state

Displaying 5 results from an estimated 5 matches for "libxl_domain_build_state".

2010 Aug 18
16
[PATCH 00 of 16] libxl: autogenerate type definitions and destructor functions
The series introduces auto-generation of the type definitions used in the libxl interface followed by auto-generation of a destructor function for each type. In the future it may be possible to use the related data structures for other purposes, for example auto-generation of the functions to marshal between C and language binding data types. tools/_libxl_types.h should be identical both before
2010 Jun 28
8
[PATCH] add xl ocaml bindings
...val->power_mgmt = Bool_val(Field(v, 4)); + + CAMLreturn(0); +} + +static int sched_credit_val(struct libxl_sched_credit *c_val, value v) +{ + CAMLparam1(v); + c_val->weight = Int_val(Field(v, 0)); + c_val->cap = Int_val(Field(v, 1)); + CAMLreturn(0); +} + +static int domain_build_state_val(libxl_domain_build_state *c_val, value v) +{ + CAMLparam1(v); + + c_val->store_port = Int_val(Field(v, 0)); + c_val->store_mfn = Int64_val(Field(v, 1)); + c_val->console_port = Int_val(Field(v, 2)); + c_val->console_mfn = Int64_val(Field(v, 3)); + + CAMLreturn(0); +} + +static value Val_sched_credit(struct lib...
2011 Jan 11
0
[PATCH, v2]: xl: move domain struct init functions to libxl
...gl = 0; + dm_info->nographic = 0; + dm_info->serial = NULL; + dm_info->boot = strdup("cda"); + dm_info->usb = 0; + dm_info->usbdevice = NULL; + dm_info->xen_platform_pci = 1; +} + static int init_console_info(libxl_device_console *console, int dev_num, libxl_domain_build_state *state) { memset(console, 0x00, sizeof(libxl_device_console)); diff -r efe2d3ea22ae tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Tue Jan 11 15:30:48 2011 +0000 +++ b/tools/libxl/xl_cmdimpl.c Tue Jan 11 15:40:45 2011 +0000 @@ -249,152 +249,6 @@ static void dolog(const char *file, in...
2010 Sep 09
2
[PATCH]: add libxl python binding
...return 0; +} + +static PyObject *fixed_bytearray_get(const uint8_t *ptr, size_t len) +{ + return PyByteArray_FromStringAndSize((const char *)ptr, len); +} + +#include "_pyxl_types.h" + +int attrib__libxl_cpumap_set(PyObject *v, libxl_cpumap *pptr) +{ + return -1; +} + +int attrib__libxl_domain_build_state_ptr_set(PyObject *v, libxl_domain_build_state **pptr) +{ + return -1; +} + +int attrib__libxl_file_reference_set(PyObject *v, libxl_file_reference *pptr) +{ + return -1; +} + +int attrib__libxl_hwcap_set(PyObject *v, libxl_hwcap *pptr) +{ + return -1; +} + +int attrib__libxl_key_value_list...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...(our_trans) xs_transaction_end(ctx->xsh, our_trans, 1); + libxl_free_all(&gc); return rc; x_fail: rc = ERROR_FAIL; goto x_rc; @@ -260,38 +266,42 @@ int libxl_domain_rename(libxl_ctx *ctx, int libxl_domain_build(libxl_ctx *ctx, libxl_domain_build_info *info, uint32_t domid, libxl_domain_build_state *state) { + libxl_gc gc = LIBXL_INIT_GC(ctx); char **vments = NULL, **localents = NULL; struct timeval start_time; int i, ret; ret = build_pre(ctx, domid, info, state); - if (ret) goto out; + if (ret) + goto out; gettimeofday(&start_time, NULL);...