diff options
| author | Michael Ellerman | 2014-06-17 09:54:32 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-10-31 16:34:21 +0100 |
| commit | 4d4103ff32ee4c88857727515b5e596a1debc227 (patch) | |
| tree | a1479bffc9f4548cd3cb1be81cb4be5386e28e63 /scripts/checkpatch.pl | |
| parent | kvm_stat: Fix the non-x86 exit reasons (diff) | |
| download | qemu-4d4103ff32ee4c88857727515b5e596a1debc227.tar.gz qemu-4d4103ff32ee4c88857727515b5e596a1debc227.tar.xz qemu-4d4103ff32ee4c88857727515b5e596a1debc227.zip | |
kvm_stat: Rework platform detection
The current platform detection is a little bit messy. We look for lines
in /proc/cpuinfo starting with 'flags' OR 'vendor-id', and scan both
for values we know will only occur in one or the other. We also keep
scanning once we've found a value, which could be a feature, but isn't
in this case.
We'd also like to add another platform, powerpc, which will just make it
worse. So clean it up in preparation.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
