mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
ocaml: rename Evtchn.bind_virq as Evtchn.bind_dom_exc_virq
Rename Evtchn.bind_virq as Evtchn.bind_dom_exc_virq to reflect its actual behaviour. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
2bdf003296
commit
daec2beeaf
5 files changed
+6
-6
No files matched your search
@@ -19,7 +19,7 @@ exception Error of string
|
||||
external init: unit -> Unix.file_descr = "stub_eventchn_init"
|
||||
external notify: Unix.file_descr -> int -> unit = "stub_eventchn_notify"
|
||||
external bind_interdomain: Unix.file_descr -> int -> int -> int = "stub_eventchn_bind_interdomain"
|
||||
external bind_virq: Unix.file_descr -> int = "stub_eventchn_bind_virq"
|
||||
external bind_dom_exc_virq: Unix.file_descr -> int = "stub_eventchn_bind_dom_exc_virq"
|
||||
external unbind: Unix.file_descr -> int -> unit = "stub_eventchn_unbind"
|
||||
external read_port: Unix.file_descr -> int = "stub_eventchn_read_port"
|
||||
external write_port: Unix.file_descr -> int -> unit = "stub_eventchn_write_port"
|
||||
|
||||
@@ -19,7 +19,7 @@ external init : unit -> Unix.file_descr = "stub_eventchn_init"
|
||||
external notify : Unix.file_descr -> int -> unit = "stub_eventchn_notify"
|
||||
external bind_interdomain : Unix.file_descr -> int -> int -> int
|
||||
= "stub_eventchn_bind_interdomain"
|
||||
external bind_virq : Unix.file_descr -> int = "stub_eventchn_bind_virq"
|
||||
external bind_dom_exc_virq : Unix.file_descr -> int = "stub_eventchn_bind_dom_exc_virq"
|
||||
external unbind : Unix.file_descr -> int -> unit = "stub_eventchn_unbind"
|
||||
external read_port : Unix.file_descr -> int = "stub_eventchn_read_port"
|
||||
external write_port : Unix.file_descr -> int -> unit
|
||||
|
||||
@@ -97,7 +97,7 @@ CAMLprim value stub_eventchn_bind_interdomain(value fd, value domid,
|
||||
CAMLreturn(port);
|
||||
}
|
||||
|
||||
CAMLprim value stub_eventchn_bind_virq(value fd)
|
||||
CAMLprim value stub_eventchn_bind_dom_exc_virq(value fd)
|
||||
{
|
||||
CAMLparam1(fd);
|
||||
CAMLlocal1(port);
|
||||
|
||||
@@ -21,7 +21,7 @@ type t = {
|
||||
}
|
||||
|
||||
let init () = { fd = Eventchn.init (); virq_port = -1; }
|
||||
let bind_virq eventchn = eventchn.virq_port <- Eventchn.bind_virq eventchn.fd
|
||||
let bind_dom_exc_virq eventchn = eventchn.virq_port <- Eventchn.bind_dom_exc_virq eventchn.fd
|
||||
let bind_interdomain eventchn domid port = Eventchn.bind_interdomain eventchn.fd domid port
|
||||
let unbind eventchn port = Eventchn.unbind eventchn.fd port
|
||||
let notify eventchn port = Eventchn.notify eventchn.fd port
|
||||
|
||||
@@ -270,7 +270,7 @@ let _ =
|
||||
|
||||
if cf.restart then (
|
||||
DB.from_file store domains cons "/var/run/xenstored/db";
|
||||
Event.bind_virq eventchn
|
||||
Event.bind_dom_exc_virq eventchn
|
||||
) else (
|
||||
if !Disk.enable then (
|
||||
info "reading store from disk";
|
||||
@@ -284,7 +284,7 @@ let _ =
|
||||
if cf.domain_init then (
|
||||
let usingxiu = Xc.using_injection () in
|
||||
Connections.add_domain cons (Domains.create0 usingxiu domains);
|
||||
Event.bind_virq eventchn
|
||||
Event.bind_dom_exc_virq eventchn
|
||||
);
|
||||
);
|
||||
|
||||
|
||||