[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v7 2/5] xen: arm: smccc: add INVALID_PARAMETER error code


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Wed, 14 Jan 2026 18:29:48 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dUvvV+20T1UDiyfQPM2cyTTSiGchXAevlCVyA+kQh4I=; b=ikkSiEP4cdbIt+59H79vliqJD7BViH5Pd5FzGmRdqMdZiP7QXAUInte5guL+BAl+SbpZ51mWL62egjqCoGbx0tsg1wbrG11j8AwDV/zwQPbaueQgZ+/e7L12u57R2D3YcmlE/ngW7ffLhJzvGIOjP2w4lAFGsA+6yygeG0aqoYdnV/l17fWLeDlmvDJlfXVt7xaJlFay9Yga2PRTWEgryflfCfjegvtR4X80YJhurJWg23l82xlChy+m57djxHsgwLGXIghjn2gZN/SJRFZ9PEHYQCyP3MkpM5Jh6Vbj6r5UCV59sDqY3W9n8KTHhzJt0ceW6GFZhmy14lNxXtHO+A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Pa+7XcSUBIsYEt3gqbuG0PlTFH+fNYyH9TXCMphW3D2Xv+kaWQwms5UhT9lygqjoYeWyPwzBamGzhFbxb/O0U/bQUc7UDtY3xBWFvq3eGvBTQYPRKNxl6DxpmW/24N36wDOfPCM5RWZ7C+kNNTpCbzDsNntKdBaZmfb1JKd5aCEKfYHBM/8OrGDdEg/P4SgMB6NAJ+cP/nrl4sqmOi/e4fTcO9sV3dKEq7fAHjYr9kkBNNVw/VPKvmJ1FJGSH6tH2Hf5b+9KBIBcofez3bJYS92o+AjStxLEcO5AGO+6SGCvSYcGpfBE9JedvEzdw00QbXU88oQQOnWzaGDymaZ8Pw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Delivery-date: Wed, 14 Jan 2026 18:29:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHchYPDOaISZ8hXnEiYuxB1nnqaDQ==
  • Thread-topic: [PATCH v7 2/5] xen: arm: smccc: add INVALID_PARAMETER error code

According to the "7.1 Return Codes" section of DEN0028 [1]
INVALID_PARAMETER code (-3) is returned when one of the call
parameters has a non-supported value.
Adding this error code to the common smccc header file.

[1]: https://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6

Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev@xxxxxxxx>
---



 xen/arch/arm/include/asm/smccc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/arm/include/asm/smccc.h b/xen/arch/arm/include/asm/smccc.h
index a289c48b7f..dc6af94db1 100644
--- a/xen/arch/arm/include/asm/smccc.h
+++ b/xen/arch/arm/include/asm/smccc.h
@@ -381,6 +381,7 @@ void arm_smccc_1_2_smc(const struct arm_smccc_1_2_regs 
*args,
                        0x3FFF)
 
 /* SMCCC error codes */
+#define ARM_SMCCC_INVALID_PARAMETER     (-3)
 #define ARM_SMCCC_NOT_REQUIRED          (-2)
 #define ARM_SMCCC_ERR_UNKNOWN_FUNCTION  (-1)
 #define ARM_SMCCC_NOT_SUPPORTED         (-1)
-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.