KVM: SEV: WARN if SEV-ES is marked active but SEV is not
authorSean Christopherson <seanjc@google.com>
Tue, 9 Nov 2021 21:50:59 +0000 (21:50 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Nov 2021 07:10:27 +0000 (02:10 -0500)
commit1bd00a4257a86db654499137fd8e6db7d1e484dc
tree689418e601a65b8ba0f1cf6dce1bc4e3904a205c
parenta41fb26e61697382b2428ae63e039e97b0e6d164
KVM: SEV: WARN if SEV-ES is marked active but SEV is not

WARN if the VM is tagged as SEV-ES but not SEV.  KVM relies on SEV and
SEV-ES being set atomically, and guards common flows with "is SEV", i.e.
observing SEV-ES without SEV means KVM has a fatal bug.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211109215101.2211373-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.h