kvm: svm: Prefer vcpu->cpu to raw_smp_processor_id()
authorJim Mattson <jmattson@google.com>
Wed, 3 Jun 2020 23:56:18 +0000 (16:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:42 +0000 (16:21 -0400)
commit73cd6e5f7f0b8c07330c48bfec4aaa84a6921cf4
tree3d89710637520d1edb5305170f1b639f0c5cd1a9
parenta8d908b5873cad212b0f74569f5a23b804e694ce
kvm: svm: Prefer vcpu->cpu to raw_smp_processor_id()

The current logical processor id is cached in vcpu->cpu. Use it
instead of raw_smp_processor_id() when a kvm_vcpu struct is available.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Message-Id: <20200603235623.245638-2-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c