|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-api
[Xen-API] [PATCH 8 of 9] PoC: ocaml: add binding to	xc_domain_suppress_s 
| # HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1294742832 0
# Node ID eb4ac8ec9239aa0b6320388caab5d2162f20de4f
# Parent  8110fd3fc41eb6730d53df9d4ef221d65a079df4
PoC: ocaml: add binding to xc_domain_suppress_spurious_page_faults
Required by xapi.
Taken from xen-api-libs.hg/xc and adjusted for upstream libxc+ocaml.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 8110fd3fc41e -r eb4ac8ec9239 tools/ocaml/libs/xc/xc.ml
--- a/tools/ocaml/libs/xc/xc.ml Tue Jan 11 10:47:12 2011 +0000
+++ b/tools/ocaml/libs/xc/xc.ml Tue Jan 11 10:47:12 2011 +0000
@@ -241,6 +241,9 @@ external domain_deassign_device: handle 
 external domain_test_assign_device: handle -> domid -> (int * int * int * int) 
-> bool
        = "stub_xc_domain_test_assign_device"
 
+external domain_suppress_spurious_page_faults: handle -> domid -> unit
+       = "stub_xc_domain_suppress_spurious_page_faults"
+
 external domain_set_timer_mode: handle -> domid -> int -> unit = 
"stub_xc_domain_set_timer_mode"
 external domain_set_hpet: handle -> domid -> int -> unit = 
"stub_xc_domain_set_hpet"
 external domain_set_vpt_align: handle -> domid -> int -> unit = 
"stub_xc_domain_set_vpt_align"
diff -r 8110fd3fc41e -r eb4ac8ec9239 tools/ocaml/libs/xc/xc.mli
--- a/tools/ocaml/libs/xc/xc.mli        Tue Jan 11 10:47:12 2011 +0000
+++ b/tools/ocaml/libs/xc/xc.mli        Tue Jan 11 10:47:12 2011 +0000
@@ -201,6 +201,9 @@ external domain_set_machine_address_size
 external domain_get_machine_address_size: handle -> domid -> int
        = "stub_xc_domain_get_machine_address_size"
 
+external domain_suppress_spurious_page_faults: handle -> domid -> unit
+       = "stub_xc_domain_suppress_spurious_page_faults"
+
 external domain_cpuid_set: handle -> domid -> (int64 * (int64 option))
                         -> string option array
                         -> string option array
diff -r 8110fd3fc41e -r eb4ac8ec9239 tools/ocaml/libs/xc/xc_stubs.c
--- a/tools/ocaml/libs/xc/xc_stubs.c    Tue Jan 11 10:47:12 2011 +0000
+++ b/tools/ocaml/libs/xc/xc_stubs.c    Tue Jan 11 10:47:12 2011 +0000
@@ -730,6 +730,17 @@ CAMLprim value stub_xc_domain_get_machin
        CAMLreturn(Val_int(retval));
 }
 
+CAMLprim value stub_xc_domain_suppress_spurious_page_faults(value xch,
+                                                           value domid)
+{
+       CAMLparam2(xch, domid);
+
+       int retval = xc_domain_suppress_spurious_page_faults(_H(xch), 
_D(domid));
+       if (retval)
+               failwith_xc(_H(xch));
+       CAMLreturn(Val_unit);
+}
+
 CAMLprim value stub_xc_domain_cpuid_set(value xch, value domid,
                                         value input,
                                         value config)
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-API] [PATCH 2 of 3] Define $(RPM) for use in Makefile, (continued)
[Xen-API] [PATCH 0 of 9] XCP: Allow XCP to use ocaml library	bindings in Xen	unstable (which will become Xen 4.1) -- xen-4.1.pq.hg, Ian Campbell
[Xen-API] [PATCH 1 of 9] XCP.PQ: Add a new hypercall and libxc	wrapper to get the CPUID feature leaves, Ian Campbell
[Xen-API] [PATCH 2 of 9] XCP.PQ: Collect domain runstate	information in the hypervisor, and export, Ian Campbell
[Xen-API] [PATCH 3 of 9] PoC: ocaml: add bindings for	get_boot_cpufeatures, Ian Campbell
[Xen-API] [PATCH 4 of 9] PoC: ocaml: add bindings for	get_runstate_info, Ian Campbell
[Xen-API] [PATCH 5 of 9] PoC: libxc+ocaml: add interface to detect	PV drivers in HVM guests, Ian Campbell
[Xen-API] [PATCH 6 of 9] PoC: libxc+ocaml: add interfaces to	manipulate various properties of HVM guests, Ian Campbell
[Xen-API] [PATCH 7 of 9] PoC: libxc+ocaml: add interfaces to send	triggers to HVM guests, Ian Campbell
[Xen-API] [PATCH 8 of 9] PoC: ocaml: add binding to	xc_domain_suppress_spurious_page_faults,
Ian Campbell <=
[Xen-API] [PATCH 9 of 9] HACK: Do not install some stuff which	conflicts with out-off-tree XCP versions of the same, Ian Campbell
[Xen-API] [PATCH 0 of 4] XCP: Allow XCP to use ocaml library	bindings in Xen	unstable (which will become Xen 4.1) -- xen-api-libs.hg, Ian Campbell
[Xen-API] [PATCH 0 of 6] XCP: Allow XCP to use ocaml library	bindings in Xen unstable (which will become Xen 4.1) -- xen-api.hg, Ian Campbell
 |  |  | 
  
    |  |  |