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

[PATCH v10 2/6] xen: arm: smccc: add INVALID_PARAMETER error code


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Fri, 13 Feb 2026 11:37:04 +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=Y5avRrt0HgX41VyW3Dy5s80lMAG9nmJC/5cIeplF5HsvRNgEE/GbXuC69iJ+StR9ndzg/XNdlCEVo4h9fCgAg4NBVV2fR5/CqbpCtjftOgwGCKCyYDEC+JdzD6cMoKCL2HCxObZN8LpFzieU/YnuWWP3JA0vY5jzqj+1szdDCFBJZeRhBgckRiBVy5p6kdIpuo1QQ5KjePSdjWNetmUyYbYkRdAXAtWtNYEV+XVdb8tZV4bU8oCWKPuyGSJ78nYYUn7tXB+maQau1v1u9bi+qwnhD9D6xvKdteU+cYplGnlc122uhnymW2Ysc9EQUMvT8sE4gdGDjMclygBk6Nmz2A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H+sb+QlIoFGZZgMUxHr9efipNWjZDLA+5LdXXCUg6mCvcjiCGb/qHJSXiIApY0/pWQqa3m1nkKm4zSt3KiRoCrzHHYfMKAQeZR7JU48cwcaTDZVo9ZfY945jAt+WARv/WtJeo/PB+BnRBoPbyZIX7N91lmqQMVE2fDuRbdSEMhbYoT/DYVkZNbbOy8nEJ2YP1br1HxeQVyNNDIEDJ24+4O0p5PL6JsHujT7Z9s4XI7BPSYNY7Dg85xkn39juRbwxAt00HhEFlcMCeBoFrStiKwlll96wvVvKgrLwdFWBtSYsDzCQS918JTnreHeKJZqunkhaTHFVU9TdU1I784IzBw==
  • 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: Fri, 13 Feb 2026 11:37:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcnN0ThbUhqTNjT0mv3PupYnT1Yw==
  • Thread-topic: [PATCH v10 2/6] 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®.