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 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 2F9EEC25B78 for ; Wed, 15 May 2024 17:23:39 +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:Cc:To:From:Subject:Message-ID: Mime-Version:Date: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=EchnqRDCV5SMS7c1HVJ8I2da3aChl9id6MFWr06fCSY=; b=LYO ld3jATIoxS764idY4JFYLtaDY7rx1vlZlnqTOlM2nR5pTxAt9SvB6Pxsx3r/2oQQIAbIFelGD7tsW fen/AR6FPZtS8Pi+USeAm3/8w9NJ6IOikHbn21SqAD9NX6Rh6ZEDC6f7Dlivb8nQcTC5aRi9Pl0iQ 7p7kdiGbAvVis2Ne6InZfg+h6nxW+1Jz4Dm1b4SPS4j96K1hXLaPZmyMJwZgWqn0LCXnhNMnHfitI oMLAC61wfk5kLTU+T2mhpNm2MMhNp+/3L7bst/uqV6B1Eo7ocStBYOAIGVZpOEt1qkEVAaxpS8YmG iQWcvb+Y7zg6jUXf66i/lIm9s8ysZog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7ILV-00000002N1y-22bM; Wed, 15 May 2024 17:23:17 +0000 Received: from mail-wm1-x349.google.com ([2a00:1450:4864:20::349]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7ILP-00000002MtA-36P1 for linux-arm-kernel@lists.infradead.org; Wed, 15 May 2024 17:23:14 +0000 Received: by mail-wm1-x349.google.com with SMTP id 5b1f17b1804b1-420151eb455so16431245e9.1 for ; Wed, 15 May 2024 10:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715793788; x=1716398588; darn=lists.infradead.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=9RvZSZw4jxBqtRsNUm11hD2fyY6WsB4is9eFDyT77bE=; b=y3Df7oL1fPQVbnVw7yZU2uCMN5IGwSS4UrO8pmOhcJRjSPVZdbXsKp6z6AblM+K/6r HpMB3YAdPAyHAFdZ8ZKVERsFUq3IQX9WC4WIbKzlicEm6KwzWUQuwqRHFGtaNRwdhOYc aIUBFJQbZuTWhEmsYsZlzBO1AKYSUgg1Qtc40PlhQQXdb7bVD9socQMW15lithKYAGEv KRUhtW+fSjSAdZ7i8h4Gw8nwou3cMQ44Cu4OYiSsuYaYff9oOY5guLhjzqizHkGqIMGP +1o26Tkw1Yf3YAREf4eoaHF6a9XSayk8FlxVUiBTtIkP6ZZWzgfE5MTuVOghwtCwbrGu mcLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715793788; x=1716398588; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9RvZSZw4jxBqtRsNUm11hD2fyY6WsB4is9eFDyT77bE=; b=mA/pS+NzpPDiXvRjUyAnVwz8+sGA+rRsplBYu8PdUR6wzwRMFX9NMizZVJ9fK0KZNR HVDkm3PGixqnVAWs7vLWhI4vACe5AvOgB0OS5olrhXw3BwN0tJ79iv5Sb/z51Wcu+YgL LDeSPjAvLnxjKqgBxOJqYjdqKAJYVcjk/UnLsFTXXHaFCmECfQgj0ZjEWl2lZL5HDrLq +iMV+VLGNG/leqWh6koCZbLzhw5uIJBM0yOHtcZnC20aMMExgiQtB6SK3ui0DHwbSyFV pBCqwzqcoyvbLt28+KGoLPb4WAEQ7ZT8prJrZLD1CsWqQbsQCbT/lXbRN1tw103zl+Qs U9Yg== X-Forwarded-Encrypted: i=1; AJvYcCVDxXr9Wx2/aXGplWYCwJRgaM2ntU62McfzguvEoKuq6JhTQWJE1TS7BhWU+2jN8o06ogfdAPUlzdSJwbs2LIXvh/6bv39Ktg8K7+B4M5jXbiIxhxI= X-Gm-Message-State: AOJu0Yzg0lXxdMCFQKTyb20QI0F8MyYqN/e+qUvpNOSfNJmydt1sgzgo 5ORVx/z3V/mGxqZmGAb+93HmwYx1ieLlkYYR2fE4OHhQacTmvPv1L9uZcmtn/Kh6Yv1EqZDgOkC YNfBJPt5ZWlQpIZX4ERxC8LcOaw== X-Google-Smtp-Source: AGHT+IHARczV2e6GphBvu/GRT1dSaZeTKSmihgV/GKa3xOn2mh1vlMNsjz+sFoMVlqfAVVR0jb3CJk0/60m2L6gideM= X-Received: from sebkvm.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:cd5]) (user=sebastianene job=sendgmr) by 2002:a05:600c:3b86:b0:41f:9ffd:fd33 with SMTP id 5b1f17b1804b1-41fea52ef1fmr737175e9.0.1715793787741; Wed, 15 May 2024 10:23:07 -0700 (PDT) Date: Wed, 15 May 2024 17:22:54 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Message-ID: <20240515172258.1680881-1-sebastianene@google.com> Subject: [PATCH v2 0/4] KVM: arm64: pKVM host proxy FF-A fixes From: Sebastian Ene To: catalin.marinas@arm.com, james.morse@arm.com, jean-philippe@linaro.org, maz@kernel.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 Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Sebastian Ene X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240515_102312_091630_BCDAF177 X-CRM114-Status: GOOD ( 16.38 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 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 ! 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: Fix 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 | 183 +++++++++++++++++++++----- include/linux/arm_ffa.h | 3 + 3 files changed, 154 insertions(+), 34 deletions(-) -- 2.45.0.rc1.225.g2a3ae87e7f-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel