From patchwork Wed Jun 19 10:41:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "pelzflorian (Florian Pelz)" X-Patchwork-Id: 14347 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3A7041710A; Wed, 19 Jun 2019 11:42:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 86DB517107 for ; Wed, 19 Jun 2019 11:42:36 +0100 (BST) Received: from localhost ([::1]:36758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdY30-0001zN-DX for patchwork@mira.cbaines.net; Wed, 19 Jun 2019 06:42:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59398) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdY2h-0001zE-3E for guix-patches@gnu.org; Wed, 19 Jun 2019 06:42:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdY2Y-000431-Jo for guix-patches@gnu.org; Wed, 19 Jun 2019 06:42:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdY2U-0003ya-VC for guix-patches@gnu.org; Wed, 19 Jun 2019 06:42:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hdY2U-0005Q9-Ok for guix-patches@gnu.org; Wed, 19 Jun 2019 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36277] [PATCH] doc: Recommend '-enable-kvm' for installing in a VM as well. Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 Jun 2019 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36277 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Meiyo Peng Received: via spool by 36277-submit@debbugs.gnu.org id=B36277.156094090220809 (code B ref 36277); Wed, 19 Jun 2019 10:42:02 +0000 Received: (at 36277) by debbugs.gnu.org; 19 Jun 2019 10:41:42 +0000 Received: from localhost ([127.0.0.1]:46075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdY2A-0005PZ-9Q for submit@debbugs.gnu.org; Wed, 19 Jun 2019 06:41:42 -0400 Received: from pelzflorian.de ([5.45.111.108]:41234 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdY27-0005PP-6C for 36277@debbugs.gnu.org; Wed, 19 Jun 2019 06:41:40 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 7600D36007F; Wed, 19 Jun 2019 12:41:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1560940897; bh=OWZMHGO2aVU2RfdARSX4jfDjGmeUY2j+rps/SGcnkIs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=V08HBbtenUaiPEmkW6sZFO3CJVL4f4YKju7Y+WteM89I/hPMmXZ0VNcGns2QBasOh RV/N4+lfzc57RBk37mXjz1j3sgdJ4KtEJt4Wy0b3Q24eZU42QPRVira8nb4KuRhlHu EmnXNZp6VGsPKx1Nbyfo2FcdbRUaS2HbSAKfpZAM= Date: Wed, 19 Jun 2019 12:41:37 +0200 From: "pelzflorian (Florian Pelz)" Message-ID: <20190619104137.r5jzmzqdjd6kdyn4@pelzflorian.localdomain> References: <20190618111633.ixzvf6iatssemtrb@pelzflorian.localdomain> <87wohip8cw.fsf@riseup.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87wohip8cw.fsf@riseup.net> User-Agent: NeoMutt/20180716 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 36277@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches On Wed, Jun 19, 2019 at 11:22:23AM +0800, Meiyo Peng wrote: > Hi Florian, > > Florian Pelz writes: > > > @example > > -qemu-system-x86_64 -m 1024 -smp 1 \ > > +qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \ > ... > > -The ordering of the drives matters. > > +The ordering of the drives matters. @code{-enable-kvm} is optional, but > > +significantly improves performance, @pxref{Running Guix in a VM}. > > "-enable-kvm" is deprecated. Please use "-accel kvm" instead. QEMU > will probably support "-enable-kvm" option forever but "-accel kvm" is > recommended. > > > Thank you Meiyo Peng! I cannot find an official deprecation, but -accel seems to be recommended in general. But I am unsure. I like -accel; it seems less KVM-specific, that is better. However, I cannot find -accel kvm in Debian Jessie’s manpage at https://manpages.debian.org/jessie/qemu-system-x86/qemu-system-x86_64.1.en.html and in a Debian Stretch VM it says: qemu-syems-x86_64: -accel: invalid option Maybe it is better to wait three more years until switching to -accel so instructions work on Debian (LTS)? If Guix wants to switch now though, see the attached patches. Regards, Florian From 0ffc2d9d31f481cccb5d6a8a5e17a6d836d0e09c Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Wed, 19 Jun 2019 11:19:09 +0200 Subject: [PATCH 1/2] Recommend '-accel kvm' instead of '-enable-kvm' option for QEMU in manual. Suggested by Meiyo Peng . * doc/guix.texi (Running Guix in a Virtual Machine): Change it. --- doc/guix.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 65c3b8a7f1..97620eb20c 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -25406,7 +25406,7 @@ vm-image} on x86_64 hardware: @example $ qemu-system-x86_64 \ -net user -net nic,model=virtio \ - -enable-kvm -m 512 \ + -accel kvm -m 512 \ -device virtio-blk,drive=myhd \ -drive if=none,file=/tmp/qemu-image,id=myhd @end example @@ -25429,7 +25429,7 @@ create a NIC, the boot will fail. Assuming your hardware platform is x86_64, you can get a list of available NIC models by running @command{qemu-system-x86_64 -net nic,model=help}. -@item -enable-kvm +@item -accel kvm If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster.