[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 2/2] lib/ukallocbbuddy: Set memr.mm_alloc_bitmap_size



Currently memr.mm_alloc_bitmap_size is not set anywhere.
It is now set in bbbuddy_addmem().

Signed-off-by: Bruno Alvisio <bruno.alvisio@xxxxxxxxx>
---
 lib/ukallocbbuddy/bbuddy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ukallocbbuddy/bbuddy.c b/lib/ukallocbbuddy/bbuddy.c
index 13cb0c8..350b52f 100644
--- a/lib/ukallocbbuddy/bbuddy.c
+++ b/lib/ukallocbbuddy/bbuddy.c
@@ -363,6 +363,7 @@ static int bbuddy_addmem(struct uk_alloc *a, void *base, 
size_t len)
         */
        memr->first_page = min;
        memr->nr_pages = (max - min) >> __PAGE_SIZE;
+       memr->mm_alloc_bitmap_size = round_pgup((max + 1) >> (__PAGE_SHIFT + 
3));
 
        /* add to list */
        memr->next = b->memr_head;
-- 
2.3.2 (Apple Git-55)


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.