]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SEV: WARN on unhandled VM type when initializing VM
authorSean Christopherson <seanjc@google.com>
Tue, 10 Mar 2026 23:48:20 +0000 (16:48 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 9 Apr 2026 19:00:17 +0000 (12:00 -0700)
commit4f67cf7e7e756436d2a525ac6743711e598573c4
treed35f2a645d68026841f20c4543c07e038cb3bff0
parente353f1beeda3e7037f192235d5bd6abffacb49f6
KVM: SEV: WARN on unhandled VM type when initializing VM

WARN if KVM encounters an unhandled VM type when setting up flags for SEV+
VMs, e.g. to guard against adding a new flavor of SEV without adding proper
recognition in sev_vm_init().

Practically speaking, no functional change intended (the new "default" case
should be unreachable).

Link: https://patch.msgid.link/20260310234829.2608037-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c