|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC PATCH 2/2] vvmx: Reinject TDX instruction exit reasons to L1 when emitted by L2
Reinject the exit reason to L1 rather than failing on "Unhandled nested vmexit"
which leads to a L1 crash that can be caused by L2 by executing one of the TDX
instructions.
Signed-off-by: Teddy Astie <teddy.astie@xxxxxxxxxx>
---
xen/arch/x86/hvm/vmx/vvmx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c
index e4cdfe55c1..b2ad7db332 100644
--- a/xen/arch/x86/hvm/vmx/vvmx.c
+++ b/xen/arch/x86/hvm/vmx/vvmx.c
@@ -2496,6 +2496,8 @@ int nvmx_n2_vmexit_handler(struct cpu_user_regs *regs,
case EXIT_REASON_INVEPT:
case EXIT_REASON_XSETBV:
case EXIT_REASON_INVVPID:
+ case EXIT_REASON_SEAMCALL:
+ case EXIT_REASON_TDCALL:
/* inject to L1 */
nvcpu->nv_vmexit_pending = 1;
break;
--
2.54.0
--
Teddy Astie | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |