Re: [RFC v1 05/26] x86/traps: Add #VE support for TDX guest

From: Dave Hansen
Date: Fri Feb 12 2021 - 14:21:14 EST


On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote:
> More details on cases where #VE exceptions are allowed/not-allowed:
>
> The #VE exception do not occur in the paranoid entry paths, like NMIs.
> While other operations during an NMI might cause #VE, these are in the
> NMI code that can handle nesting, so there is no concern about
> reentrancy. This is similar to how #PF is handled in NMIs.
>
> The #VE exception also cannot happen in entry/exit code with the
> wrong gs, such as the SWAPGS code, so it's entry point does not
> need "paranoid" handling.

Considering:

https://lore.kernel.org/lkml/20200825171903.GA20660@sjchrist-ice/

I would suggest revisiting this part of the changelog.