public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@kernel.org>
To: Sasha Levin <levinsasha928@gmail.com>
Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com,
	prasadjoshi124@gmail.com, kvm@vger.kernel.org
Subject: Re: [PATCH 2/2 V3] kvm tools: Add virtio-9p
Date: Fri, 20 May 2011 16:30:32 +0300 (EEST)	[thread overview]
Message-ID: <alpine.DEB.2.00.1105201628230.16011@tiger> (raw)
In-Reply-To: <1305880629-10571-2-git-send-email-levinsasha928@gmail.com>

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 <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.
>
> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>

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

  reply	other threads:[~2011-05-20 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20  8:37 [PATCH 1/2 V3] kvm tools: Copy net/9p/9p.h Sasha Levin
2011-05-20  8:37 ` [PATCH 2/2 V3] kvm tools: Add virtio-9p Sasha Levin
2011-05-20 13:30   ` Pekka Enberg [this message]
2011-05-20 13:36     ` Sasha Levin

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=alpine.DEB.2.00.1105201628230.16011@tiger \
    --to=penberg@kernel.org \
    --cc=asias.hejun@gmail.com \
    --cc=gorcunov@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=levinsasha928@gmail.com \
    --cc=mingo@elte.hu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox