From patchwork Tue Nov 10 14:42:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikos Nikoleris X-Patchwork-Id: 11894467 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E2C6C388F7 for ; Tue, 10 Nov 2020 14:42:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C29020678 for ; Tue, 10 Nov 2020 14:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731015AbgKJOm3 (ORCPT ); Tue, 10 Nov 2020 09:42:29 -0500 Received: from foss.arm.com ([217.140.110.172]:56816 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730059AbgKJOm2 (ORCPT ); Tue, 10 Nov 2020 09:42:28 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C6EA01063; Tue, 10 Nov 2020 06:42:27 -0800 (PST) Received: from camtx2.cambridge.arm.com (camtx2.cambridge.arm.com [10.1.7.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B9A9E3F718; Tue, 10 Nov 2020 06:42:26 -0800 (PST) From: Nikos Nikoleris To: kvm@vger.kernel.org Cc: mark.rutland@arm.com, jade.alglave@arm.com, luc.maranget@inria.fr, andre.przywara@arm.com, alexandru.elisei@arm.com, drjones@redhat.com Subject: [kvm-unit-tests PATCH v2 0/2] arm: MMU extentions to enable litmus7 Date: Tue, 10 Nov 2020 14:42:04 +0000 Message-Id: <20201110144207.90693-1-nikos.nikoleris@arm.com> X-Mailer: git-send-email 2.17.1 X-ARM-No-Footer: FoSSMail Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi all, litmus7 [1][2], a tool that we develop and use to test the memory model on hardware, is building on kvm-unit-tests to encapsulate full system tests and control address translation. This series extends the kvm-unit-tests arm MMU API and adds two memory attributes to MAIR_EL1 to make them available to the litmus tests. [1]: http://diy.inria.fr/doc/litmus.html [2]: https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/expanding-memory-model-tools-system-level-architecture v1: https://lore.kernel.org/kvm/20201102115311.103750-1-nikos.nikoleris@arm.com/T/ Changes in v2: - Add comment on break-before-make in get_mmu_pte() - Signed-off-by tag from all co-authors - Minor formatting changes Thanks, Nikos Luc Maranget (1): arm: Add mmu_get_pte() to the MMU API Nikos Nikoleris (1): arm: Add support for the DEVICE_nGRE and NORMAL_WT memory types lib/arm/asm/mmu-api.h | 1 + lib/arm64/asm/pgtable-hwdef.h | 2 ++ lib/arm/mmu.c | 32 +++++++++++++++++++++----------- arm/cstart64.S | 6 +++++- 4 files changed, 29 insertions(+), 12 deletions(-)