﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
12638,VBOXADDITIONS_4.3.4_91027 does not compile in RHEL-7 beta,tcamuso,,"
As reported in the VBox forum at ... 
https://forums.virtualbox.org/viewtopic.php?f=3&t=59094

In source file memobj-r0drv-linux.c starting at line 1536, and again at line 1542, the following test is made. 

{{{
#  if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
                pTask->mm->numa_next_reset = jiffies + 0x7fffffffUL;
#  endif
                pTask->mm->numa_next_scan  = jiffies + 0x7fffffffUL;

}}}

This compile-time test was made to adapt to 3.13 kernel commit ...

{{{
commit 930aa174fcc8b0efaad102fd80f677b92f35eaa2
Author: Mel Gorman <mgorman@suse.de>
Date:   Mon Oct 7 11:29:37 2013 +0100

    sched/numa: Remove the numa_balancing_scan_period_reset sysctl
}}}

However, RHEL7 has backported this patch to its 3.10 kernel, so the result of compiling this file in VBoxGuest editions is ...

{{{
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1542:26: error: ‘struct mm_struct’ has no member named ‘numa_next_reset’
                 pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL;
                          ^
make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
}}}

Applying the following patch provided by forum user ""spicysomtam"" made the VBoxGuestAdditions compile successfully, but I don't know if this is what you really want to do.

{{{
--- a/vboxhost/vboxdrv/r0drv/linux/memobj-r0drv-linux.c
+++ b/vboxhost/vboxdrv/r0drv/linux/memobj-r0drv-linux.c
@@ -1533,14 +1533,8 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ p
                 /** @todo Ugly hack! But right now we have no other means to disable
                  *        automatic NUMA page balancing. */
 # ifdef RT_OS_X86
-#  if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
-                pTask->mm->numa_next_reset = jiffies + 0x7fffffffUL;
-#  endif
                 pTask->mm->numa_next_scan  = jiffies + 0x7fffffffUL;
 # else
-#  if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
-                pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL;
-#  endif
                 pTask->mm->numa_next_scan  = jiffies + 0x7fffffffffffffffUL;
 # endif
             }
}}}

",defect,closed,guest additions,VirtualBox 4.3.6,fixed,,,Linux,Linux
