Skip to content
Snippets Groups Projects
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 <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 5f06ce5e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment