From patchwork Fri Feb 23 16:47:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 129474 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp817083lja; Fri, 23 Feb 2018 08:53:24 -0800 (PST) X-Google-Smtp-Source: AG47ELu4B3QZKHxhAjxNLYInvWlXMlILlA79HXkiOBV/ZZiSyp1x3OqyR1PTSh9EAVDO+rdFIF7l X-Received: by 10.107.148.142 with SMTP id w136mr2481408iod.65.1519404804397; Fri, 23 Feb 2018 08:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519404804; cv=none; d=google.com; s=arc-20160816; b=Y1vO7eKYek6T37xUrfFccTGs0fekO88G9idTzRuNmgueLJNceZ/BiAIuO0un4WSEfF /Vb1Nv/5/iJbFOnko3MIMWC7Q+yS/8KUfD3U5+a8JTBRB1akWFJ26NQej0gif365Wzp0 AT7zU247lFE2p/RxAnDZ/Zkahizg7qx4OZnwig2k1xuqvVXBNvFi4Ucz4VyCRjaoQvfw XFimDEPdPEL01e1MlEifC24SMXxFtcPdtiDFGuQl+2f16+JDslSnxsmUBI1bVB/PjdNK ZVrNXBSgI7CC2D+tbt7NMYVL14GviAYY4Ji1KNf2oozoPGm6Zx70oCaGoXdXSxLTFL+0 dP0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=5VXebN7Qo4Mpre4TEPXYzry/C3AiHIxfeeSYY4nyO2w=; b=Lqo0/orRKtSBM2PvyXnjyppoJPQmMcvsXW8wUwTH1zKXouE6p7vgHItlR9Kgk19cQM 5PjwuugwbLtaMjSvhslxBoFOU6cH4GKlu02Nd+45eg4wbTYHKK2YghCkoojAWDagd5QN jQ2ZoqeTrq7KR5mkIYnjOdpG52MYc4qKu4nlWvmvA4hmSN5wIMcWE/YfMUn1fxl/iY2e NzdkhLcnbaVr1Z2FrPsDkxSJKkA4nWyu2d/ZyQ8qjIm/IHPgqXc9NYhsIrvjy3wcjlaj itTnlQL1Pzw1kZDLwv4+buiye2ROvbY2Nql1On9Cuh9FZB6ELFePOk0dR1n9CyXslSlb I85Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id q191si1413359itc.46.2018.02.23.08.53.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 08:53:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epGZr-0005tq-Md; Fri, 23 Feb 2018 16:52:07 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epGZq-0005sj-VE for xen-devel@lists.xen.org; Fri, 23 Feb 2018 16:52:06 +0000 X-Inumbo-ID: 99150408-18b9-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 99150408-18b9-11e8-b9b1-635ca7ef6cff; Fri, 23 Feb 2018 16:50:05 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F11501529; Fri, 23 Feb 2018 08:48:21 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D8FEF3F25C; Fri, 23 Feb 2018 08:48:20 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 23 Feb 2018 16:47:46 +0000 Message-Id: <20180223164753.27311-13-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180223164753.27311-1-julien.grall@arm.com> References: <20180223164753.27311-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v4 12/19] fixup! xen/arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --- xen/arch/arm/arm64/bpi.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/arm64/bpi.S b/xen/arch/arm/arm64/bpi.S index 981fb83a88..b59e307b0f 100644 --- a/xen/arch/arm/arm64/bpi.S +++ b/xen/arch/arm/arm64/bpi.S @@ -85,8 +85,8 @@ ENTRY(__psci_hyp_bp_inval_end) ENTRY(__smccc_workaround_1_smc_start) sub sp, sp, #(8 * 4) - stp x2, x3, [sp, #(8 * 0)] stp x0, x1, [sp, #(8 * 2)] + stp x2, x3, [sp, #(8 * 0)] mov w0, #ARM_SMCCC_ARCH_WORKAROUND_1_FID smc #0 ldp x2, x3, [sp, #(8 * 0)]