mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
libxl: idl: add domain_type field to libxl_dominfo struct
This allows a toolstack to find out whether a VM has booted as PV or HVM. Signed-off-by: Rob Hoes <rob.hoes@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
11c76da7ba
commit
decd97c976
2 files changed
+3
No files matched your search
@@ -537,6 +537,8 @@ static void xcinfo2xlinfo(const xc_domaininfo_t *xcinfo,
|
||||
xlinfo->vcpu_max_id = xcinfo->max_vcpu_id;
|
||||
xlinfo->vcpu_online = xcinfo->nr_online_vcpus;
|
||||
xlinfo->cpupool = xcinfo->cpupool;
|
||||
xlinfo->domain_type = (xcinfo->flags & XEN_DOMINF_hvm_guest) ?
|
||||
LIBXL_DOMAIN_TYPE_HVM : LIBXL_DOMAIN_TYPE_PV;
|
||||
}
|
||||
|
||||
libxl_dominfo * libxl_list_domain(libxl_ctx *ctx, int *nb_domain_out)
|
||||
|
||||
@@ -209,6 +209,7 @@ libxl_dominfo = Struct("dominfo",[
|
||||
("vcpu_max_id", uint32),
|
||||
("vcpu_online", uint32),
|
||||
("cpupool", uint32),
|
||||
("domain_type", libxl_domain_type),
|
||||
], dir=DIR_OUT)
|
||||
|
||||
libxl_cpupoolinfo = Struct("cpupoolinfo", [
|
||||
|
||||