Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp824580lqs; Fri, 14 Jun 2024 06:51:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJPuwNPaNi6tvwI2QpIFPojwg3DCdxwb04+tmcPlROKnjy6MaS2GDjGHTgTeYhxJ/0ONwD2oO4eqxpNYoMHz56/6y21tfQz1i01EjnCw== X-Google-Smtp-Source: AGHT+IG3H6HQRkqCzXmn/djqn7kUiN6RoxsLl/T7Vs8lgoawSCXKnSSgfFMdUyu1x/NM2nzsHxDK X-Received: by 2002:a2e:b052:0:b0:2ec:174b:75bf with SMTP id 38308e7fff4ca-2ec174b77ccmr13070911fa.4.1718373115314; Fri, 14 Jun 2024 06:51:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718373115; cv=pass; d=google.com; s=arc-20160816; b=ETQiiEkvRgMrRz0oN1vz25zqRXzqsnXK7x//aF+eD0LpXruuq3RyjvNFX3fUWIF75r 08N+wKw81Af3mTA7mtfVWvQoAwRj+R7RpsTn1oDmrTqBhHeLCQJNnDC9yVFSvuq6a3+x jXirMCbktPmaPGwKKtkzLut187grr/iasta2wr5NMdJjSrWJaxl6GYI3JRo/gtKwNgKB jkaMKC9DFzzmTHiuQpv96PC9ZHIIM+/UHAxn5H4/8wmaeLg6ZTj2cCOqm/z1nHFgVq29 IxBe9YExhEm/E60VSK2E/kyK3s4P/uZsEPcLiyeDm12FXzB3dJ5WBcP9BJohcXe9AKWo WgKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=C+lWjjfYcLN5Z/zKjW6DYBE+A1UxbSDa15K3JJ3ocAE=; fh=JK1dxzDARWD18Rgzc17oIf5JmOGta445oqPFtgblxfI=; b=bvvYG1c8YBwvYmsf1uZYDoP+Z6eeSz4rCwVMZa7CCi2J3HV0004/0Y+NlQlyNd+HAn U7jiB3WWsjSm5OXwszXJJVjDruacXK11iHlktt//lVNgWKPfqauWalIEFWEVicpBBX7m KaZPhPQ9OGPaHQZSFs7J15QPhra2sulaVP8fe526t8FNKZavvfMOuVITSTlxfzZ1GIOa lpX16v3v6i8KmbOKQ6PLxNUYyeGig56WJB5Kstz0e+7kaBkyPmXwA1fjBbrVd03FDHfP 8bF+nbwq0YtxcIsQbQUpodavzpMSxZgoBA2yQJDrVQUHNXSn1Y1brH+8iXqZ9LaJo4wS 8ntA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Py5qaGQT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d6aabsi1759296a12.104.2024.06.14.06.51.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 06:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Py5qaGQT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 003831F28788 for ; Fri, 14 Jun 2024 13:51:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39719881E; Fri, 14 Jun 2024 13:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Py5qaGQT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D0B94C96; Fri, 14 Jun 2024 13:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718373107; cv=none; b=fOzl3vTAV8ouo0F/55uiebvTI40rDw2aYKa04M1s8a5xPujCgrXoacPYUbvCkzd9MTGpfvAOGxkwN9GqYyAJM5RF9Rzns0CmAyiDUjyHiAy3VrWmUALFALFB38wx4nNa47AovNv9MpGWQSUa0mooAvURmiJA8CaXlfJeU9v2cIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718373107; c=relaxed/simple; bh=IwA+nRpW3jBSAzmNE65SNenXWpawXrOy17dsMyzMFzs=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=TwTjb8b2H3w1ZUeB7hT0Xcur/WQceY0i5SkKht/rAz2SyRfi/J3Kv5/N2n5jWsbEulkMPRRlDxSuJxf5pInRijZoxyYJutOqngyA/cncThVxBABRQF99r5lSM0tN29PjaqVy2ApLHZZ3aAm6sycBP4512RmyHQtf1fYXu/e0U3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Py5qaGQT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE47DC2BD10; Fri, 14 Jun 2024 13:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718373106; bh=IwA+nRpW3jBSAzmNE65SNenXWpawXrOy17dsMyzMFzs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Py5qaGQT2Qdyws4LOn1wqQPEZyN7pTTtC/irde5GED1n020PSRGCR7otLCPlfA8Yj WkoMOyTZ3rCF2AcZrNppcskTwlHOtnoxx53r7arw/iAnT9xhX9uLPrzEwPpzZEwKLD zAk68eknRRZ9n/JcVNl5CMRCzYTVOwHuqrNZkQQ2mQgs2BY0CvOm2F1NVEv7TERsWP URuHA8XbGUEmpHXgRbj5PViOqqL+Ez08+ArjA5j/nmwzZAnj2R5TkY2liWNkaBl0WP cuzvLr7sgwXBlRQ5SsBZ4celz97PM/gW7KaLLCA1kF8rEEGUDmfG0ocWgwcKXXDnnj FndaD24rWK8iA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sI7LE-003vmz-RI; Fri, 14 Jun 2024 14:51:44 +0100 Date: Fri, 14 Jun 2024 14:51:44 +0100 Message-ID: <86msnnk4y7.wl-maz@kernel.org> From: Marc Zyngier To: Sebastian Ene Cc: catalin.marinas@arm.com, james.morse@arm.com, jean-philippe@linaro.org, oliver.upton@linux.dev, qperret@google.com, qwandor@google.com, sudeep.holla@arm.com, suzuki.poulose@arm.com, tabba@google.com, will@kernel.org, yuzenghui@huawei.com, lpieralisi@kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v3 0/4] KVM: arm64: pKVM host proxy FF-A fixes In-Reply-To: <20240613132035.1070360-1-sebastianene@google.com> References: <20240613132035.1070360-1-sebastianene@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: sebastianene@google.com, catalin.marinas@arm.com, james.morse@arm.com, jean-philippe@linaro.org, oliver.upton@linux.dev, qperret@google.com, qwandor@google.com, sudeep.holla@arm.com, suzuki.poulose@arm.com, tabba@google.com, will@kernel.org, yuzenghui@huawei.com, lpieralisi@kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 13 Jun 2024 14:20:31 +0100, Sebastian Ene wrote: > > Hello, > > > This series contains some small fixes for the host pKVM proxy code. I included > some of the patches that I already sent on the list as part of this series > to make it easier to keep track of them. > > I verified the functionality with OPTEE as a TEE-OS. > > Changelog: > > v2 -> v3: > > * small fixes on the commit messages > * applied the Review-by tags from Sudeep. Thank you Sudeep ! > > v1 -> v2: > > * applied the feedback received from Will on the FFA_VERSION patch: > The spec requires that no other calls to be issued prior to the FFA > version negotiation and the current change reflects this. After the > version negotiation phase is complete with Trustzone we will just > return the hypervisor version. > > * corrected some mistakes on the FFA_PARTITION_INFO_GET patch: > - don't trim the number of bytes copied from the hypervisor buffer > - introduce FFA_1_0_PARTITON_INFO_SZ definition > - simplify the logic when the input flag is specified > > * collected the Ack from Will and embbeded it in the commit - Thanks Will ! > > > v2: > https://lore.kernel.org/all/20240515172258.1680881-1-sebastianene@google.com/ > > v1: > > * previously posted FFA_PARTITION_INFO_GET patch here: > https://lore.kernel.org/kvmarm/20240411133249.2134696-1-sebastianene@google.com/ > -> minor changes from the previous version, look for the current > ffa_version in the host_buffer structure > > * previously posted "Fix the identification range for the FF-A smcs" here: > https://lore.kernel.org/kvmarm/20240322124303.309423-1-sebastianene@google.com/ > > Thank you, > Sebastian > > Sebastian Ene (4): > KVM: arm64: Trap FFA_VERSION host call in pKVM > KVM: arm64: Add support for FFA_PARTITION_INFO_GET > KVM: arm64: Update the identification range for the FF-A smcs > KVM: arm64: Use FF-A 1.1 with pKVM > > arch/arm64/kvm/hyp/include/nvhe/ffa.h | 2 +- > arch/arm64/kvm/hyp/nvhe/ffa.c | 180 +++++++++++++++++++++----- > include/linux/arm_ffa.h | 3 + > 3 files changed, 152 insertions(+), 33 deletions(-) Although these are labelled as fixes, I don't think they warrant being taken into 6.10. So assuming Oliver will take them into 6.11: Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.