Give the HVM domain type the name "HVM" as is generally used in the
Xen universe, rather than "FV" which is not used elsewhere.
Keyed unions should be keyed off the individual union value, not off
an arbitrary expression.
Change the "hvm" field in domain_build_info to be called "type" and
have an appropriate enum type.
These are are incompatible changes to the API/ABI.
THIS PATCH IS AN RFC AND SHOULD NOT BE APPLIED. It contains only the
suggested changes to libxl.idl, and not any of the necessary
implementation in the idl compiler nor consequential changes to libxl
and xl.
---
tools/libxl/libxl.idl | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/libxl/libxl.idl b/tools/libxl/libxl.idl
index 6e39734..8fb883f 100644
--- a/tools/libxl/libxl.idl
+++ b/tools/libxl/libxl.idl
@@ -21,7 +21,7 @@ libxl_hwcap = Builtin("hwcap")
#
libxl_domain_type = Enumeration("domain_type", [
- (1, "FV"),
+ (1, "HVM"),
(2, "PV"),
])
@@ -158,9 +158,9 @@ libxl_domain_build_info = Struct("domain_build_info",[
("shadow_memkb", uint32),
("disable_migrate", bool),
("cpuid", libxl_cpuid_policy_list),
- ("hvm", bool),
- ("u", KeyedUnion(None, "hvm",
- [("hvm", "%s", Struct(None,
+ ("type", libxl_domain_type),
+ ("u", KeyedUnion(None, "type",
+ [("hvm", Struct(None,
[("firmware", string),
("pae", bool),
("apic", bool),
@@ -173,7 +173,7 @@ libxl_domain_build_info = Struct("domain_build_info",[
("timer_mode", integer),
("nested_hvm", bool),
])),
- ("pv", "!%s", Struct(None,
+ ("pv", Struct(None,
[("kernel", libxl_file_reference),
("slack_memkb", uint32),
("bootloader", string),
--
1.5.6.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|