From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDJjN-00054s-Jg for qemu-devel@nongnu.org; Fri, 01 Aug 2014 16:47:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDJjI-0003T1-Ux for qemu-devel@nongnu.org; Fri, 01 Aug 2014 16:47:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDJjI-0003Sx-NF for qemu-devel@nongnu.org; Fri, 01 Aug 2014 16:47:08 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s71Kl7Of022182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 1 Aug 2014 16:47:07 -0400 Received: from localhost (vpn1-6-113.ams2.redhat.com [10.36.6.113]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s71Kl6Et025741 for ; Fri, 1 Aug 2014 16:47:07 -0400 Date: Fri, 1 Aug 2014 21:47:05 +0100 From: "Richard W.M. Jones" Message-ID: <20140801204705.GC14001@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] about -enable-kvm options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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