VirtualBox

Opened 8 years ago

Last modified 8 years ago

#15695 reopened task

mod_timer_pinned will be dropped from linux kernel v4.8

Reported by: manjaro_oberon Owned by:
Component: other Version: VirtualBox 5.1.2
Keywords: linux kernel Cc: Andre Robatino
Guest type: all Host type: all

Description (last modified by Michael Thayer)

The Linux kernel is about to drop function mod_timer_pinned See:

http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=177ec0a0a531695210b277d734b2f92ee5796303

This change has meanwhile already been adopted by realtime patch rt8, resulting in vbox modules being un-available for this patched kernel. The function will be ultimately dropped from kernel series 48.

Current situation in vbox is this:

$ grep -re "mod_timer_pinned"

src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c:# define mod_timer_pinned mod_timer
src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c: mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c: mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies);
src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c: mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer->u.Std.ulNextJiffies); 

Attachments (1)

mod_timer.patch (550 bytes ) - added by AllSys 8 years ago.
patch for mod_timer_pinned kernel 4.8.x

Download all attachments as: .zip

Change History (11)

comment:1 by manjaro_oberon, 8 years ago

I was not clear about the rt patch: This concerns rt kernels from 4.6.4-rt8 and newer.

comment:2 by Michael Thayer, 8 years ago

Description: modified (diff)

comment:3 by Michael Thayer, 8 years ago

Cc: Andre Robatino added

by AllSys, 8 years ago

Attachment: mod_timer.patch added

patch for mod_timer_pinned kernel 4.8.x

comment:4 by AllSys, 8 years ago

I added a small patch solves my problem in the kernel 4.8.0-rc1 64bit

comment:5 by Frank Mehnert, 8 years ago

Thanks! A slightly better fix can be found in r63341.

comment:6 by manjaro_oberon, 8 years ago

Thanks a lot! We've added an extra define now in our rt-patched kernel and extended your patch to test additionally:

# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) || defined(RT_PATCHED)

and the extramodules are now building fine for all our kernels.

in reply to:  5 comment:7 by sergiomb, 8 years ago

Replying to frank:

Thanks! A slightly better fix can be found in r63341.

Correction, it is in VirtualBox-5.1.4.tar.bz2 , so this ticket could be closed , sorry for my previous mistake, I should had revert the patch for testing and forgot it.

Thanks.

Last edited 8 years ago by sergiomb (previous) (diff)

comment:8 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

comment:9 by el_schalo, 8 years ago

Resolution: fixed
Status: closedreopened

I have still the same issue reported in the 'duplicate' Ticket #15713 guest additions do not build with 4.8 kernel:

vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed.

I am using the latest VirtualBox Version (5.1.6 r110634) on a Windows 7 Host running the lates SLES12 Version (SLE-12-SP1-Server-DVD-x86_64-GM). What am I doing wrong?

BTW: the bidirectional usage of the clipboard doesn't work neither - is there a correlation?

Last edited 8 years ago by el_schalo (previous) (diff)

comment:10 by Frank Mehnert, 8 years ago

Did you actually read the message which you posted? I would expect at least that you attach the /var/log/vboxadd-install.log file to this ticket...

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use