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

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


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Thu, 29 Jan 2026 14:16:54 +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=7Nk1CN+j4B/Mq/rCvZP0747CGWDJEwdX0Pe1Pu44Qbs=; b=y0qbVyVi/NADXLFvHT8nTB6wevQCkSH4H8Aa6/vw4gPU6/ouPM1MLDONm5g1By+XSp4+ByHWy7y8fXR6RNRtsFzHLL/tBnK/y8cetdJ/9oD2IfAWB7LexGdE90eNMij9ZG47pExiPnnSJV08W2nQdTJXiVZYjXAW4WcycT1CewE58cfenzsyAviVqyIBasEmzn6avffkW3Q13q6sLafVDDzbIOHVRymafaViwjV5vUJhA3sWFAvyiD2AWqPkNCiH1M0tTtbeChhy27xEAcO2poqSpmZboS6+i7PKPcTqYNiXPPovhHepYTsTenfZ9PgbnCSTA/MdqU7Ifd2mRYez0w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IJOLARJpayihsKsUXpI/JmsQeb5IaTpViX288NfF3Sv1MOh3XT2WnyXNOLTcm2o3Tpda/tQnpPow0ufIrwhMXhiY1lkLNJL+ejIp5Qvz8AN6vEO3j0rSM+90W/ZBnBkBgqyIm5f9xvSoiOg1+lcef5sT+Gesq6RJoU9fZtl9G47IvmkX7nr1sYlzXxJyybCkbwmAFL1F4G8rLyH14F3FOkFNdbLDDSYSw/LreoyhDzwvjiOk9rEXUTpwfpBqQ2NQkJnkN7JQxJY4OPWFWZPxCR+j1a34+TUobu7tbalci65u9TSTcOEBuPC80ubc3w/eRfSbSjBzOXxvwbO1p1gLlw==
  • 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: Thu, 29 Jan 2026 14:17:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHckSnrwskB9T/f0k+nAMu3X/hdCA==
  • Thread-topic: [PATCH v9 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 441b3ab65d..478444fb09 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®.