From patchwork Sun Apr 23 17:09:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9695059 Return-Path: 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 6520A60245 for ; Sun, 23 Apr 2017 17:13:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 501F326538 for ; Sun, 23 Apr 2017 17:13:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42E27267EC; Sun, 23 Apr 2017 17:13:53 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E317226538 for ; Sun, 23 Apr 2017 17:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162695AbdDWRNu (ORCPT ); Sun, 23 Apr 2017 13:13:50 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36772 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162965AbdDWRKi (ORCPT ); Sun, 23 Apr 2017 13:10:38 -0400 Received: by mail-wm0-f54.google.com with SMTP id u65so7508228wmu.1 for ; Sun, 23 Apr 2017 10:10:38 -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=///zhoIg9TWetGLET+dESOgqvHCHSb4/xKIkAw6as/E=; b=RsM0GHeMk9Uy/6HoWMity0VRa1enFZYnbISc5bZWrhd7LTSusnwqog8xZOE245/3Fm UTBxJa5w/mPa1hHR6sAo6zd4Ymr3d1m9yAUTz2+0IcJJu2fuKZ62H6kXft8xYhWcl9Xn gkLTHvAsfpNZXPUYiSaQB6sKoXIVEJYCOplnk= 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=///zhoIg9TWetGLET+dESOgqvHCHSb4/xKIkAw6as/E=; b=MkLwY+2XQSDtIzc8/V2+qphXYTEwOsbVSsFS+VxiAwFGav/RhGXl+L21NyP5M8w0f7 /iSfPhWtxrvrYsLzJ61N9k08MgWvDe356ScWW8hyKdPPhhbHLbEB4jD/JqIxSi4GBchS 53+g7TMFQnp5o3WiIM4VY2I1o0lytXeyP/c0bRF25uH5iqSfYGDAO83O8gku4cKBR7RB 4C6TvlupwHBO4lWFDaoG1M5Mg3QP9q+Asp3/d46FW5U7lkhM57EUWcnxvs/llXFX5wUt uHPsJFzvMNxsLrGITLh31jXmJLL/DelriOcWjTZjgdISjhpc7Wz3VmI2DbZCcbnp6vEd WcOQ== X-Gm-Message-State: AN3rC/6rsqRtRibBI4elwVGliNbm2es2Jalz3DC+ByXGewxKsLKisL7s CddgtOBtVMlhjo/L X-Received: by 10.80.183.198 with SMTP id i6mr136372ede.33.1492967437446; Sun, 23 Apr 2017 10:10:37 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id 58sm2803521edz.2.2017.04.23.10.10.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Apr 2017 10:10:36 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christoffer Dall Subject: [PULL 62/79] arm/arm64: KVM: Remove kvm_get_idmap_start Date: Sun, 23 Apr 2017 19:09:12 +0200 Message-Id: <20170423170929.27334-63-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170423170929.27334-1-cdall@linaro.org> References: <20170423170929.27334-1-cdall@linaro.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marc Zyngier With __cpu_reset_hyp_mode having become fairly dumb, there is no need for kvm_get_idmap_start anymore. Acked-by: Catalin Marinas Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm/include/asm/kvm_mmu.h | 1 - arch/arm/kvm/mmu.c | 5 ----- arch/arm64/include/asm/kvm_mmu.h | 1 - 3 files changed, 7 deletions(-) diff --git a/arch/arm/include/asm/kvm_mmu.h b/arch/arm/include/asm/kvm_mmu.h index 95f38dc..fa6f217 100644 --- a/arch/arm/include/asm/kvm_mmu.h +++ b/arch/arm/include/asm/kvm_mmu.h @@ -56,7 +56,6 @@ void kvm_mmu_free_memory_caches(struct kvm_vcpu *vcpu); phys_addr_t kvm_mmu_get_httbr(void); phys_addr_t kvm_get_idmap_vector(void); -phys_addr_t kvm_get_idmap_start(void); int kvm_mmu_init(void); void kvm_clear_hyp_idmap(void); diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 69554bd..efb4335 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -1669,11 +1669,6 @@ phys_addr_t kvm_get_idmap_vector(void) return hyp_idmap_vector; } -phys_addr_t kvm_get_idmap_start(void) -{ - return hyp_idmap_start; -} - static int kvm_map_idmap_text(pgd_t *pgd) { int err; diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h index ed12460..91d93a5 100644 --- a/arch/arm64/include/asm/kvm_mmu.h +++ b/arch/arm64/include/asm/kvm_mmu.h @@ -155,7 +155,6 @@ void kvm_mmu_free_memory_caches(struct kvm_vcpu *vcpu); phys_addr_t kvm_mmu_get_httbr(void); phys_addr_t kvm_get_idmap_vector(void); -phys_addr_t kvm_get_idmap_start(void); int kvm_mmu_init(void); void kvm_clear_hyp_idmap(void);