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: 9695109 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 1189660245 for ; Sun, 23 Apr 2017 17:19:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 025F926530 for ; Sun, 23 Apr 2017 17:19:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB41A267EC; Sun, 23 Apr 2017 17:19:36 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 77D8326530 for ; Sun, 23 Apr 2017 17:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=fTiCmcZRI8JSM6/wj6C8sdSK+0xKmqSjtY2ejstbfgg=; b=m7KOSGwDqT6ZsqNxQBAOSa2eC5 650/4MOArfxzrtWKmCWfS7JVprMIrPXs+w0qJKQYMY8f238GwlWEWTbuBo9y70hJWl0PMzv6sTyIU 4W6Vsu1M4mkKd781T+YwJiloZ4mWXh0DbInhQKgQ5g8URxNimoCDzK6S4jS2AtiYg/qIbBcHzfeXL lUYnRN8WshV6bsqXExeQDKh8OnhvnQXovGbJ7OhF61MALvIE1+Y/Vz3Us8lS+B0M2wULp+9jymaaJ ZQxSiS18FKRdaTbLH66PjVDbkzz+ndu6LbGxGPyC7cMmdgB6aFh+cJ2+KFPYAqZSDnEskTDrp2u3p aRu6Uz+w==; 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 1d2LAd-0000vZ-IF; Sun, 23 Apr 2017 17:19:35 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2L2I-0006cP-QY for linux-arm-kernel@lists.infradead.org; Sun, 23 Apr 2017 17:11:14 +0000 Received: by mail-wm0-x230.google.com with SMTP id u65so7508231wmu.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=Vwvoz1Qyh72tst7OcmCxpFqdqdA65ttqhYvcFq+uQl0POGb3e45BcVZ0Gn1MMuABlS QIdGdYTAWR8NH2iGuFw0aKFqLoVrctwKgON6/CMVr3gCvw3fRFiz9YeE/rsRnzS/Th07 pmvQ+WBORJV67k2MGLOqnui0YTpBZVXMxdFUIGJukH22R4fDkX0YH/uhwcU9QIODUrDc iggBlS+T9KEPOpD+T9Y3G/XLi9SfwpBF98nwzxQouW1ajXHQtEFgYzc93FfHMkuS3fek kpvkoiatZZPpqo8qypZPbwsRV5GklJHVijY4duexFAmw0Eq9WmdOnfMOe2vDf7HjyF4j XNgA== X-Gm-Message-State: AN3rC/4YgD0wmaNWfukG/ysLkcSyCBuwOmdVKRdPJqxEu7f/z40aCyor tl1v0kWg8NL6UYzU 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?= 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170423_101059_353126_37152A14 X-CRM114-Status: GOOD ( 10.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Christoffer Dall , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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);