Message ID | 1507650771-16631-2-git-send-email-volodymyr_babchuk@epam.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72B3F60216 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 10 Oct 2017 15:55:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61C8828676 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 10 Oct 2017 15:55:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56A6528683; Tue, 10 Oct 2017 15:55:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E9D6C28676 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 10 Oct 2017 15:55:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1e1wqJ-0002hE-LU; Tue, 10 Oct 2017 15:53:15 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <Volodymyr_Babchuk@epam.com>) id 1e1wqI-0002h8-Mn for xen-devel@lists.xen.org; Tue, 10 Oct 2017 15:53:14 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id 15/42-05537-9ECECD95; Tue, 10 Oct 2017 15:53:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSaUgUYRjHe2dm3VF2ZFwVH03TlkKK1gM7BJF M+hBbShREhpCjjbsbe8jMmvalrChdO7yo8CBvEys/uGZtW6SGH9TySBRFwxMyE8FWMlo7dnbU 7P30f/n9/88BD4nLf0kCSDbbxHIGRqdw8yA04ViMcn5xIimi6llMdN1yLRGHjnXZHNhJdE6iN aQas1Mkmt7ZFWnGint2YU5IDion85EHSdDXcDD3jEvykTuJ6GRoaTUjAcjpuxg8f2/DBCCn06 B95ZtU0G70fmiu7HdpH3o7jNiHXAGctiKwdrfhAvCmT8NiXa5LE/RuWHQ0uQmaolVQccvhKgr 0DhjrM7s87vRx6K2ZkYrNVFC9bMdEvxd0l84RgsZpgI75eVzM7oSpjgFXY6DvI5h4fJsQw6Hw xrG4bgqCrg8VhKgT4MWUXSoGqhC0lC2sf25IYe5Js0R07YO3c8W4CEqk0FQ7tx5XQWNZJxJ1B gxZWtdbDEig8WekqANhqTrPTQwXS+D6cD8uzpQCS3+EpQWQL4NV+yOJ+DFLYdDWjhWi0LIt25 Zt2bYKYU0olGe5SyynjAxL5bRqjUnPaHXKyIiDYXqW5xk1q2NS+bA0o74FOU9hm/O9RNbP8Z3 In8QUvlTBl4kkuWeq8cJlDcNrznOZOpbvRIEkqQDq+1cn8+JYNZudrtU572kDAylT+FBnBEzx GYye16pF1IOUZN7YpzVMThiMBjbAj3onmGjBpMk0bJbYuMqPKCjAm0LOoeSyDJbTa03/8wXkR yKFN9UgVJFpDabNTgvOITDnEL7priFMzD8U4Lxfy6jRZ40uVSXWTDyNzQqr8xw9ELXnoZ/2d/ sotyuLiDpywnL06uRqg2/pSJFFPtwaPI7fuTlZULI2FFs8ZI7OXT7UpVbm+R0GdeKpV40JxUX TyQ+CU0IUfW31V+xn66NeF1yctYItPIaqrPmB+xvLpz3uKeIaZsJT0nrSBuMVBK9hIvfiHM/8 BarY02OQAwAA X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-10.tower-27.messagelabs.com!1507650792!87809953!1 X-Originating-IP: [104.47.2.59] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 65279 invoked from network); 10 Oct 2017 15:53:12 -0000 Received: from mail-db5eur01on0059.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.59) by server-10.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 10 Oct 2017 15:53:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=EPAM.onmicrosoft.com; s=selector1-epam-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ErnEZkhSvMxH6vJHEeu0jh8SacYNTizS0/N2sVEd1zA=; b=Lis0NrsHp0v6Ec/SZv9B4k0KVTl7J3WcsAocgL9poiO6kOjg4DB92PMq/1+a4X4zuqJL71LNAUO10hspaiMBAdnsqda8h1uS8XYmAjz9epTO7w17Aq/91U+jPl67ikietOKmeDoxUIn64yFalDmwD98p4PIV/PZodUGzhCR6dIA= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by HE1PR0301MB2139.eurprd03.prod.outlook.com (2603:10a6:3:21::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 15:53:09 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Tue, 10 Oct 2017 18:53:04 +0300 From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> To: xen-devel@lists.xen.org Date: Tue, 10 Oct 2017 18:52:41 +0300 Message-Id: <1507650771-16631-2-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507650771-16631-1-git-send-email-volodymyr_babchuk@epam.com> References: <1507650771-16631-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: DB6PR1001CA0029.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::15) To HE1PR0301MB2139.eurprd03.prod.outlook.com (2603:10a6:3:21::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 438278a5-54c2-433d-d700-08d50ff7017f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR0301MB2139; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2139; 3:GXIyg8gJoo+X0wSRaHzpzleHG1f2PhSSKLZo1YgAn7pI5UbpCagY3uBFzcNIZrubOS0TfIlCF0wKGIphBqFKujuQ5bCdLPFD/rdB8AcuHdV0oLOAXW4tG66khsLxTvF55vH0zsF0ITTF2v98dtiG92ri/VG5MUZXD3peDvUfxo+jKWm6++LhIZ5GgXrTDnCHzmkaNpyWOPcO2vEm//kXVZnjbdpo8FYPSP4EFCSqcay7SdOSoX/EXXSRYD9OgcAF; 25:N5WqnGl7D1eL8p8E7f+L5aQ1J1x/WLPzT8z5ucaEO6dcMCD/c3TWYB7II/8/u+FU9D4rRHcAN5mY1PDpe32mfW2sXOR44381Yvji6xSRNJ1oN36rMpoTmsgVivxm2Xn04JdRTLY6I1DJheav9o+3GPJYANtXo4L6LYPeOxK7IQNBY4e7St8oQQX3jHX1YJf98dYMGvpxdWOlo6jgDnQMZoxT71IzOrd706rRauwrndu1478pcBZxEleeFPBS6CvPanPwCHRmt4yuneo09b3qceccFuwEsgKoRbnpHsL4/2MFTA6jLdQtBVWmirFqFG4NQ0DTBs45UR4NI06o/MjM8w==; 31:sCkU/r3jb5hPUxc0kNI0ZG3+I3SManeFJxEPxlY/isP/ySry+M7OUwwGcu2QWBTfgFYhff5pBaQn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WYmNdSxw== X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(4114951738403); X-Microsoft-Antispam-PRVS: <HE1PR0301MB2139D16B5145C348DC8AD845E6750@HE1PR0301MB2139.eurprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0301MB2139; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0301MB2139; X-Forefront-PRVS: 04569283F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(50226002)(305945005)(101416001)(7736002)(6916009)(48376002)(86362001)(6666003)(2950100002)(50986999)(76176999)(478600001)(2906002)(8936002)(122856001)(106356001)(33646002)(72206003)(47776003)(105586002)(50466002)(316002)(16586007)(5660300001)(2351001)(8676002)(54906003)(36756003)(2361001)(42186006)(68736007)(81156014)(8666007)(80792005)(8656003)(66066001)(97736004)(189998001)(53936002)(5003940100001)(4326008)(81166006)(6116002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0301MB2139; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0301MB2139; 23:mizMiKOhQ2kYGovPgxN9sVq9RzNrOobQOC73M4T?= =?us-ascii?Q?BYIsm4QxLtWBzQWY4b/L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545oQ8AqTgbtZLMZB2goylykozmuJ/OAIEtRbB/+pjc05N3imbJbJYFdPonshxhcMJZoBIb0mnRrZs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 15:53:09.1318 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0301MB2139 Cc: "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>, Julien Grall <julien.grall@arm.com>, Stefano Stabellini <sstabellini@kernel.org>, Volodymyr Babchuk <volodymyr_babchuk@epam.com> Subject: [Xen-devel] [PATCH v8 01/11] arm: traps: use only least 32 bits of fid in PSCI handler X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 701fdc8..0cff83e 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -1463,14 +1463,14 @@ static void do_debug_trap(struct cpu_user_regs *regs, unsigned int code) #endif /* helper function for checking arm mode 32/64 bit */ -static inline int psci_mode_check(struct domain *d, register_t fid) +static inline int psci_mode_check(struct domain *d, uint32_t fid) { return !( is_64bit_domain(d)^( (fid & PSCI_0_2_64BIT) >> 30 ) ); } static void do_trap_psci(struct cpu_user_regs *regs) { - register_t fid = PSCI_ARG(regs,0); + uint32_t fid = PSCI_ARG32(regs,0); /* preloading in case psci_mode_check fails */ PSCI_RESULT_REG(regs) = PSCI_INVALID_PARAMETERS;