Message ID | 1483943091-1364-49-git-send-email-jintack@cs.columbia.edu (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 56DD860710 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Jan 2017 06:55:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 452AC280D0 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Jan 2017 06:55:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3834A2815E; Mon, 9 Jan 2017 06:55:57 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C2420280D0 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Jan 2017 06:55:56 +0000 (UTC) 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 1cQTs0-0000sA-2X; Mon, 09 Jan 2017 06:55:52 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQTrR-0000DQ-Np for linux-arm-kernel@bombadil.infradead.org; Mon, 09 Jan 2017 06:55:17 +0000 Received: from outprodmail01.cc.columbia.edu ([128.59.72.39]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQTPv-0005KC-Te for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 06:26:52 +0000 Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail01.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096Q9Mk018083 for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:26:32 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id D457D7E for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:26:32 -0500 (EST) Received: from sendprodmail04.cc.columbia.edu (sendprodmail04.cc.columbia.edu [128.59.72.16]) by hazelnut (Postfix) with ESMTP id 8C4A998 for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:26:32 -0500 (EST) Received: from mail-qt0-f198.google.com (mail-qt0-f198.google.com [209.85.216.198]) by sendprodmail04.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096QWkA005787 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <linux-arm-kernel@lists.infradead.org>; Mon, 9 Jan 2017 01:26:32 -0500 Received: by mail-qt0-f198.google.com with SMTP id f4so58601110qte.1 for <linux-arm-kernel@lists.infradead.org>; Sun, 08 Jan 2017 22:26:32 -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=HgoeRbscYA5QdpEOsNpIhgRmeOCICYzHfcarNNNUqJI=; b=EHNKvYfkQB+ti28x66+UOD6SwqMjnTIunLbWFmMYHtJ+JSiC99AoiQWDA1iIHxWH1N h0s7VrrqJg/Wp+XRsyX534hA13e4aj7ghZuDyi1dqfiWH6ElzYjBIunt6CHo3IvUtZY/ KC4oP7eWTs3oqfQEZlvjbKRmhUyjmrpjUhndk65b9MRjlO6VX2IKLrP53xMdZjWPQn/a 9oj0eJYokkkdb1wYTuYsLrVsczb40dF4Mfijlf1KDVF3iQeTzlNoi1cEpRbJzM4+LcSu 62tdGGe2d9ojnmLZHVqOhjLqTq4z28I4zXctTUMkWghs5b663INv4IlhhKXaKft4Zzci TEvQ== X-Gm-Message-State: AIkVDXKRlVBVYbkxHYp1EdAwLByT4PMTtaR7Kx+Iy9hhIbAE9RowO7jo0hHCdnXCLmKEVnI4OKNYTbIR+e1Ji66assqPLwrEzDXzpeYeWJMVtNlLOILJVHRiSJukl+4YNh2vkpfLNUAhu4jNKsPo2R7+VJqjV91+r7arZw== X-Received: by 10.55.127.129 with SMTP id a123mr83632589qkd.129.1483943192149; Sun, 08 Jan 2017 22:26:32 -0800 (PST) X-Received: by 10.55.127.129 with SMTP id a123mr83632575qkd.129.1483943192019; Sun, 08 Jan 2017 22:26:32 -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.26.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Jan 2017 22:26:31 -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 48/55] KVM: arm64: Emulate TLBI instruction Date: Mon, 9 Jan 2017 01:24:44 -0500 Message-Id: <1483943091-1364-49-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-20170109_012652_065879_25814CA4 X-CRM114-Status: GOOD ( 12.49 ) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index ddb641c..b0a057d 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -2013,8 +2013,14 @@ static int emulate_sys_reg(struct kvm_vcpu *vcpu, static int emulate_tlbi(struct kvm_vcpu *vcpu, struct sys_reg_params *params) { - /* TODO: support tlbi instruction emulation*/ - kvm_inject_undefined(vcpu); + /* + * We unmap ALL stage-2 page tables on tlbi instruction. + * We may make it more efficient by looking at the exact tlbi + * instruction. + */ + stage2_unmap_vm(vcpu->kvm); + kvm_nested_s2_unmap(vcpu); + return 1; }