qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] scripts/kvm/kvm_stat: define exit_reasons field in ArchPPC
@ 2016-05-20  7:07 Laurent Vivier
  2016-05-20  8:28 ` Laurent Vivier
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Vivier @ 2016-05-20  7:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-ppc, Janosch Frank, Paolo Bonzini, Laurent Vivier

Otherwise kvm_stat fails with the following error:

    AttributeError: 'ArchPPC' object has no attribute 'exit_reasons'

This has been introduced by:

    068294a scripts/kvm/kvm_stat: Group arch specific data

Set exit_reasons to 'None' (as it is done for ArchS390) for ArchPPC.

Test this with "kvm_stat -d" as tracepoints provider (-t) is
also broken on PPC (looks like a kernel bug).

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
 scripts/kvm/kvm_stat | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
index 769d884..78ffe83 100755
--- a/scripts/kvm/kvm_stat
+++ b/scripts/kvm/kvm_stat
@@ -261,6 +261,7 @@ class ArchPPC(Arch):
         # numbers depend on the wordsize.
         char_ptr_size = ctypes.sizeof(ctypes.c_char_p)
         self.ioctl_numbers['SET_FILTER'] = 0x80002406 | char_ptr_size << 16
+        self.exit_reasons = None
 
 class ArchA64(Arch):
     def __init__(self):
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-20  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-20  7:07 [Qemu-devel] [PATCH] scripts/kvm/kvm_stat: define exit_reasons field in ArchPPC Laurent Vivier
2016-05-20  8:28 ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).