]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SEV: Fold sev_es_vcpu_reset() into sev_vcpu_create()
authorSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 23:48:32 +0000 (16:48 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 21 Aug 2025 15:45:15 +0000 (08:45 -0700)
commitf7b1f0c1620db689e085569035a659340a3209c3
tree1b206d7104660a5f0226b872d5d9a2bbb86e9e19
parentbaf6ed177290db5873f318626970fa7fd4060579
KVM: SEV: Fold sev_es_vcpu_reset() into sev_vcpu_create()

Fold the remaining line of sev_es_vcpu_reset() into sev_vcpu_create() as
there's no need for a dedicated RESET hook just to init a mutex, and the
mutex should be initialized as early as possible anyways.

No functional change intended.

Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://lore.kernel.org/r/20250819234833.3080255-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h