Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3888959imm; Mon, 20 Aug 2018 06:29:09 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyzuJUOvw46gV9gL4x6rUwP6aj3LPZWxV3UZdI2VXCXspixfC4iT+u/xc1OD0oPcjPAcmyb X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr45041437pla.325.1534771749850; Mon, 20 Aug 2018 06:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534771749; cv=none; d=google.com; s=arc-20160816; b=YUEZRPx5k4jw3nIePL/1Enjt1OmY/bPkYJwTSi1vVHnOQop+RSN/6cDNmwJPCBfTY+ TRkCiNv14nN/I3iNRVuVy98KdkIfEZatrxOcRauiurXSwIFXtOU2Xi8yLnAt5gFM5DYF A9LsgNJweZSUX6qrcmbUYsf51CQq9vWWy7kI6pwYJrz0zni2RMJD94blvbZfERiUuWoE nFOAt4ZSm0LFlkcd+zgsM3kozhsvLEXj89hh0HIWcvJq2iOGcgPsoA0sP2/3eeLH92I3 1soe7Xp7lVtMkhRVF1RKO8cXYe9URVOxXk0iIIuYuY6bsZgEBmI3RThAAqIUcJRR6vJU iYXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0Wgc7AG89qG7+tYjvaG6HUIWiL+k9tbVN9u/zeJt/KI=; b=E611UkRSZR+8CXskjdzdoK5mzmZmRG7vWDN7ZQLjQO4CkxyXu05gG71cjbBIcLbs2a F+CoUzIlb4WgWrgKJ5yOuEfxOf0UdJnym9ErVjSRVTFIHJTWhlGXDQF+CV6Opa3DJdbE WX3rZEZy1a9Of1Fae+vVvTA5fSoqmghhpME2gcP8/QduZW/aNJoSefErDWB1Dg8lxHFJ jTPDqTxmJS65mxxginxIwB94O9ABCTMQGEU57fcCzxvugaWgnAXt+dKBNKErMLW+QVwL LHhAoqTOVqhQ0qEGCcOczDOeWY1Yp6EU46N0JPygstdc6tWy2tf5sKstppUxYgXPm4/o UG+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7-v6si10247680pfm.288.2018.08.20.06.28.54; Mon, 20 Aug 2018 06:29:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbeHTQRm (ORCPT + 99 others); Mon, 20 Aug 2018 12:17:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:58582 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726748AbeHTQRm (ORCPT ); Mon, 20 Aug 2018 12:17:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id DF7E4AFC9; Mon, 20 Aug 2018 13:02:06 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org Cc: boris.ostrovsky@oracle.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, Juergen Gross Subject: [PATCH] x86/xen: remove unused function xen_auto_xlated_memory_setup() Date: Mon, 20 Aug 2018 15:02:03 +0200 Message-Id: <20180820130203.11501-1-jgross@suse.com> X-Mailer: git-send-email 2.13.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xen_auto_xlated_memory_setup() is a leftover from PVH V1. Remove it. Signed-off-by: Juergen Gross --- arch/x86/xen/setup.c | 31 ------------------------------- arch/x86/xen/xen-ops.h | 1 - 2 files changed, 32 deletions(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 6e0d2086eacb..1163e33121fb 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -906,37 +906,6 @@ char * __init xen_memory_setup(void) } /* - * Machine specific memory setup for auto-translated guests. - */ -char * __init xen_auto_xlated_memory_setup(void) -{ - struct xen_memory_map memmap; - int i; - int rc; - - memmap.nr_entries = ARRAY_SIZE(xen_e820_table.entries); - set_xen_guest_handle(memmap.buffer, xen_e820_table.entries); - - rc = HYPERVISOR_memory_op(XENMEM_memory_map, &memmap); - if (rc < 0) - panic("No memory map (%d)\n", rc); - - xen_e820_table.nr_entries = memmap.nr_entries; - - e820__update_table(&xen_e820_table); - - for (i = 0; i < xen_e820_table.nr_entries; i++) - e820__range_add(xen_e820_table.entries[i].addr, xen_e820_table.entries[i].size, xen_e820_table.entries[i].type); - - /* Remove p2m info, it is not needed. */ - xen_start_info->mfn_list = 0; - xen_start_info->first_p2m_pfn = 0; - xen_start_info->nr_p2m_frames = 0; - - return "Xen"; -} - -/* * Set the bit indicating "nosegneg" library variants should be used. * We only need to bother in pure 32-bit mode; compat 32-bit processes * can have un-truncated segments, so wrapping around is allowed. diff --git a/arch/x86/xen/xen-ops.h b/arch/x86/xen/xen-ops.h index e78684597f57..0e60bd918695 100644 --- a/arch/x86/xen/xen-ops.h +++ b/arch/x86/xen/xen-ops.h @@ -50,7 +50,6 @@ void __init xen_inv_extra_mem(void); void __init xen_remap_memory(void); phys_addr_t __init xen_find_free_area(phys_addr_t size); char * __init xen_memory_setup(void); -char * xen_auto_xlated_memory_setup(void); void __init xen_arch_setup(void); void xen_enable_sysenter(void); void xen_enable_syscall(void); -- 2.13.7