Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2014 01:47:01 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        waleed ziad <wela64waleed@gmail.com>
Cc:        Daniel Lorch <dlorch@gmail.com>, "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>, Oleksandr Dudinskyi <dudinskyj@gmail.com>
Subject:   Re: [GSoc] interested in "VirtualBox shared folder support for FreeBSD guests"
Message-ID:  <20140314174701.GA28976@FreeBSD.cs.nctu.edu.tw>
In-Reply-To: <CAMT0i97PGybwF8EBgL3Bff5bXAMJceZdTxKfTHUJ%2Bom4m85KQw@mail.gmail.com>
References:  <CAMT0i96tqY7vAvc8WJo0MzHrGJhBRx6YxZuGohD0ndvAiRBh-g@mail.gmail.com> <CAE-m3X1GNr5ZSJee7YVP_43sswtfcM27C7RrayvWpkK2q-EUTw@mail.gmail.com> <CAMT0i97PGybwF8EBgL3Bff5bXAMJceZdTxKfTHUJ%2Bom4m85KQw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 10, 2014 at 19:47:53 +0200, waleed ziad wrote:
> Thanks a lot Mr.Bernhard Fröhlich for your care and reply i contacted him .
> 
> On Mon, Mar 10, 2014 at 2:44 PM, Bernhard Fröhlich <decke@freebsd.org> wrote:
> > On Mon, Mar 10, 2014 at 4:31 AM, waleed ziad <wela64waleed@gmail.com> wrote:
> >> Hello all, i am a student from Cairo , Egypt and i was hoping to
> >> participate at Google summer of code this year in FreeBSD organization
> >> i am interested in " VirtualBox shared folder support for FreeBSD
> >> guests" and i was hoping someone Could someone suggest the first steps
> >> I should take to understand the project better or any issues(or bugs)
> >> that I can look into ? and any skills i should acquire ? , thank all
> >> in advance .
> >
> > Thanks for your interest! The project was part of GSoC last year already and
> > Oleksandr did make good progress with it but hasn't got it fully
> > working. Li-Wen Hsu
> > took over his work and fixed a few things and also put it on github:
> >
> > https://github.com/lwhsu/freebsd-vboxfs
> >
> > So right now the best technical contact is Li-Wen Hsu and I guess he
> > can also tell
> > you what is blocking progress right now and if it's still a viable GSoC project.

Sorry for the late reply, as Bernhard said, the current status is blocked
because it seems that I need to get familiar with our virtual memory
subsystem and how it interacts with VirtualBox's HGCM to make progress.
I'm trying to squeeze more time on this.

The README on https://github.com/lwhsu/freebsd-vboxfs is still valid for 4.3.8,
you can follow the instruction to setup the environment, kldload
vboxguest.ko and vboxvfs.ko .  However, mount_vboxfs still cannot work
because vboxCallMapFolder() returns error.

If digging this deeper, we can find that the call ends up in

rtR0MemObjNativeLockInMap()
(in VirtualBox-4.3.8/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c)

while doing:

    rc = vm_map_wire(pVmMap,          /* the map */
                     AddrStart,       /* start */
                     AddrStart + cb,  /* end */
                     fFlags);         /* flags */

the vm_map_wire(9) (in /sys/vm/vm_map.c) always returns KERN_INVALID_ADDRESS
when getting false with vm_map_lookup_entry(9) at the beginning.

That's my current status.  Any help on this is welcomed.

Add Daniel Lorch into CC list since he's also working on this.

Li-Wen

-- 
Li-Wen Hsu <lwhsu@FreeBSD.org>
http://lwhsu.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140314174701.GA28976>