Hi all,
In the current version of Hafnium, mailbox wait entries (`wait_entry`) are maintained in linked lists. Each VM (say "vm1") has a "waiter_list" that tracks those VMs waiting for vm1 to be writable, and has a "ready_list" that tracks those VMs that are writable by vm1.
But I don't think it's strictly necessary to maintain the wait entries in linked list. I guess just plain bitmaps are enough to implement the current functionality. I'm wondering (1) whether I understand it correctly, (1) why you're using linked list, and (2) whether it's plausible to replace linked lists with bitmaps.
Thanks,
Jeehoon