From patchwork Mon Jun 22 11:33:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Morse X-Patchwork-Id: 11618331 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B44E590 for ; Mon, 22 Jun 2020 16:03:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73CD720768 for ; Mon, 22 Jun 2020 16:03:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="C/WNcokR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73CD720768 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=aaCHIjtmtk+dAEOtM0nQu0oR76lPqTunQlk2tDV1vnI=; b=C/WNcokR0ahFCqgx0AH+nI1hj7 0OXkC/4xJK8px4BORNiEbwtWvtZsmfgIWgYwyug4qfbMgiQCqZBOJ5IzF6l1pD+Hm/m9php6H4A+k 85A9eMyZPs4q8m59XsOmk6jtTqPRAtyElfXtM2gJ611K339JMD0VsVNGqkZc17daxmmr+WvoAJY18 UXxVNqfTuysOCStEKhfcj56qtjXii14vmy+aBMSxPaSIuuJVqAKH0hNQ3CKHkXlXu8nCgXYz+D191 2uR2Xhu6X5hzkIfnQ4rL34mQTiJSj+grzFX5bO0vy2Iq6Pq2XPfVzZzJz7euumaYfxmS0pSg68hot YWUZ3rDQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnOq9-0001fZ-Iv; Mon, 22 Jun 2020 15:58:33 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnKhu-0002Bz-IW for linux-arm-kernel@lists.infradead.org; Mon, 22 Jun 2020 11:33:47 +0000 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 A2A201FB; Mon, 22 Jun 2020 04:33:35 -0700 (PDT) Received: from merodach.members.linode.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D05573F71E; Mon, 22 Jun 2020 04:33:34 -0700 (PDT) From: James Morse To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/5] KVM: arm64: Remove the target table Date: Mon, 22 Jun 2020 11:33:12 +0000 Message-Id: <20200622113317.20477-1-james.morse@arm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Julien Thierry , Suzuki K Poulose Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi guys, KVM's target_table indirection is a relic from 32bit where different CPUs had different reset values for ACTLR. All 64bit CPUs have the same behaviour here, but we support different targets, that all map to the same behaviour. This series removes the indirection and the fiddly handling of two tables. We still need to offer user-space the preferred target, and check it selects a supported target, but we no longer do anything with the information. This series based on v5.8-rc1, and can be retrieved from: git://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git kvm-arm64/kill_target_table/v1 Thanks, James Morse (5): KVM: arm64: Drop the target_table[] indirection KVM: arm64: Tolerate an empty target_table list KVM: arm64: Move ACTLR_EL1 emulation to the sys_reg_descs array KVM: arm64: Remove target_table from exit handlers KVM: arm64: Remove the target table arch/arm64/include/asm/kvm_coproc.h | 8 -- arch/arm64/kvm/Makefile | 2 +- arch/arm64/kvm/sys_regs.c | 177 +++++++++------------------ arch/arm64/kvm/sys_regs_generic_v8.c | 96 --------------- 4 files changed, 56 insertions(+), 227 deletions(-) delete mode 100644 arch/arm64/kvm/sys_regs_generic_v8.c