From: "Richard W.M. Jones" <rjones@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] about -enable-kvm options
Date: Fri, 1 Aug 2014 21:47:05 +0100 [thread overview]
Message-ID: <20140801204705.GC14001@redhat.com> (raw)
In-Reply-To: <CAAhuP_8Y61XToPbU0-j4ZiaCBFipkq0P_+pNr0O1+Ho8OD5v3g@mail.gmail.com>
On Fri, Aug 01, 2014 at 11:15:29AM +0800, Gareth wrote:
> Hi all
>
> What does '-enable-kvm' option mean? I have heard two versions of answers:
It's a shortcut for:
$qemu -machine accel=kvm
> a) guest OS would have /dev/kvm device and which could help vm in guest OS
> (nested vm)
That's nested KVM, which is enabled as a module option in the kernel
module (on the host), eg:
# modprobe kvm_intel nested=1
On AMD it's enabled by default.
> b) use /dev/kvm and intel-vt on host OS which could help vm run more fast
> than pure emulator.
Nearly. It uses /dev/kvm on the host, which may or may not be
implemented using Intel VT, or a variety of other techniques.
You can also have fallbacks to software emulation (TCG):
$qemu -machine accel=kvm:tcg
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
next prev parent reply other threads:[~2014-08-01 20:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-01 3:15 [Qemu-devel] about -enable-kvm options Gareth
2014-08-01 4:51 ` Jules Wang
2014-08-01 20:47 ` Richard W.M. Jones [this message]
2014-08-06 4:59 ` Gareth
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=20140801204705.GC14001@redhat.com \
--to=rjones@redhat.com \
--cc=qemu-devel@nongnu.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 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.