linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Borislav Petkov <bp@alien8.de>,
	richard -rw- weinberger <richard.weinberger@gmail.com>,
	Christoph Hellwig <hch@infradead.org>,
	Dave Airlie <airlied@gmail.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	Pekka Enberg <penberg@kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Avi Kivity <avi@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [GIT PULL] Linux KVM tool for v3.7-rc0
Date: Sun, 21 Oct 2012 20:09:33 +0200	[thread overview]
Message-ID: <20121021180933.GA4465@gmail.com> (raw)
In-Reply-To: <20121021175422.GB240@x4>


* Markus Trippelsdorf <markus@trippelsdorf.de> wrote:

> On 2012.10.21 at 19:51 +0200, Ingo Molnar wrote:
> > 
> > * Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> > 
> > > On 2012.10.21 at 19:15 +0200, Borislav Petkov wrote:
> > > > On Sun, Oct 21, 2012 at 05:03:05PM +0200, Ingo Molnar wrote:
> > > > > The best way to compare them would be a script that gives exactly the
> > > > > same test environment that 'vm run' / 'vm sandbox' does out of box,
> > > > > but using qemu.
> > > > >
> > > > > If such a script is available then that would certainly be a useful
> > > > > testing option to kernel developers.
> > > > 
> > > > Right,
> > > > 
> > > > I gotta say, I've mucked around with qemu/kvm net options as a novice
> > > > user and haven't always been successfu. If you get host networking
> > > > straight away in lkvm then that's another clear point for tools/kvm.
> > > > 
> > > > Same holds true for copying data back and forth between host and guest.
> > > 
> > > I'm agnostic about lkvm, but the following command does all the above:
> > > 
> > > qemu-system-x86_64 -enable-kvm -net nic,vlan=0,model=virtio 
> > > -net user -fsdev 
> > > local,security_model=passthrough,id=root,path=/ -device 
> > > virtio-9p-pci,id=root,fsdev=root,mount_tag=/dev/root -m 512 
> > > -smp 2 -kernel /usr/src/linux/arch/x86/boot/bzImage -nographic 
> > > -append "init=/bin/zsh root=/dev/root console=ttyS0 
> > > kgdboc=ttyS0 rootflags=rw,trans=virtio rootfstype=9p ip=dhcp"
> > > 
> > > If you want your host root-fs to be mounted rw (to copy data
> > > back and forth) you need to run to above as root and add "rw"
> > > to the kernel options.
> > 
> > Why does it have to run as root? I run 'vm' unprivileged (other 
> > than /dev/kvm access).
> 
> From the qemu man page:
> 
>  security_model=security_model
> 
>   Specifies the security model to be used for this export 
> path.  Supported security models are "passthrough", "mapped- 
> xattr", "mapped-file" and "none". In "passthrough" security 
> model, files are stored using the same credentials as they are 
> created on the guest. This requires QEMU to run as root.

So I guess running it with 'none' can be used unprivileged?

Thanks,

	Ingo

  parent reply	other threads:[~2012-10-21 18:09 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 11:34 [GIT PULL] Linux KVM tool for v3.7-rc0 Pekka Enberg
2012-10-12 17:27 ` Christoph Hellwig
2012-10-18 10:03   ` Ingo Molnar
2012-10-18 10:31     ` Pekka Enberg
2012-10-16  2:41 ` Stephen Rothwell
2012-10-16 14:50   ` Linus Torvalds
2012-10-20  7:04     ` Stephen Rothwell
2012-10-20 18:14       ` Borislav Petkov
2012-10-21  3:07         ` Dave Airlie
2012-10-21  3:46           ` Yinghai Lu
2012-10-21 11:03           ` Christoph Hellwig
2012-10-21 12:59             ` Ingo Molnar
2012-10-21 14:02               ` richard -rw- weinberger
2012-10-21 15:03                 ` Ingo Molnar
2012-10-21 17:15                   ` Borislav Petkov
2012-10-21 17:40                     ` Markus Trippelsdorf
2012-10-21 17:51                       ` Ingo Molnar
2012-10-21 17:54                         ` Markus Trippelsdorf
2012-10-21 18:04                           ` Markus Trippelsdorf
2012-10-21 18:10                             ` Ingo Molnar
2012-10-22  9:26                               ` Avi Kivity
2012-10-21 18:09                           ` Ingo Molnar [this message]
2012-10-21 15:39                 ` Pekka Enberg
2012-10-22  9:24                   ` Avi Kivity
2012-10-22 10:16                     ` Gleb Natapov
2012-10-23  2:20                       ` Asias He
2012-10-31 15:05                         ` Gleb Natapov
2012-10-21 11:18           ` Borislav Petkov
2012-10-21 11:29             ` richard -rw- weinberger
2012-10-21 22:16               ` Theodore Ts'o
2012-11-14  5:24       ` Stephen Rothwell
2012-11-14  6:02         ` Theodore Ts'o

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=20121021180933.GA4465@gmail.com \
    --to=mingo@kernel.org \
    --cc=airlied@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=avi@redhat.com \
    --cc=bp@alien8.de \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus@trippelsdorf.de \
    --cc=penberg@kernel.org \
    --cc=richard.weinberger@gmail.com \
    --cc=sfr@canb.auug.org.au \
    --cc=torvalds@linux-foundation.org \
    /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;
as well as URLs for NNTP newsgroup(s).