aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/qemu-nsis.ico
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2014-06-17 17:54:30 +1000
committerPaolo Bonzini <pbonzini@redhat.com>2014-10-31 16:13:21 +0100
commit763952d08b9c89726151a72f90bca90d0828302d (patch)
tree65ca373f4319ac16e7658c6d77bec13a37a99621 /pc-bios/qemu-nsis.ico
parent0ba1f53191221b541b938df86a39eeccfb87f996 (diff)
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 'pc-bios/qemu-nsis.ico')
0 files changed, 0 insertions, 0 deletions