From patchwork Fri Oct 28 08:34:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13023223 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 A4EF5ECAAA1 for ; Fri, 28 Oct 2022 08:35:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbiJ1IfP (ORCPT ); Fri, 28 Oct 2022 04:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbiJ1IfO (ORCPT ); Fri, 28 Oct 2022 04:35:14 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D0257DC4 for ; Fri, 28 Oct 2022 01:35:11 -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=1666946110; 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=Yf+n15Bb2ai4QCnL88CYPPcwLq0iceY6iN9pF2k3P5Q=; b=j4kJJ3RLELiXfnfiOSev4HcPjbiLyo2ZYe9906cwpPEHi5GeHTEmxSnwfS96sVLJ7mjH1M UaQJZZS5mhInspdE4rPozTxnSUFZd4Se2DfO9BGIgRVW1UWkzvnbbQtjWa4twTwUAeFDEN JGF0EqGst0zc7IPKVcnxshyf3KI15Bo= From: Oliver Upton To: Marc Zyngier , James Morse , Alexandru Elisei Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Quentin Perret , kvmarm@lists.linux.dev, Will Deacon , Fuad Tabba , Vincent Donnefort , Oliver Upton Subject: [PATCH 0/2] KVM: arm64: pKVM memory transitions cleanup Date: Fri, 28 Oct 2022 08:34:46 +0000 Message-Id: <20221028083448.1998389-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 In order to help resolve my own bikeshedding on the outstanding pKVM patches [1], small deck of patches to polish up the existing memory transitions. Mainly: - Rejig the layout of pkvm_mem_transition - Stop using out pointers to get at the 'completer' addr - Use better-fitting terminology (source/target) to describe the addresses involved in a memory transition Applies to 6.1-rc2. Politely compile tested, and that's just about it. Oliver Upton (2): KVM: arm64: Clean out the odd handling of completer_addr KVM: arm64: Redefine pKVM memory transitions in terms of source/target arch/arm64/kvm/hyp/nvhe/mem_protect.c | 124 +++++++++++--------------- 1 file changed, 52 insertions(+), 72 deletions(-) base-commit: 247f34f7b80357943234f93f247a1ae6b6c3a740