Bug 1343347 - inventory not detecting HVM=1 on PowerNV (bare metal ppc64le systems)
Summary: inventory not detecting HVM=1 on PowerNV (bare metal ppc64le systems)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: inventory
Version: 22
Hardware: powerpc
OS: Linux
high
high
Target Milestone: 23.1
Assignee: Dan Callaghan
QA Contact: Dan Callaghan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-07 07:58 UTC by Jan Stancek
Modified: 2016-08-11 01:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-11 01:25:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Stancek 2016-06-07 07:58:59 UTC
Description of problem:
Inventory task is not detecting HVM key/value correctly on PowerNV systems. AFAIK all PowerNV systems are capable of KVM, but adding similar test as for x86 that detects that kvm_hv can be loaded shouldn't hurt anything.

# cat /proc/cpuinfo  | grep platform 
platform        : PowerNV

# lsmod | grep kvm
kvm_hv                103171  1 
kvm                   176191  5 kvm_hv

# modinfo kvm_hv
filename:       /lib/modules/3.10.0-424.el7.ppc64le/kernel/arch/powerpc/kvm/kvm-hv.ko
alias:          devname:kvm
alias:          char-major-10-232
license:        GPL
rhelversion:    7.3
srcversion:     51230F6CDD52AAB9833CCDF
depends:        kvm
intree:         Y
vermagic:       3.10.0-424.el7.ppc64le SMP mod_unload modversions 
signer:         Red Hat Enterprise Linux kernel signing key
sig_key:        F7:52:8D:BB:AF:75:3E:13:D2:91:6A:A6:7E:F1:65:E2:23:03:8C:06
sig_hashalgo:   sha256
parm:           dynamic_mt_modes:Set of allowed dynamic micro-threading modes: 0 (= none), 2, 4, or 6 (= 2 or 4) (int)
parm:           target_smt_mode:Target threads per core (0 = max) (int)

Version-Release number of selected component (if applicable):
1.2-6

How reproducible:
100%

Steps to Reproduce:
1. run inventory on bare metal ppc system


Actual results:
HVM=0

Expected results:
HVM=1

Additional info:

Comment 2 Dan Callaghan 2016-06-08 03:58:51 UTC
Kinda wish we had something better than looking in /sys/modules for random module names, but anyway...

Patch to make beaker-system-scan recognise kvm_hv:
http://gerrit.beaker-project.org/4970

Patch to make /distribution/inventory modprobe it:
http://gerrit.beaker-project.org/4971

Comment 4 Dan Callaghan 2016-08-08 00:52:31 UTC
Tagged as beaker-system-scan 2.2.

Comment 5 Dan Callaghan 2016-08-11 01:25:04 UTC
Beaker 23.1 has been released.


Note You need to log in before you can comment on or make changes to this bug.