Date: Sat, 21 Jul 2012 19:46:29 GMT From: Garrett Cooper <yanegomi@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/170056: [patch] emulators/virtualbox-ose-kmod needs modification after VM KPI rename Message-ID: <201207211946.q6LJkT0T070862@red.freebsd.org> Resent-Message-ID: <201207211950.q6LJo5fv031639@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 170056 >Category: misc >Synopsis: [patch] emulators/virtualbox-ose-kmod needs modification after VM KPI rename >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 21 19:50:05 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: n/a >Organization: n/a >Environment: n/a >Description: vm_contig_grow_cache was renamed to vm_pageout_grow_cache in r238561, and this broke virtual box-ose-kmod loading on CURRENT: The attached patch is a simple string replace (I avoided the __FreeBSD_version #if because the KPI is a 10-CURRENT only KPI). 1. http://docs.freebsd.org/cgi/getmsg.cgi?fetch=366211+0+current/freebsd-current 2. http://docs.freebsd.org/cgi/getmsg.cgi?fetch=483944+0+current/freebsd-current >How-To-Repeat: >Fix: Patch attached with submission follows: Index: emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c =================================================================== --- emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c (revision 301281) +++ emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c (working copy) @@ -149,7 +149,7 @@ + VM_OBJECT_UNLOCK(pObject); + if (pPages || tries >= 1) + break; -+ vm_contig_grow_cache(tries, 0, VmPhysAddrHigh); ++ vm_pageout_grow_cache(tries, 0, VmPhysAddrHigh); + tries++; + } + return pPages; @@ -176,7 +176,7 @@ + pPages = vm_phys_alloc_contig(cPages, 0, VmPhysAddrHigh, uAlignment, 0); + if (pPages || tries >= 1) + break; -+ vm_contig_grow_cache(tries, 0, VmPhysAddrHigh); ++ vm_pageout_grow_cache(tries, 0, VmPhysAddrHigh); + tries++; + } + if (!pPages) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207211946.q6LJkT0T070862>