virtualbox r0 memory management update

Andriy Gapon avg at FreeBSD.org
Wed Dec 7 16:27:10 UTC 2011


on 06/12/2011 22:22 Andriy Gapon said the following:
> 
> Could you please change that line as follows?
> 	vm_page_t pPage = pPages +iPage;
> 

Additionally the patch has another bug.  Here is a patch on top of the previous patch:

--- src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c.orig2	2011-12-07
18:15:48.695189924 +0200
+++ src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c	2011-12-07
18:17:35.359192030 +0200
@@ -251,7 +251,7 @@ static int FreeBSDPhysAllocHelper(vm_obj
                 vm_page_free(pPage);
                 vm_page_unlock_queues();
             }
-            VM_OBJECT_LOCK(pObject);
+            VM_OBJECT_UNLOCK(pObject);
             return VERR_NO_MEMORY;
         }
     }

-- 
Andriy Gapon


More information about the freebsd-current mailing list