Message ID | 20160927180558.14699-10-christoffer.dall@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 22C0360757 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 27 Sep 2016 18:11:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16D792920B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 27 Sep 2016 18:11:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B8672926D; Tue, 27 Sep 2016 18:11:10 +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=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9152B2920B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 27 Sep 2016 18:11:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bowoz-0007pV-QV; Tue, 27 Sep 2016 18:09:37 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bowlk-0005PO-0p for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2016 18:06:19 +0000 Received: by mail-wm0-x232.google.com with SMTP id l132so26933849wmf.1 for <linux-arm-kernel@lists.infradead.org>; Tue, 27 Sep 2016 11:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AS+V7G9sfqtbDCXH73AN/6+vLvWk8nc7YsvTFtRBh8U=; b=dlfTrMLuns8uTWBRXN6CeSeNGJD5tVXXuJA8qKAIDXHAHH1ANeXFXsdc+qWxqi/Lt4 t2HOEHHaWSKDckO+/aLtDQhEdKA/wnf3ZS3CyWdQTtnLVSrwGSMBlKglDP6e2Yc2eKOS Q9CX4scR8T+ZZZ7lNRIDu4K4kRISZp3jMHItA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AS+V7G9sfqtbDCXH73AN/6+vLvWk8nc7YsvTFtRBh8U=; b=lvDkx7OqAEOzgtiWHq+/D89llbGaJGFy8U0n5XlSFxPaaVzUrlH4oFdZDqQK5mEERs BepOHM34qGzFVYU+HMDfJYK3H879qiz7XO4W5iidqkbHfHmSRyKRDz6YB0qSRo6QnLYV YBQE6WrgzpFE6xb+6pbE4pBwme0/v0AHvNfUmKV2X/VjISwZsHl5Ct6ob1oEt2WAm/9X fu33DafDIgMfkj6G3adi3BifV3VhNPFKlD70g1jE4XyWC3KlQz5kBzSQLmzV2hmOSJ7w K6a1l9SZqKoR3u0QFjL0F5nPbDXD1G3fkJjAvQ7G6ZJ9kgX4if/hDeI+4F2yE6pOvF/4 tAvA== X-Gm-Message-State: AA6/9RlyNs75y0mBKvu6xYAZwnHPEYl+h/oNP8TDpw1jUSHSLqkLp8vTRpmu+gkMyCMUaS14 X-Received: by 10.28.141.133 with SMTP id p127mr4308663wmd.119.1474999555031; Tue, 27 Sep 2016 11:05:55 -0700 (PDT) Received: from localhost.localdomain ([94.18.191.146]) by smtp.gmail.com with ESMTPSA id k2sm17932539wmg.23.2016.09.27.11.05.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Sep 2016 11:05:54 -0700 (PDT) From: Christoffer Dall <christoffer.dall@linaro.org> To: Paolo Bonzini <pbonzini@redhat.com>, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= <rkrcmar@redhat.com> Subject: [PULL 09/50] arm64: KVM: VHE: reset PSTATE.PAN on entry to EL2 Date: Tue, 27 Sep 2016 20:05:17 +0200 Message-Id: <20160927180558.14699-10-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160927180558.14699-1-christoffer.dall@linaro.org> References: <20160927180558.14699-1-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160927_110616_352950_47F85FCB X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Vladimir Murzin <vladimir.murzin@arm.com>, kvm@vger.kernel.org, Marc Zyngier <marc.zyngier@arm.com>, "# v4 . 6+" <stable@vger.kernel.org>, Christoffer Dall <christoffer.dall@linaro.org>, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kvm/hyp/entry.S b/arch/arm64/kvm/hyp/entry.S index 3967c231..b5926ee 100644 --- a/arch/arm64/kvm/hyp/entry.S +++ b/arch/arm64/kvm/hyp/entry.S @@ -96,6 +96,8 @@ ENTRY(__guest_exit) add x1, x1, #VCPU_CONTEXT + ALTERNATIVE(nop, SET_PSTATE_PAN(1), ARM64_HAS_PAN, CONFIG_ARM64_PAN) + // Store the guest regs x2 and x3 stp x2, x3, [x1, #CPU_XREG_OFFSET(2)]