[vbox-dev] Keeping up with Linus?

Larry Finger Larry.Finger at lwfinger.net
Sun May 4 02:16:35 GMT 2008


w41ter at gmail.com wrote:
> 
> On Sat, 3 May 2008, Larry Finger wrote:
> 
>> walt wrote:
>>> I just tried building trunk against Linus' current kernel and
>>> failed because NOPAGE_SIGBUS was just removed on 28 April.
> 
>> ...
>> This has not been tested, but you might try adding the following at the
>> beginning of src/VBox/Additions/linux/sharedfolders/regops.c:
>>
>> #ifndef NOPAGE_SIGBUS
>> #define NOPAGE_SIGBUS VM_FAULT_SIGBUS
>> #endif
> 
> I added that, and the same for NOPAGE_OOM, but there is more to go:
> 
> src/vbox/src/VBox/Additions/linux/sharedfolders/regops.c:386:
> error: unknown field 'nopage' specified in initializer
> 
> The code in question is:
> static struct vm_operations_struct sf_vma_ops = {
>         .nopage = sf_reg_nopage
> };
> 
> I can find the problem but I don't know enough to fix it :-/
> Does this look hard to fix, or not so much?

That one is harder as it changes how one calculates the offset. If I get 
bored, I'll try to figure it out.

> (BTW, Linus's commit <3c18ddd> is the guilty one if you're bored :-)

He's allowed to make these kind of changes as long as he fixes all the 
in-kernel drivers that get broken. Out of tree drivers like vbox are on their 
own.

Larry





More information about the vbox-dev mailing list