From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 611AF423A77 for ; Tue, 16 Jun 2026 09:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781603871; cv=none; b=Wwh4BTzdc7zH6ADMNSiMuqS97RjVG5JsJn3P2LY+3KSC85SvkldcTIKVlvR0jNMVJjhOUcwimZ3id+wEiHcL4i0dsyl7zqW+CdpYUGIoOHC6PjasdhfReUNGrWMxTC/ncoi5c2o2URU3HHGmXsMuNW3HLJSp0RitoDLlsP5ZS2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781603871; c=relaxed/simple; bh=PUb63S1DsjSv+XYUHC6kSPrVcco/9GIxqf0EmzY9fHo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F2QT0yY0aTKwSYv3ffRSa+/C3pyUeNkw5mXbzOmxlmC2cyMRbNg/RcqQzM0ec52XEa0psGd2TuxgTqzHIwlO14dqDdkY50Ofgv5f1SJ/GW+FZBWuu4m0YLkdkQbCrU3lvzC7S/i4DpTDcB2mK3Ekryh4u1F58yPLjFqXJVvMfmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=LIOsKpoW; arc=none smtp.client-ip=209.85.128.49 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=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LIOsKpoW" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-490bd64ca95so42125e9.0 for ; Tue, 16 Jun 2026 02:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781603869; x=1782208669; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ku/eYwMs4k9RlMYyzo8Mity0phIggrCvFlztJoPxNag=; b=LIOsKpoWaqqB731vi4bJFMhShKB049tpMb6Lcjrr2DnMKN6svE0vjExlP0yUFaHNY4 lQqHQSUbyumWinTQiab2spaLxgQ1ewvmhVhqgthh1GkwJ/zCcG6Du4m1iBJbA8Lrif4K 2kHkBdSbAN+j9a1N9iowZMMTGIgxKqtNGX9RpEr6jV4r8CuT+QsMojt9hZmMvJog5la/ VlF6P/6sgY9OWKg+U6v/0iE1OxuUfq4d0RaJUTchVRYTHqe2fc3elNtPiH2p6znSsfqF vlczynVNG4xhPr/OTQmos7zdZsR67dfpFAWeS2a1uJGdQEX4okp331r0/GQGLCT5oiKD pOOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781603869; x=1782208669; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ku/eYwMs4k9RlMYyzo8Mity0phIggrCvFlztJoPxNag=; b=WZaJ4gPat/LLsgJtQfsY8KDx6T8TkXuOxtDpcUBnwlw0Vhg6TPFwvdafUJnbfpWfrn z+4knCzmTDPoneV1HZ4M0w26x+7J/m+7rphH2RcNEIzl3SaIV6ELwNlSk8DJbDR/berp lxt8J7zsNDvMjfz+k6f2vtKqxafVpqfdFYg2BxxT31BPRo8bXJQbBLMR4GQmSoWz6cBI 8YYUZckLpcRRkrZy+61lsO0Jm47S1hjoGarSdZZqngHBkJuMGq2FHTRb2Q5GJBBfgFw3 OfmHyoT3Mz8PJPNsilYo9Sd3ejYgyc0McejFbb9NJDqXGB9CN2A0Mlz+boIoDqdAOs0z CjCg== X-Forwarded-Encrypted: i=1; AFNElJ+d9Gb/ZGsjXyurtUC9bOtk1VPLcJqlmYfwPKTldvCJVltfm7OdY9YYZpWnc34ctH84fAWdsr0C6J+wmzk=@vger.kernel.org X-Gm-Message-State: AOJu0Yxg5Wb2CZuRKr6xRZbXqznQiG3WCL1dLam0A7aEO7HZz5K6CD5P xjDmxhFoO+U+TQvOvVMFvSWDMsaBtoDtgA0RMdNYBkb+xVxTaV4rxkSVejz08SmRZg== X-Gm-Gg: Acq92OF/Q52Iwuq31CK/AFqau3Kgadcy3tXGEJVYFM6bQXpspBkHiBW13E+LFK+uSje auzFF6f72akw8aKeXxXJhL8hBMr2NCtl3udmVAjjkD30rnHB22fOGjQ5pyBm9XBhH8fwYQ15ba9 dR0Rc+Jc5R7MLt0fIaEO4JClQE8RNse7gYSITE5i8ALXx59+N8uemd4eSjK3gDUHkPcgB+9RgNz 0fesEjRaRMk2mH6M/QEmMuKgM6sUq1Glydr9jZPBL70NAcdSEbtd2+tLStsI2wBY5ZsJHOurH/L hVbtOZnTZn85LL5PwE5cZcOZwX/eVRqiSnwq3UGbpuTF0RUsuAmd9f8NqDMUYXwmRTzUUl+hKx4 GDs2Is7TJzgcVtiOKMx/6MXo7G8MFyCEeA3V6mLBxG3ISaOEXh2Fq/cqPp0lqU3w2K4JOk4rxcF yrBXph+TUimmZrchCx+vjtYgQrQj85OXn7aqiuJz3W+CYECbd3VsDgUPtnsTw3VKD7Q5w7mQ== X-Received: by 2002:a05:600c:68d9:b0:48f:d634:b18d with SMTP id 5b1f17b1804b1-4922ffc8997mr784545e9.8.1781603868080; Tue, 16 Jun 2026 02:57:48 -0700 (PDT) Received: from google.com (143.11.148.146.bc.googleusercontent.com. [146.148.11.143]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f2c473bsm47034584f8f.28.2026.06.16.02.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 02:57:47 -0700 (PDT) Date: Tue, 16 Jun 2026 09:57:43 +0000 From: Sebastian Ene To: Will Deacon Cc: Vincent Donnefort , catalin.marinas@arm.com, maz@kernel.org, oupton@kernel.org, joey.gouly@arm.com, korneld@google.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, android-kvm@google.com, mrigendra.chaubey@gmail.com, perlarsen@google.com, suzuki.poulose@arm.com, yuzenghui@huawei.com Subject: Re: [PATCH v2 0/7] KVM: arm64: Forward FFA_NOTIFICATION* calls to TrustZone Message-ID: References: <20260608165549.1479409-1-sebastianene@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jun 15, 2026 at 10:47:45AM +0100, Will Deacon wrote: > On Mon, Jun 15, 2026 at 07:43:55AM +0000, Sebastian Ene wrote: > > On Sun, Jun 14, 2026 at 10:29:34AM +0100, Will Deacon wrote: > > > Yes, that part now seems to be missing. > > > > I am a bit worried to apply for all of them the check from the relayer > > (ffa_check_unused_args_sbz) because of how it's written in the spec in > > (11.2 Reserved parameter convention). To be more specific, there is no > > mention of what the relayer is expected to do here (which is what hyp > > does). It says 2 things: > > 1. the caller (in this case the host driver) is expected to zero out > > unused args > > 2. the callee (Trustzone) ignores the values in these registers. > > > > If we enforce SBZ in the relayer but (1) doesn't comply with it, we will > > introduce a regression. I left it on purpose without enforcing > > ffa_check_unused_args_sbz for the others. > > I think that's ok -- if the caller isn't passing zeroes when it should, > then it's already on borrowed (no pun intended!) time and it will need > to be fixed. Ok, thanks for the confirmation. Will include this and then spin a new version of the patches. > > Will Thanks, Sebastian