]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Explicitly require DECODEASSISTS to enable SEV support
authorSean Christopherson <seanjc@google.com>
Thu, 20 Jan 2022 01:07:14 +0000 (01:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jan 2022 17:15:00 +0000 (12:15 -0500)
commit86b1b87a4566c1112c01fa390a633aa8de90aae5
treecde0bc32629f167e29095a3cf58fd52e2a369442
parentd5a12bf54b1dc9f318f4f3263c07c0639954ff6f
KVM: SVM: Explicitly require DECODEASSISTS to enable SEV support

Add a sanity check on DECODEASSIST being support if SEV is supported, as
KVM cannot read guest private memory and thus relies on the CPU to
provide the instruction byte stream on #NPF for emulation.  The intent of
the check is to document the dependency, it should never fail in practice
as producing hardware that supports SEV but not DECODEASSISTS would be
non-sensical.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Message-Id: <20220120010719.711476-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c