From 610222906f4cdcd2b716bf92de589f32d5dcb78c Mon Sep 17 00:00:00 2001 From: Chris Oo Date: Mon, 14 Jul 2025 21:07:22 +0000 Subject: [PATCH] explict panic on expose va without registrar --- openhcl/underhill_mem/src/mapping.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openhcl/underhill_mem/src/mapping.rs b/openhcl/underhill_mem/src/mapping.rs index 4cfbd771bb..f83d0df586 100644 --- a/openhcl/underhill_mem/src/mapping.rs +++ b/openhcl/underhill_mem/src/mapping.rs @@ -131,7 +131,8 @@ unsafe impl GuestMemoryAccess for GuestMemoryView { // user-mode-only accesses to locked memory (e.g., for vmbus ring // buffers). We can't fail this for now because TDX cannot register // encrypted memory. - Ok(()) + panic!("explicit panic on expose_va without a registrar {address:#x} {len:#x}"); + // Ok(()) } }