mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: "Melody Wang" <huibo.wang@amd.com>, x86@kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>,
	"Tom Lendacky" <thomas.lendacky@amd.com>
Subject: Re: [PATCH v3 0/8] Alternate Injection: Secure Interrupt Delivery for SEV-SNP Guests - Guest Support
Date: Thu, 24 Sep 2026 21:06:00 +0200	[thread overview]
Message-ID: <517e154d-dbdf-47f9-849f-2ee369dc832e@app.fastmail.com> (raw)
In-Reply-To: <43674b3b-15a5-494c-b1de-041070b1e816@amd.com>



On Thu, 24 Sep 2026, at 20:34, Melody Wang wrote:
> Hi Ard,
>
> On 9/23/26 1:56 PM, Ard Biesheuvel wrote:
>> This may be a bit of a 'back to the drawing board' remark, but if opting
>> in to this alternate injection scheme can only be done from the EFI firmware
>> before ExitBootServices(), couldn't we wrap all this logic into an OVMF
>> protocol instead? That way, the EFI stub can just invoke it if it exists,
>> and what happens under the hood as a result is entirely under the control of
>> the firmware.
>
...
>
> But if we leave the OVMF to decide for the guest kernel, that is 
> violating the confidential computing principles of the guest being in 
> control.
>

That is not what I am suggesting.

What I would like to see is an abstraction implemented in OVMF that encapsulates
the logic that you are adding here. All the EFI stub would have to do is call
the protocol, nothing more.

After ExitBootServices() is a different matter, and actually, I think doing
the memory acceptance at that point was a mistake, and I'd like to fix that
but that is a separate discussion.

Before ExitBootServices(), we should not be poking MSRs directly. We should
be relying on the abstractions exposed by the firmware.




      reply	other threads:[~2026-09-24 19:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-20 18:12 Melody Wang
2026-09-20 18:12 ` [PATCH v3 1/8] x86/sev: Make SVSM calls preemption-safe Melody Wang
2026-09-20 18:16   ` Melody Wang
2026-09-20 18:12 ` [PATCH v3 2/8] x86/sev: Add support for Alternate Injection Melody Wang
2026-09-20 18:16   ` Melody Wang
2026-09-20 18:16 ` [PATCH v3 0/8] Alternate Injection: Secure Interrupt Delivery for SEV-SNP Guests - Guest Support Melody Wang
2026-09-20 18:16 ` [PATCH v3 3/8] x86/apic: Add an SVSM APIC driver Melody Wang
2026-09-22  1:31   ` Melody Wang
2026-09-23 20:31   ` Borislav Petkov
2026-09-20 18:16 ` [PATCH v3 4/8] x86/sev: Route unsupported APIC register accesses to the hypervisor APIC emulation Melody Wang
2026-09-20 18:16 ` [PATCH v3 5/8] x86/sev: Add a function to contain all SEV-specific setup operations Melody Wang
2026-09-20 18:16 ` [PATCH v3 6/8] x86/sev: Register the guest with the SVSM APIC protocol Melody Wang
2026-09-23 20:46   ` Melody Wang
2026-09-20 18:16 ` [PATCH v3 7/8] x86/sev: Allow the guest to configure interrupt vectors for the hypervisor Melody Wang
2026-09-23 20:46   ` Melody Wang
2026-09-20 18:17 ` [PATCH v3 8/8] x86/sev: Indicate that Alternate Injection is supported in the guest Melody Wang
2026-09-23 20:56 ` [PATCH v3 0/8] Alternate Injection: Secure Interrupt Delivery for SEV-SNP Guests - Guest Support Ard Biesheuvel
2026-09-24 18:34   ` Melody Wang
2026-09-24 19:06     ` Ard Biesheuvel [this message]

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=517e154d-dbdf-47f9-849f-2ee369dc832e@app.fastmail.com \
    --to=ardb@kernel.org \
    --cc=huibo.wang@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.lendacky@amd.com \
    --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®