From patchwork Mon Sep 2 15:33:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 15252 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 7FE4F1734D; Mon, 2 Sep 2019 16:37: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,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable 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 4306B17329 for ; Mon, 2 Sep 2019 16:37:40 +0100 (BST) Received: from localhost ([::1]:37658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oOh-0004wZ-7m for patchwork@mira.cbaines.net; Mon, 02 Sep 2019 11:37:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42880) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oMR-0002Rd-3O for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4oMP-0004vJ-Nx for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:18 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4oMP-0004uN-I4 for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4oMP-0006fm-Dp for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:17 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v3 44/48] build: vm: Fix arm32 support. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 Sep 2019 15:35:17 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 36477@debbugs.gnu.org Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.156743849525364 (code B ref 36477); Mon, 02 Sep 2019 15:35:17 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:55 +0000 Received: from localhost ([127.0.0.1]:58831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oM2-0006aw-U0 for submit@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:55 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLi-0006WU-5G for 36477@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:34 -0400 Received: by mail-wr1-f68.google.com with SMTP id l11so5631293wrx.5 for <36477@debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XT6qp/+wmXe73rnlmrAHfRJZYHBLVFXEAYydfmrh97E=; b=Sg0+eOvXkM/zwsMC58+Cs6/rZbYiMnmNaoqZjY0XHM9UAZFWGHZ/xHwX+eCCVdWWeZ +8fN/R4XjvXo2cDvxgmXN8Skrxx2JUbl0uLEo+ltF8PjUVeZ4j1oTloSuZD61k0xQV0v BJJwJ42nHblDcB5tanViUencStXdVnNtoTTpVcUhDrKNONwq23OIfzUcqlNdDGVNtX/C 12neVvRCI7VVHH5tstUzVGB3wFG5fIp0ntKAYPBjo0zrxXZIZChuyGMc7CWNY2lyqzXy UMjhZY/sz6reN/qCwrm/WxZ/1c5hlXt4CYOaGFhgecPr+QdfeOEv8/qQ8mclsmNp3Lce exIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XT6qp/+wmXe73rnlmrAHfRJZYHBLVFXEAYydfmrh97E=; b=TNH31gaY1LmcSFgjlZBCIBIyQeXL4j14Q6VrxafD54/n22OATPV/IYZy28zSbQkiWn YvO4lTXpglVnIZiPqv21J4B4o7Ny8pWBzuU6JFOn52cvnf7VAoZ0sR2qxl1rETzW1ik8 LFcyjzz4uowWkvloIw1DUphh+W9GoV0hP+YcgtAsE7J0SgPU9IzDzxSmBBF27hbv1TP2 QcUAljlD1cVOM3PZ2WLNAubxRF5XdjxdilhS9L28LKI85Fa9o2wK/gPnQFvUjCp9PhBM t1TAtOL/ukt+tHyxN6cocmQd8E+Es/1HRZBIefDunZwWQoLgShwSf7jxyvTdxApnBjDe RGcQ== X-Gm-Message-State: APjAAAVnjo4yz30BoTLcJYryBpDjJ/nnxtnisyMZBJ2cVLUqzEpOT67C dBqTzZEvf6vfKvPw1846+cmUMvJz X-Google-Smtp-Source: APXvYqy8iVZAMIYph/JiyvuanADzaDTAi6KGauSu4FYlfajl+HjpNo0n27jGEAs1eognMxX9O/cHug== X-Received: by 2002:adf:ef05:: with SMTP id e5mr7555731wro.127.1567438468456; Mon, 02 Sep 2019 08:34:28 -0700 (PDT) Received: from localhost.localdomain ([80.12.63.115]) by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 08:34:27 -0700 (PDT) From: Mathieu Othacehe Date: Mon, 2 Sep 2019 17:33:29 +0200 Message-Id: <20190902153333.11190-45-m.othacehe@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190902153333.11190-1-m.othacehe@gmail.com> References: <20190902153333.11190-1-m.othacehe@gmail.com> MIME-Version: 1.0 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: Mathieu Othacehe Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/build/vm.scm (load-in-linux-vm): Disable qemu highmem support on ARM32 systems. --- gnu/build/vm.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm index a5d9fefa62..b85398ed24 100644 --- a/gnu/build/vm.scm +++ b/gnu/build/vm.scm @@ -102,6 +102,14 @@ the #:references-graphs parameter of 'derivation'." ;; hardware limits imposed by other machines. ,@(if target-arm32? '("-M" "virt") '()) + ;; On ARM32, if the kernel is built without LPAE support, ECAM conflicts + ;; with VIRT_PCIE_MMIO causing PCI devices not to show up. Disable + ;; explicitely highmem to fix it. + ;; See: https://bugs.launchpad.net/qemu/+bug/1790975. + ,@(if target-arm32? + '("-machine" "highmem=off") + '()) + ;; Only enable kvm if we see /dev/kvm exists. This allows users without ;; hardware virtualization to still use these commands. KVM support is ;; still buggy on some ARM32 boards. Do not use it even if available.