]> git.dujemihanovic.xyz Git - linux.git/commit
KVM: x86: Use this_cpu_ptr() instead of per_cpu_ptr(smp_processor_id())
authorIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 2 Aug 2024 20:16:30 +0000 (13:16 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Aug 2024 14:24:37 +0000 (10:24 -0400)
commit15e1c3d65975524c5c792fcd59f7d89f00402261
tree1199284381464c2dfd013062351920b2527c0ccb
parentb098495e69491c2225681f43228312d32477217b
KVM: x86: Use this_cpu_ptr() instead of per_cpu_ptr(smp_processor_id())

Use this_cpu_ptr() instead of open coding the equivalent in various
user return MSR helpers.

Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Yuan Yao <yuan.yao@intel.com>
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Message-ID: <20240802201630.339306-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c