KVM: x86: Remove redundant vcpu->arch.cr0 assignments
authorMichal Luczaj <mhal@rbox.co>
Mon, 14 Aug 2023 22:08:35 +0000 (00:08 +0200)
committerSean Christopherson <seanjc@google.com>
Wed, 27 Sep 2023 19:57:48 +0000 (12:57 -0700)
commit9dbb029b9c44a84968317d462eaa5a748317d8fb
tree8950643c9be5467d17eca00daf5b869188fabc1a
parent5804c19b80bf625c6a9925317f845e497434d6d3
KVM: x86: Remove redundant vcpu->arch.cr0 assignments

Drop the vcpu->arch.cr0 assignment after static_call(kvm_x86_set_cr0).
CR0 was already set by {vmx,svm}_set_cr0().

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://lore.kernel.org/r/20230814222358.707877-2-mhal@rbox.co
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/smm.c
arch/x86/kvm/x86.c