Re: [PATCH v4 24/24] [NOT-FOR-REVIEW] x86/virt/seamldr: Save and restore current VMCS
From: Dave Hansen
Date: Thu Mar 12 2026 - 11:40:08 EST
On 3/12/26 08:26, Vishal Annapurve wrote:
>> 1. Save/restore the current VMCS around P-SEAMLDR calls. This produces ugly
>> assembly code [1] and doesn't play well with #MCE or #NMI if they
>> need to use the current VMCS.
> I see that significant discussion has already occurred regarding this.
>
> My question intends to better understand the current state, Do we have
> a known scenario today in upstream implementation where #MCE/#NMI need
> to use the current VMCS?
Nope, no known cases.
But, to be honest, it's not even something we should have to reason
about on the software side. It's foisting too much complexity and future
burden on software, so it's getting fixed.