Commit 1d60fec6 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

hv_xen: Export number of CPUs for Dom0

This will be stored in the node object and used for calculations.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 5f06ce5e
......@@ -356,6 +356,7 @@ class XenHypervisor(hv_base.BaseHypervisor):
dom0_info = self.GetInstanceInfo(_DOM0_NAME)
if dom0_info is not None:
result["memory_dom0"] = dom0_info[2]
result["dom0_cpus"] = dom0_info[3]
if not (xen_major is None or xen_minor is None):
result[constants.HV_NODEINFO_KEY_VERSION] = (xen_major, xen_minor)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment