From owner-svn-src-head@FreeBSD.ORG Mon Jun 8 05:17:36 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04349C37 for ; Mon, 8 Jun 2015 05:17:36 +0000 (UTC) (envelope-from bms@fastmail.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C60F216D3 for ; Mon, 8 Jun 2015 05:17:35 +0000 (UTC) (envelope-from bms@fastmail.net) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id F2D6220396 for ; Mon, 8 Jun 2015 01:17:34 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute2.internal (MEProxy); Mon, 08 Jun 2015 01:17:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.net; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=dAe1VV3QN8kvYkZ/2yb1mAeiwG4=; b=adVstu Tw7uCR30RpqpwvRzjUav6qPAzzrs/NgYgVCFs1kwIx/jatQR47bNfm4jF41wK0r7 jL2QRrL+iQOi79ip2FzipMyBqZSZTzfTkInv5ISr5rWfmly8TnihBEK85sGYSqIj VD3+v4YUN+VmmNRnvdnEe/M8E75qxT96wC+DM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=dAe1VV3QN8kvYkZ /2yb1mAeiwG4=; b=bjN6JLSOKYdoAJWno2Yl81xzyM5OI7hxmukn8JnCwabhwQh 7BZBHwKxImZLYuqnACJg/d1uhhh3j9V96vLgg8h4nOxafsXNLDLN5Ep3ltaDFEfm yOIaQD5AfDbFUiqMhzEyJdIhEP6Bjec5EYMnv3xLzGpeLH2A3eu6IDWP76TM= Received: by web6.nyi.internal (Postfix, from userid 99) id BEEB546E53; Mon, 8 Jun 2015 01:17:34 -0400 (EDT) Message-Id: <1433740654.3134532.289382577.2D3A01C5@webmail.messagingengine.com> X-Sasl-Enc: 81lMipL/vc83lXU81zEDWMcWupFYYXcYSmCReKTo4HSk 1433740654 From: Bruce Simpson To: Marcel Moolenaar Cc: Marcel Moolenaar , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, wca@FreeBSD.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-b076c697 In-Reply-To: References: <201506080323.t583NKWB098393@svn.freebsd.org> <1433739156.3126307.289375233.42FD30F0@webmail.messagingengine.com> Subject: Re: svn commit: r284146 - in head/tools/bus_space: . C Python Date: Mon, 08 Jun 2015 06:17:34 +0100 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2015 05:17:36 -0000 Marcel, (Cc: Will as he's expressed interest in this) No problem... still tied up here... On Mon, 8 Jun 2015, at 06:10, Marcel Moolenaar wrote: > > On Jun 7, 2015, at 9:52 PM, Bruce Simpson wrote: > > Nice! Is there a man page or documentation for this anywhere? >=20 > Not yet. I want to flesh it out further before documenting. > I=E2=80=99m not sure the API is stable enough yet. I=E2=80=99m still figu= re > things out as I go. > > Also: is it feasible to extend to build/attach to a VirtIO function? > > (May be PCI, not MMIO). >=20 > I think so. If there=E2=80=99s an easy environment for me to play > with, I can take a look. I think qemu would do right? If you load a FreeBSD VM into KVM, and turn on host-guest sharing, you'll see a VirtIO function for Plan 9's v9fs exposed on the PCI bus. This speaks a Linux-specific variant of the 9P protocol, 9P2000.L. FreeBSD currently does not understand how to talk to it, nor do our existing 9p ports. BHyve doesn't support host-guest sharing (yet). Note: I neither claim nor argue that this is the most efficient host-guest solution -- there are anecdotal reports that the claims IBM have made in published papers cannot be verified in production -- but it makes sense to re-use (and perhaps improve upon) what IBM have done here, for the sake of interop more than anything else. There is a FUSE-based implementation in Python, py9p, which might serve as the basis for a prototype. NetBSD have a newer alternative but it looks like more work to make it talk to the VirtIO function. --=20 BMS (sent via webmail)