qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel]  about -enable-kvm options
@ 2014-08-01  3:15 Gareth
  2014-08-01  4:51 ` Jules Wang
  2014-08-01 20:47 ` Richard W.M. Jones
  0 siblings, 2 replies; 4+ messages in thread
From: Gareth @ 2014-08-01  3:15 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

Hi all

What does '-enable-kvm' option mean? I have heard two versions of answers:

a) guest OS would have /dev/kvm device and which could help vm in guest OS
(nested vm)
b) use /dev/kvm and intel-vt on host OS which could help vm run more fast
than pure emulator.

Thanks

-- 
Gareth

*Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball*
*OpenStack contributor, kun_huang@freenode*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*

[-- Attachment #2: Type: text/html, Size: 996 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] about -enable-kvm options
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Jules Wang @ 2014-08-01  4:51 UTC (permalink / raw)
  To: Gareth; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]



I choose b)




在2014年08月01 11时15分, "Gareth"<academicgareth@gmail.com>写道:


Hi all


What does '-enable-kvm' option mean? I have heard two versions of answers:


a) guest OS would have /dev/kvm device and which could help vm in guest OS (nested vm)
b) use /dev/kvm and intel-vt on host OS which could help vm run more fast than pure emulator.  



Thanks


--

Gareth


Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball
OpenStack contributor, kun_huang@freenode
My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me 
and I'll donate $1 or ¥1 to an open organization you specify.

[-- Attachment #2: Type: text/html, Size: 1500 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] about -enable-kvm options
  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
  2014-08-06  4:59   ` Gareth
  1 sibling, 1 reply; 4+ messages in thread
From: Richard W.M. Jones @ 2014-08-01 20:47 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] about -enable-kvm options
  2014-08-01 20:47 ` Richard W.M. Jones
@ 2014-08-06  4:59   ` Gareth
  0 siblings, 0 replies; 4+ messages in thread
From: Gareth @ 2014-08-06  4:59 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]

Thanks Richard :)


On Sat, Aug 2, 2014 at 4:47 AM, Richard W.M. Jones <rjones@redhat.com>
wrote:

> 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
>
>


-- 
Gareth

*Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball*
*OpenStack contributor, kun_huang@freenode*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*

[-- Attachment #2: Type: text/html, Size: 2550 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-06  4:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-08-06  4:59   ` Gareth

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).