diff options
author | Sean Christopherson <[email protected]> | 2021-09-10 11:32:20 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-09-22 10:33:12 -0400 |
commit | 94c245a245ff6552a320257f97d5171d03f7ee3a (patch) | |
tree | 30f926ef8633470dc9457da64f306e114c2d0a7b /tools/perf/util/trace-event-scripting.c | |
parent | 4eeef2424153e79910d65248b5e1abf137d050e9 (diff) |
KVM: x86: Identify vCPU0 by its vcpu_idx instead of its vCPUs array entry
Use vcpu_idx to identify vCPU0 when updating HyperV's TSC page, which is
shared by all vCPUs and "owned" by vCPU0 (because vCPU0 is the only vCPU
that's guaranteed to exist). Using kvm_get_vcpu() to find vCPU works,
but it's a rather odd and suboptimal method to check the index of a given
vCPU.
No functional change intended.
Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Reviewed-by: Maxim Levitsky <[email protected]>
Reviewed-by: Vitaly Kuznetsov <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions