]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
tools/ocaml: Add missing CAP_PV
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 9 Sep 2019 17:12:05 +0000 (18:12 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 10 Sep 2019 13:44:33 +0000 (14:44 +0100)
c/s f089fddd941 broke the Ocaml ABI by renumering XEN_SYSCTL_PHYSCAP_directio
without adjusting the Ocaml physinfo_cap_flag enumeration.  Fix this by
inserting CAP_PV between CAP_HVM and CAP_DirectIO.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli

index 305625cb6c7a127c769af6ccd6f469dcf7d7b199..097f39d5ce6a99476d445149f90624b0a01c03cb 100644 (file)
@@ -100,6 +100,7 @@ type sched_control =
 
 type physinfo_cap_flag =
        | CAP_HVM
+       | CAP_PV
        | CAP_DirectIO
 
 type physinfo =
index da93160ed30552e020c50d5109a6226f298db47f..957c9fdc2edebc33b205a2d5f3aaa9f1c4d1b4c2 100644 (file)
@@ -83,7 +83,10 @@ type domaininfo = {
   arch_config : arch_domainconfig;
 }
 type sched_control = { weight : int; cap : int; }
-type physinfo_cap_flag = CAP_HVM | CAP_DirectIO
+type physinfo_cap_flag =
+  | CAP_HVM
+  | CAP_PV
+  | CAP_DirectIO
 type physinfo = {
   threads_per_core : int;
   cores_per_socket : int;