All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <levinsasha928@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: mingo@elte.hu, asias.hejun@gmail.com, prasadjoshi124@gmail.com,
	gorcunov@gmail.com, kvm@vger.kernel.org,
	Eric Van Hensbergen <ericvh@gmail.com>,
	jvrao <jvrao@linux.vnet.ibm.com>
Subject: Re: [PATCH 2/2] kvm tools: Add virtio-9p
Date: Wed, 18 May 2011 13:35:31 +0300	[thread overview]
Message-ID: <1305714931.12150.76.camel@sasha> (raw)
In-Reply-To: <BANLkTimxUA5=n04sCjNjo_n_J329YTMd4g@mail.gmail.com>

On Wed, 2011-05-18 at 09:38 +0300, Pekka Enberg wrote:
> On Tue, May 17, 2011 at 9:35 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
> > Overview:
> > 9p allows for simple RPC based resource sharing over
> > different transports (in our case, virtio).
> >
> > 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 <dirname>'. 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 <local_dir> -oversion=9p2000
> > This will mount the 9p server to local_dir.
> 
> This is really cool, Sasha! I'd like to see host "/" mounted as
> "/host" automatically in the guest. If that's too radical, we could go
> for mounting $HOME. I guess it's pretty trivial to do on the
> hypervisor side but can we do that for unmodified guests (not
> necessarily unmodified guest kernels, though)?
> 
>                          Pekka

I'm not sure how to do the guest part automatically, it's just a simple
mount command - but I don't see how we can do it in a simple manner.

-- 

Sasha.


  reply	other threads:[~2011-05-18 10:35 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 18:35 [PATCH 1/2] kvm tools: Copy net/9p/9p.h Sasha Levin
2011-05-17 18:35 ` [PATCH 2/2] kvm tools: Add virtio-9p Sasha Levin
2011-05-17 18:40   ` Ingo Molnar
2011-05-17 19:08     ` Sasha Levin
2011-05-17 19:20       ` Ingo Molnar
2011-05-17 20:27       ` Sasha Levin
2011-05-18  1:18         ` Eric Van Hensbergen
2011-05-18  8:08           ` Ingo Molnar
2011-05-18  9:05           ` Sasha Levin
2011-05-20  1:10             ` Venkateswararao Jujjuri
2011-05-26 14:28             ` Venkateswararao Jujjuri
2011-05-26 14:36               ` Sasha Levin
2011-05-26 15:22                 ` Venkateswararao Jujjuri
2011-05-26 15:30                   ` Sasha Levin
2011-05-18 12:01         ` Sasha Levin
2011-05-18 12:06           ` Ingo Molnar
2011-05-18 12:23             ` Sasha Levin
2011-05-18  6:38   ` Pekka Enberg
2011-05-18 10:35     ` Sasha Levin [this message]
2011-05-18 10:38       ` Pekka Enberg
2011-05-18 10:47         ` Sasha Levin
2011-05-18 11:09           ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305714931.12150.76.camel@sasha \
    --to=levinsasha928@gmail.com \
    --cc=asias.hejun@gmail.com \
    --cc=ericvh@gmail.com \
    --cc=gorcunov@gmail.com \
    --cc=jvrao@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=penberg@kernel.org \
    --cc=prasadjoshi124@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.