From patchwork Wed Oct 11 19:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13417903 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 2B956CDB483 for ; Wed, 11 Oct 2023 19:58:39 +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=rsIBDDL5LKzooEE+OCh8aQn997vtSgsSiUc6c1J1ZMY=; b=BAr32U5p2NxibC CZJDDm6m/eorEQsDkEx76Joc0YJBwBjlKv+mKNTGO2Pc+gEO7C73A8VDzM4oBa6Pweun1a9nVdFeL 9P2H3ANLpuzQE8dQaXk0QBVrwANaFhHdc+CG8jQSoUSZB7o30WLXVyD+oJ+B8msAmS7yINWyaUDBO me5m6jQ0++KLVriav47Dc4gOdiicRwo9ujJupPqWT7EKH/WQ0GEhUGdI37Hp8u7h5lYHBLbJmT8BR InlqjWQnGvS96YAN4r7OXSLEcoCa9vtMuCD4iQGKWtuR/OVpYt3H5+Ho8ekZhTidjFU6YCflpH8nz EtZJxSGqUHNe4y/4TYCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqfLM-00Gae7-2P; Wed, 11 Oct 2023 19:58:08 +0000 Received: from out-204.mta1.migadu.com ([95.215.58.204]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqfLG-00GacL-2Z for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 19:58:06 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1697054278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NBdFJkgYJSOzXayzM8jpEgticEipqKrh87vuZZUVqWI=; b=XSVr3Iasililq6Jjf897ZcVr2TR3WCtF3BasDbHQAplqCTJ1uripBA2LHchI2JFxJT+oMa OSAkltHILlIHKi5+ll7X6VeJXzcQCgn6N1v+j61rkzdduSBRK6AooSaccrblDz25LKq/uU Zby2ksf7qO6a7XAzQgLmdkwVmyUnQpE= From: Oliver Upton To: kvm@vger.kernel.org Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Mark Brown , Jing Zhang , Zenghui Yu , Suzuki K Poulose , James Morse , Marc Zyngier , Paolo Bonzini , Adrian Hunter , Ian Rogers , Namhyung Kim , Jiri Olsa , Alexander Shishkin , Mark Rutland , Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Oliver Upton Subject: [PATCH v3 0/5] KVM: selftests: Add ID reg test, update headers Date: Wed, 11 Oct 2023 19:57:35 +0000 Message-ID: <20231011195740.3349631-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231011_125805_196936_A277C1E1 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. 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 v2: https://lore.kernel.org/kvmarm/20231010011023.2497088-1-oliver.upton@linux.dev/ v2 -> v3: - Use the kernel's script/data for generating the header instad of a copy (broonie) Jing Zhang (2): tools headers arm64: Update sysreg.h with kernel sources KVM: arm64: selftests: Test for setting ID register from usersapce Oliver Upton (3): tools: arm64: Add a Makefile for generating sysreg-defs.h perf build: Generate arm64's sysreg-defs.h and add to include path KVM: selftests: Generate sysreg-defs.h and add to include path tools/arch/arm64/include/.gitignore | 1 + tools/arch/arm64/include/asm/gpr-num.h | 26 + tools/arch/arm64/include/asm/sysreg.h | 839 ++++-------------- tools/arch/arm64/tools/Makefile | 38 + tools/perf/Makefile.perf | 15 +- tools/perf/util/Build | 2 +- tools/testing/selftests/kvm/Makefile | 24 +- .../selftests/kvm/aarch64/aarch32_id_regs.c | 4 +- .../selftests/kvm/aarch64/debug-exceptions.c | 12 +- .../selftests/kvm/aarch64/page_fault_test.c | 6 +- .../selftests/kvm/aarch64/set_id_regs.c | 479 ++++++++++ .../selftests/kvm/lib/aarch64/processor.c | 6 +- 12 files changed, 785 insertions(+), 667 deletions(-) create mode 100644 tools/arch/arm64/include/.gitignore create mode 100644 tools/arch/arm64/include/asm/gpr-num.h create mode 100644 tools/arch/arm64/tools/Makefile create mode 100644 tools/testing/selftests/kvm/aarch64/set_id_regs.c base-commit: dafa493dd01d5992f1cb70b08d1741c3ab99e04a Acked-by: Marc Zyngier