Closed NanlinXie closed 3 years ago
[External_System_ID] ACRN-6999
Doc Impact Analysis:
Will have impact to hypercall API error code, and will update with code PR.
I don't know enough about the changes that are planned but there are some documentation about hypercalls in the HLD sections.
PR !5994, which contains both the code changes and relevant document updates, has been merged.
@junjiemao1 , could you link your doc PR here, and @szhen11 and @shenfang2019 could help on verification.
@junjiemao1 , could you link your doc PR here, and @szhen11 and @shenfang2019 could help on verification.
It is the same PR.
Indeed it is: #5994
The permission checks in vmcall_vmexit_handler() cover multiple aspects in the same if … else if … else block, which will not scale when more kinds of checks are needed. To enhance scalability the permissions should be maintained and checked in a unified manner.