ANDROID: KVM: arm64: Add smc64 trap handling for protected guests

Introduce a new interface to allow vendor modules to register a SMC
handler for a given protected guest. The pkvm will trap the SMC
instruction on the protected guest, and delegate the control flow to the
registered SMC handler.

Bug: 360102915
Change-Id: I928a8ad890de264ce376ad174a2f4205c7c24688
Signed-off-by: Nikita Ioffe <ioffe@google.com>
Signed-off-by: Sebastian Ene <sebastianene@google.com>
This commit is contained in:
Nikita Ioffe
2025-05-12 13:58:42 +00:00
committed by Carlos Llamas
parent 2c1385ae0e
commit 128144da22
10 changed files with 106 additions and 1 deletions
+3
View File
@@ -343,6 +343,9 @@
ARM_SMCCC_OWNER_STANDARD, \
0x53)
#define ARM_CCA_FUNC_END 0x840001CF
#define ARM_CCA_64BIT_FUNC_END 0xC40001CF
/*
* Return codes defined in ARM DEN 0070A
* ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C