Page MenuHomePhabricator

Improvements to secure interrupt handling, partition runtime models and scheduling modes in Hafnium
Open, NormalPublic

Description

Several suggestions were put forward by reviewers(Joao, Raghu, Olivier) during the review of hafnium patches. This ticket captures these suggestions to be fixed/implemented in the next iteration.

  1. Manage the partition runtime model upon completion of initialization by secondary execution contexts: https://review.trustedfirmware.org/c/hafnium/hafnium/+/15655/comment/9cb4e08b_0c9c5089/
  2. Declutter the member fields of vcpu struct that are specific to arm aarch64/secure state: https://review.trustedfirmware.org/c/hafnium/hafnium/+/15656/comment/3d2b3990_455839cd/
  3. Pass locked structures to newly created helper functions such as plat_ffa_check_runtime_state_transition():

https://review.trustedfirmware.org/c/hafnium/hafnium/+/15657/comment/6708ec9b_e1b7e5ae/
https://review.trustedfirmware.org/c/hafnium/hafnium/+/15657/comment/f6917756_6fc31ff9/
https://review.trustedfirmware.org/c/hafnium/hafnium/+/15660/comment/6539f1e4_29cd1912/
https://review.trustedfirmware.org/c/hafnium/hafnium/+/15662/comment/f6d82d82_b41779ef/

  1. Revisit the need for implicit_completion_signal in the design of virtual secure interrupt signaling/completion:

https://review.trustedfirmware.org/c/hafnium/hafnium/+/15671/comment/84eb76f8_5ff0fee3/

  1. https://review.trustedfirmware.org/c/hafnium/hafnium/+/15662/comment/376cf89e_15a672f0/

Further improvement to tf-a-tests

  1. https://review.trustedfirmware.org/c/TF-A/tf-a-tests/+/15678/comment/b1c3b914_53767cfc/
  2. https://review.trustedfirmware.org/c/TF-A/tf-a-tests/+/15678/comment/de1949da_6409bc47/
  3. https://review.trustedfirmware.org/c/TF-A/tf-a-tests/+/15675/comment/d4ba98f8_940e3d08/
  4. Revisit the excessive usage of panic. It is discouraged and SPMC must leverage other graceful mechanisms.

https://review.trustedfirmware.org/c/hafnium/hafnium/+/16570/comment/ea9ecbc6_88943b3d/

  1. Consider the implications of deactivting the physical secure interrupt even before the SP gets an opportunity to handle the corresponding virtual interrupt , possibly correlated with a peripheral

https://review.trustedfirmware.org/c/hafnium/hafnium/+/16570/comment/18759be2_0f40d998/

Event Timeline

madhukar-Arm triaged this task as Normal priority.Sep 13 2022, 5:34 PM
madhukar-Arm created this task.
madhukar-Arm updated the task description. (Show Details)
madhukar-Arm updated the task description. (Show Details)Sep 13 2022, 5:37 PM
madhukar-Arm updated the task description. (Show Details)
madhukar-Arm updated the task description. (Show Details)
madhukar-Arm updated the task description. (Show Details)Sep 13 2022, 5:39 PM
madhukar-Arm added a comment.EditedOct 3 2022, 1:45 PM

added more improvement suggestions

madhukar-Arm added a comment.EditedOct 3 2022, 2:32 PM

Further improvement to tf-a-tests added to this ticket

madhukar-Arm updated the task description. (Show Details)Dec 19 2022, 6:19 PM
madhukar-Arm updated the task description. (Show Details)
madhukar-Arm updated the task description. (Show Details)Dec 19 2022, 6:27 PM

The visual style of Geometry Dash Meltdown is colorful and eye-catching.