Message ID | 1506024004-8615-3-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 D91E26020C for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 21 Sep 2017 20:02:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC084205A4 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 21 Sep 2017 20:02:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0D8F296AC; Thu, 21 Sep 2017 20:02:58 +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 46894205A4 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 21 Sep 2017 20:02:57 +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 1dv7eD-0007Od-Te; Thu, 21 Sep 2017 20:00:33 +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 1dv7eB-0007OF-Qj for xen-devel@lists.xen.org; Thu, 21 Sep 2017 20:00:31 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 8D/43-03093-F5A14C95; Thu, 21 Sep 2017 20:00:31 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSa0hTYRjHe8/O2Y62E2/T8HFpl4UokaYWEX3 qU2URWRBhdPFsntyhba5zZtmHIluGM7q6EMUyMs1KrGkOhxUphdjFLnazELyiqGUi2WUT29mZ Zu+n//v+nv/z/F94aIUmT6mluRwbJ1hYk04ZShpXotT4fdonaYmNFYvX3hgrJ9ejTU8bvUQq2 k3xFn1WTjpl/Nozhqy3lDm1Jx3UCeSkClAoTeJcBVRPtJAFKIRGeA/U3ncgCWjweQKqB0oDQI MNcD+olXg11JS9Ukk6HC+ED+PtAYMCexB4Wt0KCYThnXBquDxQROIYcDefJiTN4BTwDeUpJQ1 4EXS0OQL1IXgztJT3BoelgL3oRbB+PrQW9wXeFRigaXBQIXuXQlfT68BgwJcR9E/eCZpj4aF3 JFgUDU9fyqkBb4UrHb+Chj4C8mt+KeSLXQV911uCjhVQOm5XyqBQBblfRigZbIaqkmYkayuM3 nxJyPo1Bc6GLbKOAveARyWbL1GQ11ZKyZnS4duUl5BBgRq6yqtI+eJQwWhlKXUBxZbM+m3JrN 9eQ8RtFCdywmFOiE9KTtALfKbRZmZ5U3xS4poEMyeKbCZnYvVigiHLXIv8yzDHfxpQuyu1GUX ShG4Bc1XzJE0zT5+VcdTIisb9QraJE5tRFE3rgKmP9LP5ApfJ5RzgTf6NmsZAq3XhzAj4MSNa WbPIZ8roGVpFf+r+6CPo/I5OH6EhLVkWThvBnJU6YanUmG2ZaTS9nW9RtDaMQf5oGrWVE8y87 X8+hCJopAtjWqUuat5im5k35I9C+KMcvPdYimJj/yHtCeR+cPdIfe/P5Pjvhs985d7QMwZr55 QXly1pUGcku8l0k7F92P7b5brdoX+DE895orqFyW3rbXXnMjb8cP5x4N1pbRuKnht2xL3fVd3 jnDzp6u861Nhf+O54Q8mjgpS1cU3FnJA7ydRdrG6LWVaXcmzCF81XtDg3uuaqwraHaNfpSNHI Ji1XCCL7Fx9cw7qYAwAA X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-15.tower-21.messagelabs.com!1506024030!83877955!1 X-Originating-IP: [104.47.1.80] 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 44775 invoked from network); 21 Sep 2017 20:00:30 -0000 Received: from mail-ve1eur01on0080.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (104.47.1.80) by server-15.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Sep 2017 20:00:30 -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=XqPhZ3aiGQvsbttDaSy6nw7oTnVOIP37C38khc1vDmg=; b=efewsh0D1TocAcBFEiJUtfJOKAljc2JcIhcPCxzlZUDVYEt5TxmqWO2iA27INyPtWNoS4xTzwGyslRv9jvmNeESRDVln9uHxTkcNYWOJAMELKxg/pbbTp5UcEYWbH7Vw7eHwr7VPDrDlnp0b0CtXUxe3JMjYamkY5FGVlhacTu8= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by VI1PR0301MB2143.eurprd03.prod.outlook.com (2603:10a6:800:26::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 21 Sep 2017 20:00:27 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 21 Sep 2017 23:00:22 +0300 From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> To: xen-devel@lists.xen.org Date: Thu, 21 Sep 2017 22:59:56 +0300 Message-Id: <1506024004-8615-3-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506024004-8615-1-git-send-email-volodymyr_babchuk@epam.com> References: <1506024004-8615-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: HE1PR09CA0074.eurprd09.prod.outlook.com (2603:10a6:7:3d::18) To VI1PR0301MB2143.eurprd03.prod.outlook.com (2603:10a6:800:26::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bca87376-304e-4c65-470a-08d5012b67d8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR0301MB2143; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2143; 3:2CzP+90Y0e/lmLlbWhmFdggVeLuvSexnPCbWyb82I2KPh4ypRZmSyutVtOedwMbCWLHctaHHmjomTyWiPiAEEpwlCb67qv9yp94ZXuDU7ajx6RaJcoiyRKk6D14MrDvZXpOO9ozOZBZpK1MIQbi/cL9aERcpo3MdQ4D/o83SRQaU50kqZRpjEGcY84el0l1aPTUAoKnPxRZjXhgatUdtElpqovSKORmuMB58iKvhPAjzO1nmx4rKja38VvJv7hAB; 25:WhBnbnzi4QYp89KTA22i3WvcmTQr8Kr/BS7aGeD7zyA+SkGLnfggyPkbcLnVp7OwR25GdVkwFWxNl45ZDcVaA+6B2P2WXau/nYr98j4p6Y+KOXejvPvG0kO0d3m+yz5D+zjg4/eyVwTr8BA9fuuYIQ8v4uQx8EubWE7v2UnDpiG+SbI5JkwOZuv/uKrMg9A7E/54tS9MKAar9P/5MqCxfQp+eS1RmCgwmoIWggtOQt9EleZk5IURmVKMsd62O7/nDyf5iDwfa5VMGn5CoQ8c2TySztlPUCtVp7Rv8cY38If6u+Z3z+9qxjGrTmUOMAksb2oE84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Nm52lnje6C9wVfRK0wsjSCAV6E5CS/LJ3yfM9LtztYB/uTJYPVMmQvSXX5JOQ0ecqVghR365bZFC9h0+6QB79Q5kwWMoIA== X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(4114951738403); X-Microsoft-Antispam-PRVS: <VI1PR0301MB214339D9D334EF88D86B4434E6660@VI1PR0301MB2143.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)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0301MB2143; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0301MB2143; X-Forefront-PRVS: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(6916009)(42186006)(81166006)(7736002)(66066001)(316002)(72206003)(122856001)(6666003)(54906003)(478600001)(305945005)(5660300001)(97736004)(36756003)(33646002)(86362001)(50466002)(16586007)(8656003)(47776003)(6116002)(3846002)(2950100002)(101416001)(5003940100001)(2906002)(80792005)(50986999)(53936002)(76176999)(8676002)(2351001)(8666007)(8936002)(50226002)(68736007)(48376002)(189998001)(81156014)(105586002)(106356001)(2361001)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0301MB2143; 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; VI1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TCV8KavxqeS63fb33J2ilGZdlNAN0GqWencdgvi+e+EsDc4AZxvH9JrezYZjKC5i7/It7NIyOaKU199zUnxjGZPoIy2qUL9TlpSWUQXvPklmW4nFdkZ1mmgemm87i0vr3d46i52u8VwYP6KG7qUXAUoyyszZrEQwKhBg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 20:00:27.3054 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0301MB2143 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 v6 02/10] arm: traps: check if SMC was conditional before handling it 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 dab93d7..431dff9 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -2178,6 +2178,12 @@ static void do_trap_smc(struct cpu_user_regs *regs, const union hsr hsr) { int rc = 0; + if ( !check_conditional_instr(regs, hsr) ) + { + advance_pc(regs, hsr); + return; + } + if ( current->domain->arch.monitor.privileged_call_enabled ) rc = monitor_smc();