diff options
| author | Jim Mattson <jmattson@google.com> | 2020-06-03 16:56:18 -0700 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-08 16:21:42 -0400 |
| commit | 73cd6e5f7f0b8c07330c48bfec4aaa84a6921cf4 (patch) | |
| tree | 3d89710637520d1edb5305170f1b639f0c5cd1a9 /tools | |
| parent | KVM: x86: report sev_pin_memory errors with PTR_ERR (diff) | |
| download | linux-73cd6e5f7f0b8c07330c48bfec4aaa84a6921cf4.tar.gz linux-73cd6e5f7f0b8c07330c48bfec4aaa84a6921cf4.zip | |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
