Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2014 09:59:52 -0500 (CDT)
From:      Junyuan Zeng <jzeng@utdallas.edu>
To:        =?utf-8?Q?Bernhard_Fr=C3=B6hlich?= <decke@FreeBSD.org>
Cc:        Daniel Lorch <dlorch@gmail.com>, freebsd-emulation@freebsd.org, Li-Wen Hsu <lwhsu@freebsd.org>, Oleksandr Dudinskyi <dudinskyj@gmail.com>
Subject:   Re: about gsoc 2014
Message-ID:  <1572635598.122017.1395154792873.JavaMail.root@zem1.utdallas.edu>
In-Reply-To: <CAE-m3X04jFcm%2BaL0ZzbD1%2BDYTEB6Ab9e8p_oHzLHawOFCEV-Og@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Bernhard

Thanks a lot for your detailed reply and I will contact Li-Wen directly if =
I have any questions.


----- Original Message -----
From: "Bernhard Fr=C3=B6hlich" <decke@FreeBSD.org>
To: "Junyuan Zeng" <jzeng@utdallas.edu>
Cc: "Li-Wen Hsu" <lwhsu@freebsd.org>, freebsd-emulation@freebsd.org, "Oleks=
andr Dudinskyi" <dudinskyj@gmail.com>, "Daniel Lorch" <dlorch@gmail.com>, "=
waleed ziad" <wela64waleed@gmail.com>
Sent: Tuesday, March 18, 2014 2:21:20 AM
Subject: Re: about gsoc 2014

On Tue, Mar 18, 2014 at 5:50 AM, Junyuan Zeng <jzeng@utdallas.edu> wrote:
> Hi Bernhard
>
> I am Junyuan Zeng, a fourth year PhD student at The University of Texas a=
t Dallas. I am pretty interested on the project that you lead.
> I am very good at C programming and have advanced knowledge about visuali=
zation and vfs in Linux Kernel.
> I have some experience about Virtulbox. I am implementing a mechanism on =
Virtualbox for fast transferring files between guest OS and host OS now.
> We have implemented this mechanism in KVM and it's at least 5X-10X faster=
 than drag 'n' drop in Virtualbox. Basically, we redirect the system call f=
rom
> host OS to guest OS. We can talk more about it if you have interests.
>
> If let me implement the "VirtualBox shared folder support for FreeBSD gue=
sts", I will take a look at the source code in folder VirtualBox-4.3.8/src/=
VBox/Additions/linux/sharedfolders, which
> implement the guest driver for shared folder. Based on that, I will imple=
ment a freebsd version of guest driver. Do you think it's a good way to go?
>
> Thanks!


Hi Junyuan,

Thanks for your interest in the VirtualBox Shared Folders GSoC
project! This project
was already part of GSoC last year but it's still unfinished. In the
meantime lwhsu@
has continued on the result of that and he is the better technical
contact right now.

The current work can be seen on github:

https://github.com/lwhsu/freebsd-vboxfs

and I forward you the most recent mail from him which should give an
idea of what
work remaining to do. We would be very glad if someone takes that GSoC task
but it requires more bugfixing and adding read/write support than implement=
ing
new code.

I have also CC'd a bunch of people that are currently involved in that
task to keep
them informed.

Looking forward to a great GSoC 2014 :o)


---------- Forwarded message ----------
From: Li-Wen Hsu <lwhsu@freebsd.org>
Date: Fri, Mar 14, 2014 at 6:47 PM
Subject: Re: [GSoc] interested in "VirtualBox shared folder support
for FreeBSD guests"
To: waleed ziad <wela64waleed@gmail.com>
Cc: Bernhard Fr=C3=B6hlich <decke@freebsd.org>,
"freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>,
Oleksandr Dudinskyi <dudinskyj@gmail.com>, Daniel Lorch
<dlorch@gmail.com>


On Mon, Mar 10, 2014 at 19:47:53 +0200, waleed ziad wrote:
> Thanks a lot Mr.Bernhard Fr=C3=B6hlich for your care and reply i contacte=
d him .
>
> On Mon, Mar 10, 2014 at 2:44 PM, Bernhard Fr=C3=B6hlich <decke@freebsd.or=
g> wrote:
> > On Mon, Mar 10, 2014 at 4:31 AM, waleed ziad <wela64waleed@gmail.com> w=
rote:
> >> 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 alread=
y 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 =3D 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_ADDRES=
S
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


--=20
Bernhard Froehlich
http://www.bluelife.at/

--=20
Best
Junyuan



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