Re: [RFC v2 08/32] x86/traps: Add #VE support for TDX guest

From: Dave Hansen
Date: Tue Jun 08 2021 - 14:15:34 EST


On 6/8/21 11:12 AM, Andi Kleen wrote:
> I believe neither does mmio/msr normally (except maybe
> ftrace+tp_printk, but that will likely work because it shouldn't
> recurse more than once due to ftrace's reentry protection)

Can it do MMIO:

> +DEFINE_IDTENTRY(exc_virtualization_exception)
> +{
=======> HERE
> + ret = tdg_get_ve_info(&ve);

Recursion isn't the problem. It would double-fault there, right?