Hi Larry, On Monday 15 October 2012 18:29:26 Larry Finger wrote: > In kernel 3.7-rc1, the flag VM_RESERVED is removed, and should be replaced > by (VM_DONTEXPAND | VM_DONTDUMP). The latter one is new. The patch listed > below, which is under the MIT License) will work. > > Index: vboxhost/vboxdrv/r0drv/linux/memobj-r0drv-linux.c > =================================================================== > --- vboxhost.orig/vboxdrv/r0drv/linux/memobj-r0drv-linux.c > +++ vboxhost/vboxdrv/r0drv/linux/memobj-r0drv-linux.c > @@ -50,6 +50,10 @@ > # define PAGE_READONLY_EXEC PAGE_READONLY > #endif > > +#ifndef VM_RESERVED > +# define VM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP) > +#endif > + > /* > * 2.6.29+ kernels don't work with remap_pfn_range() anymore because > * track_pfn_vma_new() is apparently not defined for non-RAM pages. > > For reasons that are not yet understood, the straight-forward test for > "LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)" fails. That problem is > being investigated.
we have already a similar fix, see r43637 and this one seems to work (tested with Linux 3.7-rc1). Kind regards, Frank -- Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany Hauptverwaltung: Riesstr. 25, D-80992 München Registergericht: Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz Komplementärin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
