From patchwork Wed Oct 2 09:59:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 15574 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 2DA8E1749F; Wed, 2 Oct 2019 11:02:21 +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 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 E660F1749D for ; Wed, 2 Oct 2019 11:02:20 +0100 (BST) Received: from localhost ([::1]:53176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFbSd-0005NU-Gt for patchwork@mira.cbaines.net; Wed, 02 Oct 2019 06:02:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51230) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFbQh-0003us-Kt for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFbQg-0000HC-6G for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:19 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFbQg-0000H2-1k for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:18 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFbQf-0000bJ-U1 for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:17 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v4 20/23] build: vm: Fix arm32 support. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Oct 2019 10:00: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 Cc: Mathieu Othacehe Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.15700104012033 (code B ref 36477); Wed, 02 Oct 2019 10:00:17 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:01 +0000 Received: from localhost ([127.0.0.1]:35492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFbQP-0000Wc-8e for submit@debbugs.gnu.org; Wed, 02 Oct 2019 06:00:01 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFbQF-0000Ue-Ik for 36477@debbugs.gnu.org; Wed, 02 Oct 2019 05:59:52 -0400 Received: by mail-wr1-f67.google.com with SMTP id w12so18904307wro.5 for <36477@debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:51 -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=eunw+BE1POGTlpEUjHEnI30eWh4037FKsWvm0c+d6yg=; b=JS7iozppw6WyVsPXtOatdzHiE4Ko89ubxwl/rBGIDUsN7AZ5B0ckZgyEEgz1Bf41ir omLBW9VbC/vwLrpnqxuQZ/lEax4eyjR5cnRXmkzRGj5qLRDZ+8A4vn9FOShUaCvAgc/N tgOxcCa4rU/eCNwDJ+1Yv/QMrewUPlf61PEKfIGw2yXl8neJzkd0i8JBqEejMSnysQgG hPDY4WW3rndCz8O0YAB2F8rh+tTnycspSGPVeNQi5w3bI8LIfhGHg/a+osYQ7w14KbPQ YXuJW7PBjeE2scQqN30FWTSDt/6RaOZQmYG/6a3jCCfvt92Z9eRRnDUmU4CEoPvEifhk cHyg== 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=eunw+BE1POGTlpEUjHEnI30eWh4037FKsWvm0c+d6yg=; b=H5tbByvVILV4VW52P8yX5PQSru6EB2ioG9cB3k5s+rEuhxkVrAL+W1fhGKYQW6rKOu qYDoKojvvUxIsFtkJZelVn6etM6kYJRM2HY+T35FlBE80KiqMimtzJVtzp751ikS7hIJ CRqzq0/+zt12FyWYXZQZbIW6UJ5zAwVZ7BpWsHxlLi4uPZ9MadCfFnWe85R84mPiz5qY zI/N61kQGsgiaojV5bz79p6AfQRKLp5lcs/lHsmv0J7KhTBj800DxM6wMNSt//0mkjAx SYkSycxSKaNKT4Z/dmErLocrQO7VR1UEEfhkSSBmE4YN8TidLq48zLh4E/AbWf+bbUYB 9N6w== X-Gm-Message-State: APjAAAWPQ1ArvzDa9f3dnAocL7vU+7qd8edKBcfhIKZCfuCIsizKev9b P65eHpzjnP3xqplaKDftQ95elLeh X-Google-Smtp-Source: APXvYqzTXoio/v8O4WwMDjniH4gxmYGm+vh3NjNsksDUEkr/CX99hJZlyIuxQesUXHmIClDr95S4Ng== X-Received: by 2002:a5d:6242:: with SMTP id m2mr1959451wrv.261.1570010385699; Wed, 02 Oct 2019 02:59:45 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283]) by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Oct 2019 02:59:44 -0700 (PDT) From: Mathieu Othacehe Date: Wed, 2 Oct 2019 11:59:01 +0200 Message-Id: <20191002095904.6325-21-m.othacehe@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191002095904.6325-1-m.othacehe@gmail.com> References: <20191002095904.6325-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: , 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.