From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 14 17:47:07 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 DE9E6F0B; Fri, 14 Mar 2014 17:47:07 +0000 (UTC) Received: from FreeBSD.cs.nctu.edu.tw (FreeBSD.cs.nctu.edu.tw [140.113.17.209]) by mx1.freebsd.org (Postfix) with ESMTP id A7B1F9EA; Fri, 14 Mar 2014 17:47:07 +0000 (UTC) Received: by FreeBSD.cs.nctu.edu.tw (Postfix, from userid 1058) id 8959F218E; Sat, 15 Mar 2014 01:47:01 +0800 (CST) Date: Sat, 15 Mar 2014 01:47:01 +0800 From: Li-Wen Hsu To: waleed ziad Subject: Re: [GSoc] interested in "VirtualBox shared folder support for FreeBSD guests" Message-ID: <20140314174701.GA28976@FreeBSD.cs.nctu.edu.tw> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Cc: Daniel Lorch , "freebsd-emulation@freebsd.org" , 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: Fri, 14 Mar 2014 17:47:07 -0000 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 wrote: > > On Mon, Mar 10, 2014 at 4:31 AM, waleed ziad 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 http://lwhsu.org