Displaying 1 result from an estimated 1 matches for "bb961bda7eff".
2007 Nov 26
0
[PATCH] [Mini-OS] Make gnttab allocation/free safe
Add a semaphore to protect gnttab_list from exhaustion, and disable
callbacks during allocation/free. Fix the network frontend accordingly.
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
diff -r bb961bda7eff extras/mini-os/gnttab.c
--- a/extras/mini-os/gnttab.c Sun Nov 25 21:24:48 2007 +0000
+++ b/extras/mini-os/gnttab.c Mon Nov 26 11:50:31 2007 +0000
@@ -18,6 +18,7 @@
#include <os.h>
#include <mm.h>
#include <gnttab.h>
+#include <semaphore.h>
#define NR_RESERVED_ENTRIES 8...