From patchwork Thu Feb 8 10:54:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13549606 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 7FEDCC48260 for ; Thu, 8 Feb 2024 10:54:53 +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=JGjsqOhitlalhptrEySlcktOCROkhe8vrkeOvSSPlns=; b=aergvQFkJRa6rZ GN0yQRMjnG+WjHrs1BXl5MNdtCKhRltJDadesAFH8P/cFuD38C2UpSF3vO9U4UEgoV3Oc/M/YP7oh Ah2lW2TXF4wV8dmDe7/96uphpgl1edc65+DUSOJf9MYhtX2+o2jTdb6VunWMQEOoXfRlFPnMFn16Q JIl2Hqb6kY7T8SmJGIrT6bdvJd87FRIsolOy4fqnrCom6jWmE5Sj0GeVfM3OWkzbc+NEhOm0gXGoU ZffJcIkohKavO1X18KN/fzu6J0SLz8p/RnsFWQpyt1Wgo1R/gUTfyg2h/kWsXS6sRo1rfmu89UcQC WRd7iJEBTD6bm3ia+bJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rY23G-0000000DS7B-1v69; Thu, 08 Feb 2024 10:54:42 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rY23E-0000000DS4s-0OF9 for linux-arm-kernel@lists.infradead.org; Thu, 08 Feb 2024 10:54:41 +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 8F6DC1FB; Thu, 8 Feb 2024 02:55:18 -0800 (PST) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 10AB03F762; Thu, 8 Feb 2024 02:54:34 -0800 (PST) From: Joey Gouly To: kvmarm@lists.linux.dev Cc: joey.gouly@arm.com, maz@kernel.org, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , James Morse , Suzuki K Poulose , Zenghui Yu Subject: [PATCH v1 0/2] small kern_hyp_va() cleanups Date: Thu, 8 Feb 2024 10:54:20 +0000 Message-Id: <20240208105422.3444159-1-joey.gouly@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-20240208_025440_217870_84086372 X-CRM114-Status: UNSURE ( 9.39 ) 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 Hello, I wanted to add some comments to __kern_hyp_va(), since I was recently trying to understand it, and I think it could be helpful for someone looking at it in the future. The second patch removes the assembly macro version, since it is unused. Maybe (out-of-tree) pkvm uses it or it's just worth keeping around in case someone needs it in the future. So if that patch isn't applied it's not too important. Thanks, Joey Joey Gouly (2): KVM: arm64: add comments to __kern_hyp_va KVM: arm64: removed unused kern_hyp_va asm macro arch/arm64/include/asm/kvm_mmu.h | 41 ++++++++++++-------------------- 1 file changed, 15 insertions(+), 26 deletions(-) Acked-by: Marc Zyngier