The libxl version of the physinfo sysctl does not contain some
fields like nr_nodes or capabilities needed for xl info output.
Add them to the structure and the retrieving function.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
physinfo->total_pages = xcphysinfo.total_pages;
physinfo->free_pages = xcphysinfo.free_pages;
physinfo->scrub_pages = xcphysinfo.scrub_pages;
+ physinfo->nr_nodes = xcphysinfo.nr_nodes;
+ memcpy(physinfo->hw_cap,xcphysinfo.hw_cap, sizeof(physinfo->hw_cap));
+ physinfo->phys_cap = xcphysinfo.capabilities;
+
return 0;
}
uint64_t total_pages;
uint64_t free_pages;
uint64_t scrub_pages;
+
+ uint32_t nr_nodes;
+ uint32_t hw_cap[8];
+ uint32_t phys_cap;
};
int libxl_get_physinfo(struct libxl_ctx *ctx, struct libxl_physinfo *physinfo);