From mboxrd@z Thu Jan 1 00:00:00 1970 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.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 6EB6AC5517A for ; Mon, 9 Nov 2020 21:47:50 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 96C0A21D7F for ; Mon, 9 Nov 2020 21:47:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="fuztUsKn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96C0A21D7F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id E5E7E4BA3D; Mon, 9 Nov 2020 16:47:48 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fhrKMvBSxZVu; Mon, 9 Nov 2020 16:47:47 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 5F7E14BA29; Mon, 9 Nov 2020 16:47:47 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id E050A4BA28 for ; Mon, 9 Nov 2020 16:47:45 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5CHa68fLuCNR for ; Mon, 9 Nov 2020 16:47:44 -0500 (EST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id C5CB24B47A for ; Mon, 9 Nov 2020 16:47:44 -0500 (EST) Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FC34206CB; Mon, 9 Nov 2020 21:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604958463; bh=fLsn8jMVnIW2C1S+T/0flKyelVZfEjX4Jj6ebm5Z7jo=; h=From:To:Cc:Subject:Date:From; b=fuztUsKnwt8ytQ95KU9Q7gQwIQl6ksShQSxKyKZLDmw53PUPntmPb8KN3MmXQCviF LqIukT+wuA/n+tYy90glgS7P+a3bTCTWT4mBzaRQSEY9tSwX/g3DpSVcg1tzzmGXSv OBrBQUSqqgYWTZUnIyLk5DWgK/+V604uIpEvDy1M= From: Will Deacon To: kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 0/9] Rework hyp vector handling Date: Mon, 9 Nov 2020 21:47:17 +0000 Message-Id: <20201109214726.15276-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Marc Zyngier X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu Hi folks, This is version two of the patches I previously posted here: https://lore.kernel.org/r/20201026155833.24847-1-will@kernel.org All I've done since then is rebase and retest against -rc3. Cheers, Will Cc: Marc Zyngier Cc: Quentin Perret --->8 Will Deacon (9): KVM: arm64: Remove redundant Spectre-v2 code from kvm_map_vector() KVM: arm64: Tidy up kvm_map_vector() KVM: arm64: Move kvm_get_hyp_vector() out of header file KVM: arm64: Make BP hardening globals static instead KVM: arm64: Move BP hardening helpers into spectre.h KVM: arm64: Re-jig logic when patching hardened hyp vectors KVM: arm64: Allocate hyp vectors statically arm64: spectre: Rename ARM64_HARDEN_EL2_VECTORS to ARM64_SPECTRE_V3A arm64: spectre: Consolidate spectre-v3a detection Documentation/arm64/memory.rst | 2 +- arch/arm64/include/asm/cpucaps.h | 2 +- arch/arm64/include/asm/kvm_asm.h | 5 -- arch/arm64/include/asm/kvm_mmu.h | 46 ----------------- arch/arm64/include/asm/mmu.h | 29 ----------- arch/arm64/include/asm/spectre.h | 63 +++++++++++++++++++++++ arch/arm64/kernel/cpu_errata.c | 19 +++---- arch/arm64/kernel/proton-pack.c | 84 ++++++++++++------------------ arch/arm64/kvm/arm.c | 87 ++++++++++++++++++++------------ arch/arm64/kvm/hyp/Makefile | 2 +- arch/arm64/kvm/hyp/hyp-entry.S | 72 ++++++++++++++------------ arch/arm64/kvm/hyp/smccc_wa.S | 32 ------------ arch/arm64/kvm/va_layout.c | 23 +-------- 13 files changed, 204 insertions(+), 262 deletions(-) delete mode 100644 arch/arm64/kvm/hyp/smccc_wa.S -- 2.29.2.222.g5d2a92d10f8-goog _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm