From: Tom Lendacky <thomas.lendacky@amd.com>
To: <kvm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<x86@kernel.org>, <linux-coco@lists.linux.dev>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Sean Christopherson <seanjc@google.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Ingo Molnar <mingo@redhat.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
Michael Roth <michael.roth@amd.com>,
"Ashish Kalra" <ashish.kalra@amd.com>,
Joerg Roedel <jroedel@suse.de>,
Roy Hopkins <roy.hopkins@suse.com>
Subject: [RFC PATCH 6/7] KVM: SVM: Support launching an SVSM with Restricted Injection set
Date: Tue, 27 Aug 2024 16:59:30 -0500 [thread overview]
Message-ID: <25460ae2dcf050bd26ac58b71b727bda3913529a.1724795971.git.thomas.lendacky@amd.com> (raw)
In-Reply-To: <cover.1724795970.git.thomas.lendacky@amd.com>
Allow Restricted Injection to be set in SEV_FEATURES. When set,
attempts to inject any interrupts other than #HV will make VMRUN fail.
This is done to further reduce the security exposure within the SVSM.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
---
arch/x86/kvm/svm/sev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c
index 4324a72d35ea..3aa9489786ee 100644
--- a/arch/x86/kvm/svm/sev.c
+++ b/arch/x86/kvm/svm/sev.c
@@ -3078,6 +3078,7 @@ void __init sev_hardware_setup(void)
sev_es_debug_swap_enabled = false;
sev_supported_vmsa_features = 0;
+ sev_supported_vmsa_features |= SVM_SEV_FEAT_RESTRICTED_INJECTION;
if (sev_es_debug_swap_enabled)
sev_supported_vmsa_features |= SVM_SEV_FEAT_DEBUG_SWAP;
}
--
2.43.2
next prev parent reply other threads:[~2024-08-27 22:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 21:59 [RFC PATCH 0/7] KVM: SEV-SNP support for running an SVSM Tom Lendacky
2024-08-27 21:59 ` [RFC PATCH 1/7] KVM: SVM: Implement GET_AP_APIC_IDS NAE event Tom Lendacky
2024-11-28 16:07 ` Borislav Petkov
2024-08-27 21:59 ` [RFC PATCH 2/7] KVM: SEV: Allow for VMPL level specification in AP create Tom Lendacky
2024-08-27 21:59 ` [RFC PATCH 3/7] KVM: SVM: Invoke a specified VMPL level VMSA for the vCPU Tom Lendacky
2024-08-27 21:59 ` [RFC PATCH 4/7] KVM: SVM: Maintain per-VMPL SEV features in kvm_sev_info Tom Lendacky
2024-08-27 21:59 ` [RFC PATCH 5/7] KVM: SVM: Prevent injection when restricted injection is active Tom Lendacky
2024-08-27 21:59 ` Tom Lendacky [this message]
2024-08-27 21:59 ` [RFC PATCH 7/7] KVM: SVM: Support initialization of an SVSM Tom Lendacky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25460ae2dcf050bd26ac58b71b727bda3913529a.1724795971.git.thomas.lendacky@amd.com \
--to=thomas.lendacky@amd.com \
--cc=ashish.kalra@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=jroedel@suse.de \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.roth@amd.com \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=roy.hopkins@suse.com \
--cc=seanjc@google.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®