Message ID | 1483943091-1364-5-git-send-email-jintack@cs.columbia.edu |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp706653qgi; Sun, 8 Jan 2017 22:26:12 -0800 (PST) X-Received: by 10.84.169.36 with SMTP id g33mr193892682plb.174.1483943172081; Sun, 08 Jan 2017 22:26:12 -0800 (PST) Return-Path: <linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id y186si66436027pgd.113.2017.01.08.22.26.11 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jan 2017 22:26:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQTPC-00027k-Lf; Mon, 09 Jan 2017 06:26:06 +0000 Received: from outprodmail02.cc.columbia.edu ([128.59.72.51]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQTP8-0001x6-7T for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 06:26:04 +0000 Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail02.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096P4wq005194 for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:25:36 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id C35626D for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:25:36 -0500 (EST) Received: from sendprodmail04.cc.columbia.edu (sendprodmail04.cc.columbia.edu [128.59.72.16]) by hazelnut (Postfix) with ESMTP id A96F389 for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:25:36 -0500 (EST) Received: from mail-qt0-f200.google.com (mail-qt0-f200.google.com [209.85.216.200]) by sendprodmail04.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096PaET004416 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:25:36 -0500 Received: by mail-qt0-f200.google.com with SMTP id l7so63073893qtd.2 for <linux-arm-kernel@lists.infradead.org>; Sun, 08 Jan 2017 22:25:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EXkdqT02L612bD1yhiZxbBAqMRUiu9hyGH2Enj2gjwg=; b=HHwO3ZRmE+tuc4YL8AFlfyJdCyKAAM+auJT6H6ih39xk/QbvFdSxHWtWK95mJVdsHz ZSER92yIr3zaIsh6M4L6HENA4TpiFgI8CS+0H3vA63Vy8NOIDbfd2JYld60TSLRgOiGD 9qdwntV8KqigoC1aRBiH7ERPuyPha2bZgTB6+bUugyG/9eLvL9UOiYoOHOo/FyGCSpG3 R+YETEL6kQ2x8OyTK0ap5Rdr+1qg7WNd+4hY2dH7BvA3wLCV4C3MJFkuF/fpw2k/t5rX U9TdDf1K8vntoWv6TV68GaQnsPnRptJ5BvmnzizbhLQhySB7avVGjOwxDMhXj3QYgXgE aY+w== X-Gm-Message-State: AIkVDXIARTY22so2fBe4osm6OhQ0HGLT4iHiNiXZE1SryM87e7dzGGQ6UI4FIZmSkcKJWaQjtlyo5O6twyA12Ct++f2+OWEnrEysxOAhtWUHsP6uGq22CB9ID+bkJTWS1Mw23F91YSmZMpXEB4+iXEFeBP9/R4BPDexKog== X-Received: by 10.200.38.177 with SMTP id 46mr79743151qto.107.1483943136198; Sun, 08 Jan 2017 22:25:36 -0800 (PST) X-Received: by 10.200.38.177 with SMTP id 46mr79743129qto.107.1483943136061; Sun, 08 Jan 2017 22:25:36 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id h3sm8623257qtc.6.2017.01.08.22.25.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Jan 2017 22:25:35 -0800 (PST) From: Jintack Lim <jintack@cs.columbia.edu> To: christoffer.dall@linaro.org, marc.zyngier@arm.com, pbonzini@redhat.com, rkrcmar@redhat.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, vladimir.murzin@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, james.morse@arm.com, lorenzo.pieralisi@arm.com, kevin.brodsky@arm.com, wcohen@redhat.com, shankerd@codeaurora.org, geoff@infradead.org, andre.przywara@arm.com, eric.auger@redhat.com, anna-maria@linutronix.de, shihwei@cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 04/55] KVM: arm64: Allow userspace to set PSR_MODE_EL2x Date: Mon, 9 Jan 2017 01:24:00 -0500 Message-Id: <1483943091-1364-5-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483943091-1364-1-git-send-email-jintack@cs.columbia.edu> References: <1483943091-1364-1-git-send-email-jintack@cs.columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.78 on 128.59.72.16 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170108_222602_526724_7B1ABAD4 X-CRM114-Status: GOOD ( 10.23 ) X-Spam-Score: -5.3 (-----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-5.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [128.59.72.51 listed in list.dnswl.org] 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.216.200 listed in dnsbl.sorbs.net] -3.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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: jintack@cs.columbia.edu 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+patch=linaro.org@lists.infradead.org |
diff --git a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c index 3f9e157..6b9f38a 100644 --- a/arch/arm64/kvm/guest.c +++ b/arch/arm64/kvm/guest.c @@ -117,6 +117,8 @@ static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) case PSR_MODE_EL0t: case PSR_MODE_EL1t: case PSR_MODE_EL1h: + case PSR_MODE_EL2h: + case PSR_MODE_EL2t: break; default: err = -EINVAL;