From patchwork Thu Dec 2 11:53:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 12694495 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D45AAC433F5 for ; Thu, 2 Dec 2021 11:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wZVujrRZMywwKmYYhxW/nVgfWC6dftfRKF5S/tBAulg=; b=BePTOeMYUEqG11 YXGuXJ6DeCh0dgCttk4tugiew1S/UhwYT3BHXjpypYyhKmw7DQH62/gZWXFa97lJt/4Q7IxaAzfcB QQ/hfC6zQpoHzQrCD6Fb+mbkbubTFuSQNokS8G4/0srfl/sX3AN7j9CNiv1Gir2EkHx7Vum9Jj1Tr aH8tDZnCPHYcjpy5aVaEhAYfbbCEM19Vmx+MZ1bvVz+Gj7kvqCDVR/GOcZXgJnkTPDmdQbtD1NbQk eHJ17nyEPULnv+Zsaz2/dJixmQMAFplzrKRZIEBkADapbiZfWVpOsaEWRfTZg5KlEpxZ9p8YD9y7g YZaFElGdTEyihC4QT3Qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mskf4-00C4fv-B2; Thu, 02 Dec 2021 11:54:02 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mskex-00C4dR-P1 for linux-arm-kernel@lists.infradead.org; Thu, 02 Dec 2021 11:53:57 +0000 Received: by mail-wr1-x435.google.com with SMTP id c4so59071144wrd.9 for ; Thu, 02 Dec 2021 03:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=assPRJZISp/N09x/XwLMYXECdxd+01DO7D0xsbG5ltw=; b=KOJZVynTFuG/6NOJXr2C4Vazs7n8HHWiJb78KKi6YLrt5Wi9b+schevcHXrG1rf73V RuHhI8pWw6nXqzZhTefRIjJSu5dcW/GT8BvyQhviuQHchvtniR+E9QqSQuYmy6RTYgPI lnNAb9VcYKBMBun9WuGm0pA8+rovBl0E5QL7CF3y68JGjie/63fYnCv/QcNJn1dma8aK BWvxRtwONYGuByLqp9txeW7NEJk4y32/6yFSPlQd6GefkczXizFNh0R4DaHPJQBx1XlH x5jBVrONLOn6RzTTlPvajcFVK/nw+ORyhx5S+QLv91Y6xfmYcoEc5kiWGXlPt3eq7S35 k4OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=assPRJZISp/N09x/XwLMYXECdxd+01DO7D0xsbG5ltw=; b=Yohehik3LoEWkGGlPzkA1eX5GpSaF4kGpcPNjmR/m53rWnBRDBUV9/UctqZfxRK84U NBbfSz3KTHmBM6sWotyUo8Ahtsr2/TZHQGKfvgwyYOXnkzJmv69GmC3Z3HIiS81du/P6 yV0SpN916A7CKCz+Elru5/C3LdkJXkbc40JVBkvJdGjKpDfejZsb59t2iUIBeGWk9xDv FieM6FgvpAEgCSk/JH6RE8YPUd4XnVwVxrYOHavSV5Tonw/3GYz3M+N8jOBQeHUWlPSX Xw4IE91l/ia7Xrjymg8EpInT2BkgZX/HMCpXv8vh8TJzpVhwIKpF7/vnlORvt4V2l+kk Suhg== X-Gm-Message-State: AOAM531WezV6LYtTh6g5Vyi4hGR079Kz01CFoFvJEHCohXw1fcfPklcm oL4MGhStiPZTq+mT12hL1wfLaXVpsP3uxA== X-Google-Smtp-Source: ABdhPJwwW+FHTijTO4l+Zd2NHkZo+99Xp3nRtXN0H2oqzfplC6cix6takcu1+C2dOWtuBhiGvbvR4g== X-Received: by 2002:adf:97c2:: with SMTP id t2mr14007936wrb.577.1638446034298; Thu, 02 Dec 2021 03:53:54 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f15sm2448073wmg.30.2021.12.02.03.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 03:53:53 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 72A0C1FF96; Thu, 2 Dec 2021 11:53:52 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: pbonzini@redhat.com, drjones@redhat.com, thuth@redhat.com Cc: kvm@vger.kernel.org, qemu-arm@nongnu.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@arm.com, maz@kernel.org, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-tests PATCH v9 0/9] MTTCG sanity tests for ARM Date: Thu, 2 Dec 2021 11:53:43 +0000 Message-Id: <20211202115352.951548-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211202_035355_870989_A305CF58 X-CRM114-Status: GOOD ( 12.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Not a great deal has changed from the last posting although I have dropped the additional unittests.cfg in favour of setting "nodefault" for the tests. Otherwise the clean-ups are mainly textual (removing printfs, random newlines and cleaning up comments). As usual the details are in the commits bellow the ---. I've also tweaked .git/config so get_maintainer.pl should ensure direct delivery of the patches ;-) Alex Bennée (9): docs: mention checkpatch in the README arm/flat.lds: don't drop debug during link Makefile: add GNU global tags support lib: add isaac prng library from CCAN arm/tlbflush-code: TLB flush during code execution arm/locking-tests: add comprehensive locking test arm/barrier-litmus-tests: add simple mp and sal litmus tests arm/run: use separate --accel form arm/tcg-test: some basic TCG exercising tests arm/run | 4 +- Makefile | 5 +- arm/Makefile.arm | 2 + arm/Makefile.arm64 | 2 + arm/Makefile.common | 6 +- lib/arm/asm/barrier.h | 19 ++ lib/arm64/asm/barrier.h | 50 +++++ lib/prng.h | 82 +++++++ lib/prng.c | 162 ++++++++++++++ arm/flat.lds | 1 - arm/tcg-test-asm.S | 171 +++++++++++++++ arm/tcg-test-asm64.S | 170 ++++++++++++++ arm/barrier-litmus-test.c | 450 ++++++++++++++++++++++++++++++++++++++ arm/locking-test.c | 322 +++++++++++++++++++++++++++ arm/spinlock-test.c | 87 -------- arm/tcg-test.c | 338 ++++++++++++++++++++++++++++ arm/tlbflush-code.c | 209 ++++++++++++++++++ arm/unittests.cfg | 170 ++++++++++++++ README.md | 3 + 19 files changed, 2161 insertions(+), 92 deletions(-) create mode 100644 lib/prng.h create mode 100644 lib/prng.c create mode 100644 arm/tcg-test-asm.S create mode 100644 arm/tcg-test-asm64.S create mode 100644 arm/barrier-litmus-test.c create mode 100644 arm/locking-test.c delete mode 100644 arm/spinlock-test.c create mode 100644 arm/tcg-test.c create mode 100644 arm/tlbflush-code.c