[PATCH v2 0/3] lib: sbi: Add sub-regions check for sanitizing domain

Inochi Amaoto inochiama at outlook.com
Mon Oct 9 17:59:22 PDT 2023


As the domain will reject a new memory region which has a sub-regions
already in the domain, even the new region is bigger and has the same
flags.

To resolve this problem, just relax restriction of memory region when
adding it, and merge the region into the existed domain regions when
sorting regions.

Changed from v1:
1. separate the patch into three parts.

Inochi Amaoto (3):
  lib: sbi: separate the swap operation of domain region
  lib: sbi: add more restriction to domain region subset check
  lib: sbi: Add regions merging when sanitizing domain region

 lib/sbi/sbi_domain.c | 86 ++++++++++++++++++++++++++++++--------------
 1 file changed, 59 insertions(+), 27 deletions(-)

--
2.42.0




More information about the opensbi mailing list