VirtualBox

Changeset 106311 in vbox


Ignore:
Timestamp:
Oct 14, 2024 4:17:54 PM (6 weeks ago)
Author:
vboxsync
Message:

iprt: Linux: Add initial support for RHEL 9.6 kernel, bugref:10482.

File:
1 edited

Legend:

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

    r106261 r106311  
    13771377    const int cPages = cb >> PAGE_SHIFT;
    13781378    struct task_struct *pTask = rtR0ProcessToLinuxTask(R0Process);
    1379 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0)
     1379# if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99)
    13801380    struct vm_area_struct **papVMAs;
    13811381# endif
     
    14031403    }
    14041404
    1405 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0)
     1405# if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99)
    14061406    papVMAs = (struct vm_area_struct **)RTMemAlloc(sizeof(*papVMAs) * cPages);
    14071407    if (papVMAs)
     
    14271427# endif
    14281428                                &pMemLnx->apPages[0]    /* Page array. */
    1429 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_SUSE_MAJ_PREREQ(15, 6)
     1429# if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_SUSE_MAJ_PREREQ(15, 6) && !RTLNX_RHEL_RANGE(9,6, 9,99)
    14301430                                , papVMAs               /* vmas */
    14311431# endif
     
    14521452# endif
    14531453                                &pMemLnx->apPages[0]    /* Page array. */
    1454 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0)
     1454# if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99)
    14551455                                , papVMAs               /* vmas */
    14561456# endif
     
    15091509            LNX_MM_UP_READ(pTask->mm);
    15101510
    1511 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0)
     1511# if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99)
    15121512            RTMemFree(papVMAs);
    15131513# endif
     
    15401540        rc = VERR_LOCK_FAILED;
    15411541
    1542 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0)
     1542# if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99)
    15431543        RTMemFree(papVMAs);
    15441544    }
Note: See TracChangeset for help on using the changeset viewer.

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