diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-06-17 17:54:30 +1000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-10-31 16:13:21 +0100 |
commit | 763952d08b9c89726151a72f90bca90d0828302d (patch) | |
tree | 65ca373f4319ac16e7658c6d77bec13a37a99621 /.exrc | |
parent | 0ba1f53191221b541b938df86a39eeccfb87f996 (diff) | |
download | hqemu-763952d08b9c89726151a72f90bca90d0828302d.zip hqemu-763952d08b9c89726151a72f90bca90d0828302d.tar.gz |
kvm_stat: Only consider online cpus
In kvm_stat we grovel through /sys to find out how many cpus are in the
system. However if a cpu is offline it will still be present in /sys,
and the perf_event_open() will fail.
Modify the logic to only return online cpus. We need to be careful on
systems which don't support cpu hotplug, the online file will not be
present at all.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '.exrc')
0 files changed, 0 insertions, 0 deletions