diff options
Diffstat (limited to 'tools/libxl/libxl.idl')
-rw-r--r-- | tools/libxl/libxl.idl | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/tools/libxl/libxl.idl b/tools/libxl/libxl.idl index 7f99f556f4..f169c2c129 100644 --- a/tools/libxl/libxl.idl +++ b/tools/libxl/libxl.idl @@ -159,30 +159,28 @@ libxl_domain_build_info = Struct("domain_build_info",[ ("disable_migrate", bool), ("cpuid", libxl_cpuid_policy_list), ("type", libxl_domain_type), - ("u", KeyedUnion(None, "type", - [("hvm", "%s == LIBXL_DOMAIN_TYPE_HVM", Struct(None, - [("firmware", string), - ("pae", bool), - ("apic", bool), - ("acpi", bool), - ("nx", bool), - ("viridian", bool), - ("timeoffset", string), - ("hpet", bool), - ("vpt_align", bool), - ("timer_mode", integer), - ("nested_hvm", bool), - ])), - ("pv", "%s == LIBXL_DOMAIN_TYPE_PV", Struct(None, - [("kernel", libxl_file_reference), - ("slack_memkb", uint32), - ("bootloader", string), - ("bootloader_args", string), - ("cmdline", string), - ("ramdisk", libxl_file_reference), - ("features", string, True), - ("e820_host", bool, False, "Use host's E820 for PCI passthrough."), - ])), + ("u", KeyedUnion(None, libxl_domain_type, "type", + [("hvm", Struct(None, [("firmware", string), + ("pae", bool), + ("apic", bool), + ("acpi", bool), + ("nx", bool), + ("viridian", bool), + ("timeoffset", string), + ("hpet", bool), + ("vpt_align", bool), + ("timer_mode", integer), + ("nested_hvm", bool), + ])), + ("pv", Struct(None, [("kernel", libxl_file_reference), + ("slack_memkb", uint32), + ("bootloader", string), + ("bootloader_args", string), + ("cmdline", string), + ("ramdisk", libxl_file_reference), + ("features", string, True), + ("e820_host", bool, False, "Use host's E820 for PCI passthrough."), + ])), ])), ], comment = |