Messages in this thread | | | From | Jim Mattson <> | Date | Fri, 10 Sep 2021 14:46:12 -0700 | Subject | Re: [PATCH 2/2] KVM: x86: Identify vCPU0 by its vcpu_idx instead of walking vCPUs array |
| |
On Fri, Sep 10, 2021 at 11:32 AM Sean Christopherson <seanjc@google.com> wrote: > > 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 <seanjc@google.com> Reviewed-by: Jim Mattson <jmattson@google.com>
| |