summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Callaghan <dcallagh@redhat.com>2010-12-22 13:11:24 +1000
committerDan Callaghan <dcallagh@redhat.com>2010-12-22 13:12:28 +1000
commit724586b09bb0214b734c087e6d60bee176ade303 (patch)
treeef8978a1a920bc89c1193e1321b5949b868bf3b7
parent816379d6e558c5bfc4231cb127b3e6aa1354837b (diff)
/distribution/inventory: check PAL processor flags for HVM on ia64beaker-distribution-inventory-1_1-38
Bug: 658169
-rwxr-xr-xTasks/distribution/inventory/push-inventory.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tasks/distribution/inventory/push-inventory.py b/Tasks/distribution/inventory/push-inventory.py
index 26d3e3c..c91cffe 100755
--- a/Tasks/distribution/inventory/push-inventory.py
+++ b/Tasks/distribution/inventory/push-inventory.py
@@ -320,6 +320,10 @@ def read_inventory():
if os.path.exists("/sys/module/kvm_amd") or \
os.path.exists("/sys/module/kvm_intel"):
data['HVM'] = True
+ elif os.path.exists('/proc/pal/cpu0/processor_info'): # ia64
+ for line in open('/proc/pal/cpu0/processor_info', 'r'):
+ if re.match('Virtual machine features.*: On', line):
+ data['HVM'] = True
return data