[vbox-dev] Fixes for upcoming Linux 5.1 kernel

Michael Thayer michael.thayer at oracle.com
Mon Feb 11 16:36:50 GMT 2019


Hello Sérgio,

https://www.virtualbox.org/changeset/77198/vbox

Nothing there that wasn't already in the patch though.

Regards
Michael

11.02.19 16:41, Sérgio Basto wrote:
> On Thu, 2019-02-07 at 16:19 +0100, Michael Thayer wrote:
>> Thank you Valdis, finally committed!  It should show up in public
>> Subversion soon.
> 
> when or where ? please
> 
> Thanks
> 
>> Regards
>> Michael
>>
>> 29.01.19 01:05, valdis.kletnieks at vt.edu wrote:
>>> A commit landed in linux-next (which will land in 5.1):
>>>
>>> commit ae5d11d206fce924efcaa8127ffdbdb60c660d7a
>>> Author: Michael S. Tsirkin <mst at redhat.com>
>>> Date:   Thu Jan 24 08:54:07 2019 -0500
>>>
>>>     arch: move common mmap flags to linux/mman.h
>>>     
>>>     Now that we have 3 mmap flags shared by all architectures,
>>>     let's move them into the common header.
>>>
>>> This broke the build because MAP_SHARED wasn't defined.
>>>
>>>  CC
>>> [M]  /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/memuser
>>> kernel-r0drv-linux.o
>>> /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/memobj-
>>> r0drv-linux.c: In function ?rtR0MemObjLinuxDoMmap?:
>>> /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/memobj-
>>> r0drv-linux.c:215:58: error: ?MAP_SHARED? undeclared (first use in
>>> this function); did you mean ?VM_SHARED??
>>>   215 |         ulAddr = vm_mmap(NULL, R3PtrFixed, cb, fLnxProt,
>>> MAP_SHARED | MAP_ANONYMOUS | MAP_FIXED, 0);
>>>       |                                                          ^~
>>> ~~~~~~~~
>>>       |                                                          VM
>>> _SHARED
>>> /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/memobj-
>>> r0drv-linux.c:215:58: note: each undeclared identifier is reported
>>> only once for each function it appears in
>>> make[3]: *** [scripts/Makefile.build:277:
>>> /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/memobj-
>>> r0drv-linux.o] Error 1
>>>
>>> --- vboxdrv/r0drv/linux/the-linux-kernel.h.dist	2019-01-28
>>> 19:01:50.615246073 -0500
>>> +++ vboxdrv/r0drv/linux/the-linux-kernel.h	2019-01-28
>>> 19:01:24.495292846 -0500
>>> @@ -128,6 +128,9 @@
>>>  # include <linux/cpu.h>
>>>  # include <linux/notifier.h>
>>>  #endif
>>> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
>>> +# include <uapi/linux/mman.h>
>>> +#endif
>>>  /* For the basic additions module */
>>>  #include <linux/pci.h>
>>>  #include <linux/delay.h>
>>>
>>> _______________________________________________
>>> vbox-dev mailing list
>>> vbox-dev at virtualbox.org
>>> https://www.virtualbox.org/mailman/listinfo/vbox-dev
>>>
>>
>> _______________________________________________
>> vbox-dev mailing list
>> vbox-dev at virtualbox.org
>> https://www.virtualbox.org/mailman/listinfo/vbox-dev

-- 
Michael Thayer | VirtualBox engineer
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | D-71384 Weinstadt

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Nederland, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 2468 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20190211/5e63b743/attachment.bin>


More information about the vbox-dev mailing list