From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH 2/2 V3] kvm tools: Add virtio-9p Date: Fri, 20 May 2011 16:36:05 +0300 Message-ID: <1305898565.3205.11.camel@lappy> References: <1305880629-10571-1-git-send-email-levinsasha928@gmail.com> <1305880629-10571-2-git-send-email-levinsasha928@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, kvm@vger.kernel.org To: Pekka Enberg Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:40020 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933714Ab1ETNgQ (ORCPT ); Fri, 20 May 2011 09:36:16 -0400 Received: by wya21 with SMTP id 21so2731105wya.19 for ; Fri, 20 May 2011 06:36:15 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Fri, 2011-05-20 at 16:30 +0300, Pekka Enberg wrote: > On Fri, 20 May 2011, Sasha Levin wrote: > > This is the implementation of (most of) the original > > 9p2000 protocol, without the .u or the .l extensions. > > > > How to use: > > 1. Make sure kernel is compiled with: > > CONFIG_NET_9P=y > > CONFIG_NET_9P_VIRTIO=y > > CONFIG_NET_9P_DEBUG=y (At least until code is stable) > > CONFIG_9P_FS=y > > > > 2. Start KVM with '--virtio-9p '. What happens now is that > > a virtio transport with the name 'kvm_9p' is created. The server side > > of the transport maps dirname to the root of the file system. > > > > 3. Within the guest, mount the fs: > > mount -t 9p -otrans=virtio kvm_9p -oversion=9p2000 > > This will mount the 9p server to local_dir. > > > > Signed-off-by: Sasha Levin > > This is super cool feature, Sasha! Applied! > > Would it be possible to have some test case for 'make check' that > mounts a host directory in the guest? It'd be really helpful in > making sure we don't break it. > > Other thing is to make the hypervisor and guest kernel work > together to automatically mount part of the host filesystem > in the guest. I'll do these two once I'm done monkeying with E820 later today :) Regarding the second one, as we discussed - actually mounting it on the guest will require a kernel patch, so it'll take some time. -- Sasha.