From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 18 07:21:22 2014 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C10277C for ; Tue, 18 Mar 2014 07:21:22 +0000 (UTC) Received: from mail-oa0-x233.google.com (mail-oa0-x233.google.com [IPv6:2607:f8b0:4003:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DC6143D5 for ; Tue, 18 Mar 2014 07:21:21 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id i4so6849837oah.10 for ; Tue, 18 Mar 2014 00:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=AT3GRChv4lWEnvqpKqCwtarOlemqxwv5Mzb19DZs0uE=; b=X1Tg3sNuulF6AGjKofstp0OB/+DT2HtZUQXibcQ3232AmGJRQAHBNCT0j+XvPECzte XRhoTkLrRDIFkKZ0Xtq9mhlLoO8SquAYfAUhkE/T3+F/452S25dxebYDqoPa8ri/VVBb NfR0iAnR9BkmgI6XmPURS+zohs8UKoLaFGNEI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AT3GRChv4lWEnvqpKqCwtarOlemqxwv5Mzb19DZs0uE=; b=Jnk+YPh6Qui6sCC7OXsRezyvKzCqYQUHJ+IlPit5CqzfK45m8e6nSijvOnSoRTY5bM rbhTxMcKfGtfYWkWfEB1ujzCn95TUZqANbdCUgeEj93frNJYn6NXUWV1TUdSi0UUOI2N eogil+DYFm+k6LvfysZsQoQhs9/U259hFTmw8b/6yYd2Zy3cjfIp0G2U39m/H2PfGQWK DYzXjE+RLe0TNgTumWvVmn4lApuRfM2VcHXnwNUjH9maXOmaqOeoYGrLLjEJE6Da2vpe i959EbSBx3cdH4l24bXNK2ZsIJ5W13ypfnL+rO3CBPpPbfcqLpwHMAKdblu2QrJ9mcWw fwEw== X-Gm-Message-State: ALoCoQn0HxrO/Em18RDLH2/JPyhn+LgQv4Abrs/xr/lFdtFWF6s0tTEkr6GNTA+RjZT+2u7rFs7S MIME-Version: 1.0 X-Received: by 10.60.43.229 with SMTP id z5mr690806oel.50.1395127281136; Tue, 18 Mar 2014 00:21:21 -0700 (PDT) Sender: decke@bluelife.at Received: by 10.76.144.71 with HTTP; Tue, 18 Mar 2014 00:21:20 -0700 (PDT) X-Originating-IP: [80.123.233.199] In-Reply-To: <1997245942.116477.1395118211744.JavaMail.root@zem1.utdallas.edu> References: <1870099964.116294.1395116800415.JavaMail.root@zem1.utdallas.edu> <1997245942.116477.1395118211744.JavaMail.root@zem1.utdallas.edu> Date: Tue, 18 Mar 2014 08:21:20 +0100 X-Google-Sender-Auth: Jxiw1qMe1eZOkkI02Zer9T53ljM Message-ID: Subject: Re: about gsoc 2014 From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Junyuan Zeng Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Daniel Lorch , "freebsd-emulation@freebsd.org" , Li-Wen Hsu , Oleksandr Dudinskyi X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 07:21:22 -0000 On Tue, Mar 18, 2014 at 5:50 AM, Junyuan Zeng 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 Date: Fri, Mar 14, 2014 at 6:47 PM Subject: Re: [GSoc] interested in "VirtualBox shared folder support for FreeBSD guests" To: waleed ziad Cc: Bernhard Fr=F6hlich , "freebsd-emulation@freebsd.org" , Oleksandr Dudinskyi , Daniel Lorch On Mon, Mar 10, 2014 at 19:47:53 +0200, waleed ziad wrote: > Thanks a lot Mr.Bernhard Fr=F6hlich for your care and reply i contacted h= im . > > On Mon, Mar 10, 2014 at 2:44 PM, Bernhard Fr=F6hlich = wrote: > > On Mon, Mar 10, 2014 at 4:31 AM, waleed ziad 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 http://lwhsu.org --=20 Bernhard Froehlich http://www.bluelife.at/