From 1d60fec632b8355b0459cf477dbc31ea9c10bf7e Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 24 Nov 2011 14:21:03 +0100
Subject: [PATCH] hv_xen: Export number of CPUs for Dom0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This will be stored in the node object and used for calculations.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/hypervisor/hv_xen.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py
index a563e9373..ba7b51138 100644
--- a/lib/hypervisor/hv_xen.py
+++ b/lib/hypervisor/hv_xen.py
@@ -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)
-- 
GitLab