VirtualBox

Changeset 77464 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Feb 26, 2019 6:48:27 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129040
Message:

Runtime/r0drv/linux: handle get_user_pages back-port to Linux 4.4.168.
ticketref:18315:Kernel modules do not build with linux kernel 4.4.169.
The previous attempt was bad, try again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r77367 r77464  
    10311031    && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 6, 0) \
    10321032    && defined(FAULT_FLAG_REMOTE)
    1033 # define GET_USER_PAGES_API     KERNEL_VERSION(4, 10, 0) /* no typo! */
    1034 /* The get_user_pages API change was back-ported to 4.4.168. */
    1035 #elif    LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) \
    1036       && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 5, 0)
    10371033# define GET_USER_PAGES_API     KERNEL_VERSION(4, 10, 0) /* no typo! */
    10381034#else
     
    11201116                                R3Ptr,                  /* Where from. */
    11211117                                cPages,                 /* How many pages. */
    1122 # if GET_USER_PAGES_API >= KERNEL_VERSION(4, 9, 0)
     1118/* The get_user_pages API change was back-ported to 4.4.168. */
     1119# if    LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) \
     1120      && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 5, 0)
    11231121                                fWrite ? FOLL_WRITE |   /* Write to memory. */
    11241122                                         FOLL_FORCE     /* force write access. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette