Displaying 14 results from an estimated 14 matches for "gc_init".
Did you mean:
ac_init
2010 Oct 10
1
[LLVMdev] More questions about non_lazy_ptr
...plugin. Since it is not generated until link time, I
declared it as an external symbol so that the modules that use it can
compile without error.
Here's what the generated IR looks like:
@gc_safepoint_map = external global [0 x i32]
The runtime startup code gets the safepoint map and calls GC_init with the
safepoint map. Here's what the code looks like in IR:
%init = invoke {} @GC_init(i32* getelementptr inbounds ([0 x i32]*
@gc_safepoint_map, i32 0, i32 0))
to label %nounwind unwind label %catch
When lowered to assembly, the code looks like this on OS X:
Ltmp426:...
2010 Aug 24
1
[LLVMdev] non_lazy_ptr question
...s works
fine on Linux, but fails on OS X because the address being passed is the
"non_lazy_ptr" symbol, not the symbol itself.
In my .bc file, I've got code that looks like this:
@gc_safepoint_map = external global [0 x i32] ; <[0 x i32]*> [#uses=1]
%init = invoke {} @GC_init(i32* getelementptr inbounds ([0 x i32]*
@gc_safepoint_map, i32 0, i32 0))
to label %nounwind unwind label %catch, !dbg !400 ; <{}> [#uses=0]
In other words, we have an external symbol that is being passed to an
external function. (BTW, gc_safepoint_map is the map of all of the stac...
2012 Aug 15
2
[PATCH] libxl: make domain resume API asynchronous
...b/tools/libxl/libxl.c Wed Aug 15 16:58:21 2012 +0100
@@ -396,15 +396,12 @@ int libxl_domain_rename(libxl_ctx *ctx,
return rc;
}
-int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel)
+int libxl__domain_resume(libxl__gc *gc, uint32_t domid, int suspend_cancel)
{
- GC_INIT(ctx);
int rc = 0;
- if (xc_domain_resume(ctx->xch, domid, suspend_cancel)) {
- LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
- "xc_domain_resume failed for domain %u",
- domid);
+ if (xc_domain_resume(CTX->xch, domid, suspe...
2013 Sep 09
1
[PATCH V3] xl: HVM domain S3 bugfix
...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,
XEN_DOMCTL_SENDTRIGGER_RESET, vcpuid);
break;
case LIBXL_TRIGGER_S3RESUME:
- xc_set_hvm_param(ctx->...
2012 May 15
5
[PATCH 0 of 4 v3] Add commands to automatically prep devices for pass-through
Add commands to automatically prep devices for pass-through
The current method for passing through devices requires users to
either modify cryptic Linux boot parameters and reboot, or do a lot of
manual reads and writes into sysfs nodes.
This set of patches introduces commands to make this easier. It expands
on the concept of "assignable" (from the list_assignable_devices command).
2013 Oct 22
0
Re: [PATCH V3] xl: HVM domain S3 bugfix
...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,
>> XEN_DOMCTL_SENDTRIGGER_RESET, vcpuid); break; case
>...
2013 Dec 01
70
[PATCH 00/13] Coverity fixes for libxl
Matthew Daley (13):
libxl: fix unsigned less-than-0 comparison in e820_sanitize
libxl: check for xc_domain_setmaxmem failure in libxl__build_pre
libxl: correct file open success check in libxl__device_pci_reset
libxl: don''t leak p in libxl__wait_for_backend
libxl: remove unsigned less-than-0 comparison
libxl: actually abort if initializing a ctx''s lock fails
libxl:
2012 Feb 09
7
[PATCH V2 0/3] Set VNC password to QEMU upstream
Anthony PERARD (3):
libxl_qmp: Use GC instead of CTX as parameter for _initialize.
Provide dm_vnc() as a in libxl helper.
libxl: Set VNC password through QMP
tools/libxl/libxl_create.c | 2 +-
tools/libxl/libxl_dm.c | 32 ++++++++++++++----------
tools/libxl/libxl_internal.h | 7 ++++-
tools/libxl/libxl_qmp.c | 55 ++++++++++++++++++++++++++++++-----------
4 files
2013 Dec 16
8
XEN/arm XENFB support
Goodmorning,
I''m currently playing with XEN/arm on my Allwinner A20 (cubieboard2)
I would like to get the XENFB driver working on domU.
But currently in xen/arm there''s no support for VFB, atleast qemu is not
supported.
But this video http://www.youtube.com/watch?v=po1IeElg8tg and this one
http://www.youtube.com/watch?v=Km6gBnIqaWo is showing a working framebuffer.
So there are
2012 Aug 15
5
[PATCH] xl: Suppress spurious warning message for cpupool-list
...oolid);
+ if (!probe || errno != ENOENT)
+ LOGE(ERROR, "failed to get info for cpupool%d\n", poolid);
return ERROR_FAIL;
}
@@ -623,7 +625,7 @@ int libxl_cpupool_info(libxl_ctx *ctx,
libxl_cpupoolinfo *info, uint32_t poolid)
{
GC_INIT(ctx);
- int rc = cpupool_info(gc, info, poolid, true);
+ int rc = cpupool_info(gc, info, poolid, true, false);
GC_FREE;
return rc;
}
@@ -639,7 +641,7 @@ libxl_cpupoolinfo * libxl_list_cpupool(l
poolid = 0;
for (i = 0;; i++) {
- if (cpupool_info(gc, &info, poo...
2012 Jul 04
53
[PATCH 00 of 10 v3] Automatic NUMA placement for xl
Hello,
Third version of the NUMA placement series Xen 4.2.
All the comments received during v2''s review have been addressed (more details
in single changelogs).
The most notable changes are the following:
- the libxl_cpumap --> libxl_bitmap renaming has been rebased on top of the
recent patches that allows us to allocate bitmaps of different sizes;
- the heuristics for deciding
2012 Sep 27
18
[PATCH 09/11] add iomem support to libxl
This patch adds a new option for xen config files for
directly mapping hardware io memory into a vm.
Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5
index 013270d..428da21 100644
--- a/docs/man/xl.cfg.pod.5
+++ b/docs/man/xl.cfg.pod.5
@@ -496,6 +496,17 @@ is given in hexadecimal and may either a span e.g.
2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
...CREATE(ctx, domid, ao_how);
+ int rc;
+ rc = libxl__device_usb_remove(gc, domid, usbdev);
+ libxl__ao_complete(egc, ao, rc);
+ return AO_INPROGRESS;
+}
+
+
+libxl_device_usb *libxl_device_usb_list(libxl_ctx *ctx,
+ uint32_t domid, int *num)
+{
+ GC_INIT(ctx);
+ libxl__device_usb *devint;
+ libxl_device_usb *devext = NULL;
+ int n = 0, i, rc;
+
+ rc = get_assigned_devices(gc, domid, &devint, &n);
+ if (rc) {
+ LOG(ERROR, "Could not get assigned devices");
+ goto out;
+ }
+
+ if (n == 0)
+...
2012 Feb 20
18
[PATCH] libxl: fix compile error of libvirt
a, libxl_event.h is included in libxl.h. So, the former one also need to be installed.
b, define __XEN_TOOLS__ in libxl.h:
the head file "xen/sysctl.h" need check this macro.
It is the same way used by the xen libxc public headers(tools/libxc/xenctrl.h and tools/libxc/xenctrlosdep.h).
Signed-off-by: Bamvor Jian Zhang <bjzhang@suse.com>
diff -r 87218bd367be