Description of problem:
When issue command 'kvm_stat' on the host, it failed with following error prompt:
[root@ibm-p8-kvm-01-qe ~]# kvm_stat
Traceback (most recent call last):
File "/usr/bin/kvm_stat", line 196, in <module>
filters[f] = (filters[f], invert(filters[f]))
File "/usr/bin/kvm_stat", line 193, in invert
return dict((x, x) for x in d.iteritems())
AttributeError: 'NoneType' object has no attribute 'iteritems'
Version-Release number of selected component (if applicable):
Host kernel: 3.10.0-216.el7.ppc64/3.10.0-217.el7.ppc64
Ok, looks like the version of kvm_stat in RHEL just doesn't have ppc support. Michael Ellerman posted a bunch of extensions to fix that which are merged upstream.
These patches are also already included in the qemu-2.2 based branch.
Miya et al, have you moved onto testing that yet?
Verified the bug on following sw versions:
Host kernel: 3.10.0-282.el7.ppc64le
Now the command output is as follows:
[root@ibm-p8-kvm-02-qe cfg]# kvm_stat
Event Total Current
kvm_userspace_exit 10046876 7563
kvm_ppc_instr 10894 5
kvm_ack_irq 1218 0
kvm_userspace_exit(PAPR_HCALL) 61 0
(In reply to Gu Nini from comment #6)
Deeper verify the bug on both ppc64be and ppc64le host with following sw versions:
host kernel: 3.10.0-300.el7.ppc64
host kernel: 3.10.0-300.el7.ppc64le
Now the cmd 'kvm_stat' could be executed without any problem.
Setting to VERIFIED according to comment 7.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.