scripts/kvm/kvm_stat: define exit_reasons field in ArchPPC
PATCH 1/1 scripts/kvm/kvm_stat: define exit_reasons field in ArchPPC
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).
--- scripts/kvm/kvm_stat | 1 + 1 file changed, 1 insertion(+)
scripts/kvm/kvm_stat +1 -0
@@ -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):
Signature · 1 line
2.5.5
Quoted 4 lines · Laurent Vivier
Otherwise
kvm_statfails with the following error:AttributeError: 'ArchPPC' object has no attribute '
exit_reasons'
Quoted 8 lines
This has been introduced by:
068294a
scripts/kvm/kvm_stat: Group arch specific dataSet
exit_reasonsto '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).
For this part, I've found the ioctl number used to reset the event queue is not the good one on PPC (thanks to systemtap), I'm going to send another patch to fix that too.
Laurent
Quoted 19 lines
Signed-off-by Laurent Vivier <[email protected]>--- scripts/kvm/kvm_stat | 1 + 1 file changed, 1 insertion(+)scripts/kvm/kvm_stat +1
-0@@ -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):