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

Inochi Amaoto inochiama at outlook.com
Wed Nov 15 00:04:06 PST 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 v2:
1. rebase to master
2. removed the useless changed for conflict check.
3. improve the commit for the patch 3.

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

Inochi Amaoto (2):
  lib: sbi: separate the swap operation of domain region
  lib: sbi: Add regions merging when sanitizing domain region

 lib/sbi/sbi_domain.c | 84 ++++++++++++++++++++++++++++++--------------
 1 file changed, 58 insertions(+), 26 deletions(-)

--
2.42.1




More information about the opensbi mailing list