KVM: SVM: Simplify request+kick logic in SNP AP Creation handling
authorSean Christopherson <seanjc@google.com>
Thu, 27 Feb 2025 01:25:37 +0000 (17:25 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 3 Mar 2025 15:34:52 +0000 (07:34 -0800)
commitc6e129fb2ad2c60f22890c0ebe29deffb8cd61f7
tree8e8f83c89315d98e666add75d83f510e8790d8a2
parent745ff82199b1d68585040a36f2f8c3a7987274cd
KVM: SVM: Simplify request+kick logic in SNP AP Creation handling

Drop the local "kick" variable and the unnecessary "fallthrough" logic
from sev_snp_ap_creation(), and simply pivot on the request when deciding
whether or not to immediate force a state update on the target vCPU.

No functional change intended.

Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20250227012541.3234589-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c