From patchwork Thu Oct 5 18:03:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13410565 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27BF1E92723 for ; Thu, 5 Oct 2023 18:03:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231208AbjJESDy (ORCPT ); Thu, 5 Oct 2023 14:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbjJESDt (ORCPT ); Thu, 5 Oct 2023 14:03:49 -0400 Received: from out-207.mta1.migadu.com (out-207.mta1.migadu.com [95.215.58.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D31E90 for ; Thu, 5 Oct 2023 11:03:48 -0700 (PDT) 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=1696529026; 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=Tureg2m9XbvXMu5THHgF3eRFwznEfRjXAAD0FdkzkLo=; b=Uzgc9b0uCw1rPM/5/bI9rx+0ms7sEWeBrThOZwMJ1sOKo3tblQr7qosDLovH7xUPOpnhwd thuyI92s3Es6QzinXVu8YJTPEjeKMgAftMMgE/0pikHc9IWvRTn5G4ZPe62p6iPzedyqi4 Nm882lSOyb+zZJuqRkN5En9lZyC+mjg= From: Oliver Upton To: kvmarm@lists.linux.dev Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Brown , Jing Zhang , Oliver Upton Subject: [PATCH 0/2] tools: arm64: Sync sysreg.h with the kernel Date: Thu, 5 Oct 2023 18:03:22 +0000 Message-ID: <20231005180325.525236-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org KVM selftests needs to use the full set of sysreg definitions for an upcoming change [1]. We took a stab at copying the entire sysreg generation infrastructure into the tools directory, but that exploded and broke the build for perf, oops [2]. Short of better build infrastructure in tools for handling common prerequisite tasks, this series takes the lazy route and copies the generated output of the sysreg infra from the kernel. Plan is to apply this series as part of the 'writable' ID register series, replacing the broken change. [1]: https://lore.kernel.org/kvmarm/20231003230408.3405722-13-oliver.upton@linux.dev/ [2]: https://lore.kernel.org/linux-next/20231005123159.1b7dff0f@canb.auug.org.au/ Jing Zhang (1): tools: arm64: Sync sysreg.h with the kernel source Oliver Upton (1): tools: arm64: Add a copy of sysreg-defs.h generated from the kernel tools/arch/arm64/include/asm/gpr-num.h | 26 + tools/arch/arm64/include/asm/sysreg-defs.h | 6806 +++++++++++++++++ tools/arch/arm64/include/asm/sysreg.h | 839 +- .../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/lib/aarch64/processor.c | 6 +- 7 files changed, 7038 insertions(+), 661 deletions(-) create mode 100644 tools/arch/arm64/include/asm/gpr-num.h create mode 100644 tools/arch/arm64/include/asm/sysreg-defs.h Acked-by: Marc Zyngier