From patchwork Fri Sep 22 11:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristina Martsenko X-Patchwork-Id: 13395567 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 BCD7FCD4F49 for ; Fri, 22 Sep 2023 11:26:35 +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=dEoN9AWbHdeGI/s+5asnOihEAttGVK2C6BrznhEf1u4=; b=zVZSCtowvddfp6 Und6nfBTT/Fxec9A0RMge9dEMmfAWsc6xecEGaOZLyMH46hHTtSy7AzWV7V2W11MDAqBV1CVBxnIg Hs17fEEWGFyOqiG5WjjYYz9YhwuFOfvtcsljFfjwVLPYo90ETFz6W4oH2/b++SAOa2gM2O26Dz05Y GP5f8Ih6x+M2sbpjM5JMRVDiwcTO2JtzUB1+HAXqLZ8kF2RyQx6hhlSSlrIQBOBUyQKITfsr2Fo7w UovHWyx5P/oUKUoHZ/SHMn8xOgWDa4tXEEOM4TkSj1NvTbHGa7LRT40a7G+b0YmZESLsuG45M3IYh 0dyikkMrYDF8+bhT6iyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjeIT-008wtw-2e; Fri, 22 Sep 2023 11:26:09 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjeIQ-008wsz-2Z for linux-arm-kernel@lists.infradead.org; Fri, 22 Sep 2023 11:26:08 +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 A15D8DA7; Fri, 22 Sep 2023 04:26:39 -0700 (PDT) Received: from e126864.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A5D903F5A1; Fri, 22 Sep 2023 04:25:59 -0700 (PDT) From: Kristina Martsenko To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Vladimir Murzin , Colton Lewis , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] KVM: arm64: Support for Arm v8.8 memcpy instructions in KVM guests Date: Fri, 22 Sep 2023 12:25:06 +0100 Message-Id: <20230922112508.1774352-1-kristina.martsenko@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230922_042606_901009_C5CF1F0B X-CRM114-Status: UNSURE ( 8.95 ) 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 Hi, This is v2 of the series to allow using the new Arm memory copy instructions in KVM guests. See v1 for more information [1]. Changes in v2: - Dropped HCRX_EL2 vcpu field - Rebased onto v6.6-rc2 Thanks, Kristina [1] https://lore.kernel.org/kvmarm/20230915124840.474888-1-kristina.martsenko@arm.com/ Kristina Martsenko (2): KVM: arm64: Add handler for MOPS exceptions KVM: arm64: Expose MOPS instructions to guests arch/arm64/include/asm/kvm_arm.h | 4 +- arch/arm64/include/asm/traps.h | 54 ++++++++++++++++++- arch/arm64/kernel/traps.c | 48 +---------------- arch/arm64/kvm/hyp/include/hyp/switch.h | 17 ++++++ .../arm64/kvm/hyp/include/nvhe/fixed_config.h | 3 +- arch/arm64/kvm/hyp/nvhe/switch.c | 2 + arch/arm64/kvm/hyp/vhe/switch.c | 1 + arch/arm64/kvm/sys_regs.c | 1 - 8 files changed, 78 insertions(+), 52 deletions(-) base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70 Reviewed-by: Marc Zyngier