From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22633: Provide a kvm-less qemu / guix system vm Date: Sun, 21 Feb 2016 13:06:51 +0100 Message-ID: <87twl2xo6c.fsf@gnu.org> References: <87oabnqhv3.fsf@dustycloud.org> <20160211225009.GA4943@novena-choice-citizen.lan> <87oabm2tfa.fsf@gnu.org> <87ziv595xb.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXSo1-00005S-F6 for bug-guix@gnu.org; Sun, 21 Feb 2016 07:08:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXSny-00048D-9n for bug-guix@gnu.org; Sun, 21 Feb 2016 07:08:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:38744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXSny-000489-6D for bug-guix@gnu.org; Sun, 21 Feb 2016 07:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXSny-00089q-0E for bug-guix@gnu.org; Sun, 21 Feb 2016 07:08:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87ziv595xb.fsf@dustycloud.org> (Christopher Allan Webber's message of "Fri, 12 Feb 2016 09:47:44 -0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Christopher Allan Webber Cc: 22633@debbugs.gnu.org Christopher Allan Webber skribis: > I tried this: > > (operating-system > (kernel linux-libre-4.1) > (kernel-arguments '("modprobe.blacklist=3Dkvm-intel,kvm")) > ...) > > The generated Grub configuration looks right: > > menuentry "GNU with Linux-Libre 4.1.17 (alpha)" { > search --label --set guix > linux /gnu/store/k3l4g22vypwniy0k3f8xha9l8p1s716d-linux-libre-4.1.17/= bzImage --root=3Dguix --system=3D/gnu/store/flq2702dmj6ppqc4iix6xgp0q364yl3= l-system --load=3D/gnu/store/flq2702dmj6ppqc4iix6xgp0q364yl3l-system/boot m= odprobe.blacklist=3Dkvm-intel,kvm > initrd /gnu/store/flq2702dmj6ppqc4iix6xgp0q364yl3l-system/initrd > } > > Unfortunately, after rebooting into it: > > cwebber@oolong:~$ lsmod | grep kvm > kvm_intel 155648 0 > kvm 491520 1 kvm_intel > cwebber@oolong:~$ ls /dev/kvm > /dev/kvm > > Not sure why it didn't seem to do anything... Libkmod honors =E2=80=98modprobe.blacklist=E2=80=99 (in =E2=80=98kcmdline_p= arse_result=E2=80=99 in libkmod-config.c) and eudev passes KMOD_PROBE_APPLY_BLACKLIST unconditionally in udev-builtin-kmod.c (meaning it honors it too.) However, there=E2=80=99s a hyphen-vs-underscore issue, I think. Namely, the file is called =E2=80=98kvm-intel.ko=E2=80=99, but the normalized module na= me is =E2=80=98kvm_intel=E2=80=99, and this is what libkmod expects (commit 5c7dd= 5a changes our code to normalize module names similarly.) Could you try with =E2=80=9Cmodprobe.blacklist=3Dkvm_intel=E2=80=9D? TIA, Ludo=E2=80=99.