Re: virtualbox r0 memory management update

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 07 Dec 2011 18:27:06 +0200
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
_at__at_ -251,7 +251,7 _at__at_ 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
Received on Wed Dec 07 2011 - 15:27:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC