diff options
author | Christoffer Dall <cdall@linaro.org> | 2017-05-08 20:38:40 +0200 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-05-09 12:19:14 +0200 |
commit | 497d72d80a789501501cccabdad6b145f9e31371 (patch) | |
tree | 278c4ca307da2925f7f89078a38aad03bd3d213f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 443c3a9e686aa44cf00c677498a6b715f9a43a45 (diff) |
KVM: Add kvm_vcpu_get_idx to get vcpu index in kvm->vcpus
There are occasional needs to use the index of vcpu in the kvm->vcpus
array to map something related to a VCPU. For example, unlike the
vcpu->vcpu_id, the vcpu index is guaranteed to not be sparse across all
vcpus which is useful when allocating a memory area for each vcpu.
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions