Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1096800lqp; Fri, 22 Mar 2024 05:44:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiYq9rlA/ufIQnIeeeOJ1J1ZZqI/6UUx0p8MzqXKgkA/tSrFLInatJQyAvs0BJl9tWHnv4Gq8jqPXqARbvZ3ERmyVWTSB5nqo8Fp5wrQ== X-Google-Smtp-Source: AGHT+IGleop86EJSKdSYSC9OKfT2ubca/B9P1Co8rOBNKuVJAX8ne0s/kLVUMPsrVvJAVMboh7jr X-Received: by 2002:a05:6214:c49:b0:691:46ee:6abc with SMTP id r9-20020a0562140c4900b0069146ee6abcmr1701537qvj.3.1711111453198; Fri, 22 Mar 2024 05:44:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711111453; cv=pass; d=google.com; s=arc-20160816; b=hQZxKk6qWZwREdb5179R/LiTZOZLyfG9zXE6KKZB82HGRTA8k55chy0S5e523zMeUg UKYhKzUuFusWL6Ay1gDqQiBBMGGkCV3qLLgRBYNeEgSvpv77IR4126/QQZpefF2wHH10 mZyN+TAtEXDuRnU3ouqa2RuPWr+3l4045+WV2QBluw3Q8pO9De4KAjZz5sx6JMset0Ha Hb7LTHcPIEREFIhhnXJjO0ynods7zDTzcRqMuoNJe4N0/rhfdCZJddeyVW3HhkOCM1X6 qilusfeQH0T1nKx0PJae5mk5jhL7g9ztsQlHZdEHjzdedeeZHHFbg4NRRuLI8duj3CiZ /Q7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=TBPzH8uDG5g28i+V0dmYxrEXrjob8o+00KlgZjV6q1c=; fh=rbtUOsBx9ib/zpvQ3uNSucn9ELbCvkW3dDYQU0HoS40=; b=W4DbXgpiy/qGid1UBiLZ7P26Yx/9vrKjOobruYWPdNCOhI75Yi3ue/QwRRmIgb4QeU pYSQjKhZSSE5/T+qgPvCOp9b6EzBsN6g8J2AZ1XlYO1njUOtrCN4GZqxU0BkpdZK238K tYrvBbXV+eaWS8/b6uZH57jPEbWA1cEFvG/vefxZn9briRNOQEmiAlZg5EPE+tf1COib 1RalH7JoIcB++A9fX71SuwTXSdkXq8fjgeFTrkQQ7uJuXDCv9RIUOkIKatT/QLq92K2B lhkhLgVncKXkOeOP6w46xDQqgpgpj5JCU/fJQ0cPaGJa836qWWVmtx5VeBFUtIKSeLwg +MgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ugTkqFfb; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-111434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o3-20020ad45c83000000b00690c171f069si1932864qvh.525.2024.03.22.05.44.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 05:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ugTkqFfb; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-111434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B91321C2186C for ; Fri, 22 Mar 2024 12:44:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A30534437F; Fri, 22 Mar 2024 12:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ugTkqFfb" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F3A83FE28 for ; Fri, 22 Mar 2024 12:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711111444; cv=none; b=G2+yvsy/udrxP3PEzo8sS3cxgXDo9D04Sri0ewSK3czsPGJtUlNgp2enBifE0/N0DZKj0avZD88Un2RuX1Oc9YotHiPVQCAPcnyDO3r7MzZzfFhmo/oBp0Yj2ZMQT7q0/+X+IXtB5Y1Xy/9l9wXaT5tA0Mpt4XnNuUBu4rDXb9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711111444; c=relaxed/simple; bh=TFLtWqVtnfY3Ny77IqrCP4FTbQMx8MGubLMvGhIpAOw=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=MexFZ6NJWiMAc1ZWdU77CcqRmRBvs1IvuxiilyDSaLMT68pb0+RJPsVEBw//vaUOlNW3jeeKjJQ4UfUxslOkqDFkDSHUNx0pRO0XzsgeHThYU1NsworOfOFxMZGB/YG19o47LWrkfz/7ADXTCOhOHM1aU6SVE55aYA0lBVASdPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ugTkqFfb; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-60a0b18e52dso24351037b3.1 for ; Fri, 22 Mar 2024 05:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711111442; x=1711716242; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=TBPzH8uDG5g28i+V0dmYxrEXrjob8o+00KlgZjV6q1c=; b=ugTkqFfbmhPpE7gp9RJUedmEIeDqvcV2Q7/tu/YpqiB7O1OG6WBBkxvqjkHn3/NXYd vGx1zOn0Xal3gyFCY0/Dpi9RroyGM86GzZQyig+4vuSF2p1hf78g8u+hs6mVeFyxFn+u ciIFWdF8LpWHlV+WcBivsiZOPzEIob+0/TLh21xmFcwr4vQ+WVy7ZfWmZJru0pkv8JaG UNur140eY8FhTJejgJNy1QntAJQG2ToDOeC2N7w35vsEnYtbKdFhS1Uh9UhkRII70cCD UXibrCRNBr/pczwFGdaprozWqbGxHMCMOODDLPD3UHvXvrFXH/SiKQZEPRDazryVeEGv z5dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711111442; x=1711716242; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TBPzH8uDG5g28i+V0dmYxrEXrjob8o+00KlgZjV6q1c=; b=GcnpuKhQzMOVKo/MgBrrQ3MHnQ0+88PHxS88IuiZtgB0qojs/qz9E4i02NCN2LJyxH P4b9vxvS81fdyT5fNc6nd6lkMUc0ShCOcMfbMywfDdzRuk+15a+9TCW3ZbGtCvCuY9l6 TR3642ApvsNdhXWpMpRE1LlQ37xCYWmKnYmJUOWJQrJYC9T0ujAiLttwiXK6xVRTC3br 0YpFKIrW0HHSSaXf4qPTwO/j/s5ADxz7Jk1PTCsvLcnRT1dA0PqSQ3OfJgO1u7iAj8NL /QVuiechrBdOmnqSlerxvpvLHQnyeBX7PXmght+DeSbCK6OBhX+PkQt60ffjUw22Khmb 8xWg== X-Forwarded-Encrypted: i=1; AJvYcCXGZjLSeVPvsfJ7y8oWhYGq1zkRQ1HgknEG75XrCrNaVSQIN5ENc1NalUBAgjZtVGwf0eJl6G2LZ24zfB6oJ0WYihHC5FipS/IwemLZ X-Gm-Message-State: AOJu0YwOFWDQe3qwpE7945+Gd9s3Q6KBXtagwQjniH/kJwd2Mq3N6oHc vd4Kmc385wD68qOw5uDXOU00XJJLT5mz1ubmm4gvYuHEiAXZFiankvDqvxYVGNL7EEibpogt9/H rT28H936lBhw/3EzmHEObU3P9Fg== X-Received: from sebkvm.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:cd5]) (user=sebastianene job=sendgmr) by 2002:a81:4fc5:0:b0:610:dc1b:8e57 with SMTP id d188-20020a814fc5000000b00610dc1b8e57mr560266ywb.3.1711111442517; Fri, 22 Mar 2024 05:44:02 -0700 (PDT) Date: Fri, 22 Mar 2024 12:43:02 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.396.g6e790dbe36-goog Message-ID: <20240322124303.309423-1-sebastianene@google.com> Subject: [PATCH 1/2] KVM: arm64: Fix the identification range for the FF-A smcs 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, sebastianene@google.com, suzuki.poulose@arm.com, tabba@google.com, will@kernel.org, yuzenghui@huawei.com Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" The FF-A spec 1.2 reserves the following ranges for identifying FF-A calls: 0x84000060-0x840000FF: FF-A 32-bit calls 0xC4000060-0xC40000FF: FF-A 64-bit calls. Use the range identification according to the spec and allow calls that are currently out of the range(eg. FFA_MSG_SEND_DIRECT_REQ2) to be identified correctly. Signed-off-by: Sebastian Ene --- arch/arm64/kvm/hyp/include/nvhe/ffa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/include/nvhe/ffa.h b/arch/arm64/kvm/hyp/include/nvhe/ffa.h index d9fd5e6c7d3c..146e0aebfa1c 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/ffa.h +++ b/arch/arm64/kvm/hyp/include/nvhe/ffa.h @@ -9,7 +9,7 @@ #include #define FFA_MIN_FUNC_NUM 0x60 -#define FFA_MAX_FUNC_NUM 0x7F +#define FFA_MAX_FUNC_NUM 0xFF int hyp_ffa_init(void *pages); bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id); -- 2.44.0.396.g6e790dbe36-goog