]> git.ipfire.org Git - thirdparty/qemu.git/commit
tools: kvm_stat: Powerpc related fixes
authorHemant Kumar <hemant@linux.vnet.ibm.com>
Tue, 19 Apr 2016 03:24:54 +0000 (08:54 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 4 Aug 2016 21:23:35 +0000 (16:23 -0500)
commit5a908cb1a8a3cfcade9d35b6819168785ca1fe78
tree898c5ba587a2e6956d374c2b3ea3bdaa007f4573
parent07a3a482c3d10c2b83e5a3052428db502578179a
tools: kvm_stat: Powerpc related fixes

kvm_stat script is failing to execute on powerpc :
 # ./kvm_stat
Traceback (most recent call last):
  File "./kvm_stat", line 825, in <module>
    main()
  File "./kvm_stat", line 813, in main
    providers = get_providers(options)
  File "./kvm_stat", line 778, in get_providers
    providers.append(TracepointProvider())
  File "./kvm_stat", line 416, in __init__
    self.filters = get_filters()
  File "./kvm_stat", line 315, in get_filters
    if ARCH.exit_reasons:
AttributeError: 'ArchPPC' object has no attribute 'exit_reasons'

This is because, its trying to access a non-defined attribute.

Also, the IOCTL number of RESET is incorrect for powerpc. The correct
number has been added.

Signed-off-by: Hemant Kumar <hemant@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* cherry-picked from linux commit c7d4fb5a
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
scripts/kvm/kvm_stat