qemu-patch-raspberry4/scripts/kvm
Michael Ellerman 763952d08b 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>
2014-10-31 16:13:21 +01:00
..
kvm_flightrecorder kvm: add flightrecorder script 2012-04-12 19:01:41 -03:00
kvm_stat kvm_stat: Only consider online cpus 2014-10-31 16:13:21 +01:00
vmxcap vmxcap: Update according to SDM of September 2014 2014-09-26 21:08:56 +04:00