From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH 2/2 V3] kvm tools: Add virtio-9p Date: Fri, 20 May 2011 16:30:32 +0300 (EEST) Message-ID: 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; format=flowed Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, kvm@vger.kernel.org To: Sasha Levin Return-path: Received: from filtteri1.pp.htv.fi ([213.243.153.184]:56582 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933693Ab1ETNae (ORCPT ); Fri, 20 May 2011 09:30:34 -0400 In-Reply-To: <1305880629-10571-2-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: 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. Pekka