* rt8 and virtualbox-dkms
@ 2016-07-16 18:57 Bernhard Landauer
2016-07-23 0:02 ` Bernhard Landauer
0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Landauer @ 2016-07-16 18:57 UTC (permalink / raw)
To: linux-rt-users
Hi everyone and thank you for your awesome work.
Since recently we are building an rt-kernel for Manjarolinux.
With the latest rt8 patch we are running into this issue with building
the virtualbox-dkms modules:
/var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv/r0drv/linux/timer-r0drv-linux.c:
In function ‘rtTimerLnxStartSubTimer’:
/var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv/r0drv/linux/timer-r0drv-linux.c:364:13:
error: implicit declaration of function ‘mod_timer_pinned’ [-$
mod_timer_pinned(&pSubTimer->u.Std.LnxTimer,
pSubTimer->u.Std.ulNextJiffies);
^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:292:
/var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv/r0drv/linux/timer-r0drv-linux.o]
Error 1
make[1]: *** [scripts/Makefile.build:440:
/var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv] Error 2
make: *** [Makefile:1429:
_module_/var/lib/dkms/vboxhost/5.1.0_OSE/build] Error 2
make: Leaving directory '/usr/lib/modules/4.6.4-1-rt8-MANJARO/build'
The issue persists with the very latest virutalbox packages 5.1.0
Any hints will be greatly appreciated.
kind regards
Bernhard Landauer
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rt8 and virtualbox-dkms
2016-07-16 18:57 rt8 and virtualbox-dkms Bernhard Landauer
@ 2016-07-23 0:02 ` Bernhard Landauer
2016-07-26 13:44 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Landauer @ 2016-07-23 0:02 UTC (permalink / raw)
To: linux-rt-users
I've investigated a little more into this.
Removing the mod_timer_pinned function - as happened here:
https://lkml.org/lkml/2016/7/4/214
means that VirtualBox module can no longer be built because it still
relies on it:
$ 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);
So does that mean the rt-kernel will no longer run VirtualBox??
Regards
Bernhard Landauer
On 16/07/16 20:57, Bernhard Landauer wrote:
> Hi everyone and thank you for your awesome work.
> Since recently we are building an rt-kernel for Manjarolinux.
> With the latest rt8 patch we are running into this issue with building
> the virtualbox-dkms modules:
>
> /var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv/r0drv/linux/timer-r0drv-linux.c:
> In function ‘rtTimerLnxStartSubTimer’:
> /var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv/r0drv/linux/timer-r0drv-linux.c:364:13:
> error: implicit declaration of function ‘mod_timer_pinned’ [-$
> mod_timer_pinned(&pSubTimer->u.Std.LnxTimer,
> pSubTimer->u.Std.ulNextJiffies);
> ^~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[2]: *** [scripts/Makefile.build:292:
> /var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv/r0drv/linux/timer-r0drv-linux.o]
> Error 1
> make[1]: *** [scripts/Makefile.build:440:
> /var/lib/dkms/vboxhost/5.1.0_OSE/build/vboxdrv] Error 2
> make: *** [Makefile:1429:
> _module_/var/lib/dkms/vboxhost/5.1.0_OSE/build] Error 2
> make: Leaving directory '/usr/lib/modules/4.6.4-1-rt8-MANJARO/build'
>
> The issue persists with the very latest virutalbox packages 5.1.0
>
> Any hints will be greatly appreciated.
> kind regards
> Bernhard Landauer
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rt8 and virtualbox-dkms
2016-07-23 0:02 ` Bernhard Landauer
@ 2016-07-26 13:44 ` Sebastian Andrzej Siewior
2016-07-26 13:53 ` Bernhard Landauer
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2016-07-26 13:44 UTC (permalink / raw)
To: Bernhard Landauer; +Cc: linux-rt-users
* Bernhard Landauer | 2016-07-23 02:02:52 [+0200]:
>$ 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);
>
>So does that mean the rt-kernel will no longer run VirtualBox??
This change will be part of v4.8. If virtualbox wants to work with v4.8+
they need to update their code. Once this happens, it will work with
-RT.
>Regards
>Bernhard Landauer
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rt8 and virtualbox-dkms
2016-07-26 13:44 ` Sebastian Andrzej Siewior
@ 2016-07-26 13:53 ` Bernhard Landauer
2016-08-19 11:02 ` Bernhard Landauer
0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Landauer @ 2016-07-26 13:53 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: linux-rt-users
Ok. Thank you for the information.
regards
Bernhard
On 26/07/16 15:44, Sebastian Andrzej Siewior wrote:
> * Bernhard Landauer | 2016-07-23 02:02:52 [+0200]:
>
>> $ 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);
>>
>> So does that mean the rt-kernel will no longer run VirtualBox??
> This change will be part of v4.8. If virtualbox wants to work with v4.8+
> they need to update their code. Once this happens, it will work with
> -RT.
>
>> Regards
>> Bernhard Landauer
> Sebastian
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rt8 and virtualbox-dkms
2016-07-26 13:53 ` Bernhard Landauer
@ 2016-08-19 11:02 ` Bernhard Landauer
0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Landauer @ 2016-08-19 11:02 UTC (permalink / raw)
To: linux-rt-users
For reference, here's how we solved this now for Manjarolinux (Thank's a
lot, Sebastian, for your advice!)
For 4.6.x_rt series we have added a specific define:
KBUILD_CPPFLAGS := -D__KERNEL__ -DRT_PATCHED
and extended Oracle's pending linux48 patch
(https://www.virtualbox.org/changeset/63341/vbox)
by testing:
# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) || defined(RT_PATCHED)
Against virtualbox-extramodules patched like that we are now able to
compile regular linux46 and 47 aswell as rt-patched 46.
On 26/07/16 15:53, Bernhard Landauer wrote:
> Ok. Thank you for the information.
>
> regards
> Bernhard
>
>
> On 26/07/16 15:44, Sebastian Andrzej Siewior wrote:
>> * Bernhard Landauer | 2016-07-23 02:02:52 [+0200]:
>>
>>> $ 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);
>>>
>>> So does that mean the rt-kernel will no longer run VirtualBox??
>> This change will be part of v4.8. If virtualbox wants to work with v4.8+
>> they need to update their code. Once this happens, it will work with
>> -RT.
>>
>>> Regards
>>> Bernhard Landauer
>> Sebastian
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-rt-users" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-08-19 11:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-16 18:57 rt8 and virtualbox-dkms Bernhard Landauer
2016-07-23 0:02 ` Bernhard Landauer
2016-07-26 13:44 ` Sebastian Andrzej Siewior
2016-07-26 13:53 ` Bernhard Landauer
2016-08-19 11:02 ` Bernhard Landauer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.