test(tftf): test Secure interrupt can preempt Realm EL1
- Send a direct message request command to first Cactus SP to start the
trusted watchdog timer.
- Create and execute a busy loop to sleep the PE in the realm world for
REALM_TIME_SLEEP ms.
- Trusted watchdog timer expires during this time which leads to secure
interrupt being triggered while cpu is executing in realm world.
- Realm EL1 exits to host, but because the FIQ is still pending,
the Host will be pre-empted to EL3.
- Once the SP handles the interrupt, it returns execution back to normal
world
- TFTF parses REC's exit reason(FIQ in this case)
- TFTF sends direct message request command to first Cactus SP to query
last serviced interrupt and verifies it is Trusted watchdog interrupt.
- TFTF disables watchdog and destroys Realm payload on exit.
Signed-off-by: Nabil Kahlouche <nabil.kahlouche@arm.com>
Change-Id: I6f4cfd334777000d33924bb1239b77182a3dcea6
diff --git a/tftf/framework/framework.mk b/tftf/framework/framework.mk
index aff0fef..6f4022d 100644
--- a/tftf/framework/framework.mk
+++ b/tftf/framework/framework.mk
@@ -25,6 +25,7 @@
-Iinclude/runtime_services \
-Iinclude/runtime_services/secure_el0_payloads \
-Iinclude/runtime_services/secure_el1_payloads \
+ -Iinclude/runtime_services/host_realm_managment \
-Ispm/cactus \
-Ispm/ivy \
-Irealm \