[PATCH v2] lib/sbi: optimize domain memory regions copying

Samuel Holland samuel.holland at sifive.com
Mon Dec 8 22:45:13 PST 2025


On 2025-12-08 9:56 PM, Vladimir Kondratiev wrote:
> There are 2 locations where memory regions moved in a bulk,
> but this implemented in a region-by region move or even swap.
> 
> Use more effective way. Note, last entry, dom->regions[count], always
> exists and is empty, copying it replaces clear_region()
> 
> Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev at mobileye.com>
> ---
>  lib/sbi/sbi_domain.c | 20 +++++---------------
>  1 file changed, 5 insertions(+), 15 deletions(-)

Reviewed-by: Samuel Holland <samuel.holland at sifive.com>




More information about the opensbi mailing list