Re: Hypervisor & Virtualization lscpu test fail

Luis Aranguren
2013-02-13T16:35:37Z

On 2/12/2013 8:56 AM, Sami Kerola wrote:
>
> - if (desc->hypervisor)
> + if (desc->hypervisor && mod->system == SYSTEM_LIVE)
> print_s(_("Hypervisor:"), desc->hypervisor);
> - if (desc->hyper) {
> + if (desc->hyper && mod->system == SYSTEM_LIVE) {
>

Thanks for the fix. After applying it I got these results:

lscpu: ...
: ppc64-POWER7 ... OK
: s390-kvm ... FAILED
(lscpu/lscpu-s390-kvm)
: s390-lpar ... FAILED
(lscpu/lscpu-s390-lpar)
: s390-zvm ... FAILED
(lscpu/lscpu-s390-zvm)
: x86_64-64cpu ... OK
: x86_64-dell_e4310 ... OK
... FAILED (3 from 6 sub-tests)

---
/var/tmp/paludis/build/sys-apps-util-linux-2.22.2/work/util-linux-2.22.2/tests/expected/lscpu/lscpu-s390-kvm
2012-10-15 10:09:42.000000000 +0000
+++
/var/tmp/paludis/build/sys-apps-util-linux-2.22.2/work/C/64/tests/output/lscpu/lscpu-s390-kvm
2013-02-13 15:37:56.000000000 +0000
@@ -7,9 +7,6 @@
Book(s): 3
Vendor ID: IBM/S390
BogoMIPS: 14367.00
-Hypervisor: KVM/Linux
-Hypervisor vendor: KVM
-Virtualization type: full
Dispatching mode: horizontal

Same for the other two s390's. Hope this helps.
Thanks!