Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752034AbdCMJnr (ORCPT ); Mon, 13 Mar 2017 05:43:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:43692 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbdCMJnj (ORCPT ); Mon, 13 Mar 2017 05:43:39 -0400 Subject: Re: [PATCH v2 17/21] x86/xen: create stubs for HVM-only builds in page.h To: Vitaly Kuznetsov , xen-devel@lists.xenproject.org References: <20170302175357.8222-1-vkuznets@redhat.com> <20170302175357.8222-18-vkuznets@redhat.com> Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Boris Ostrovsky , Andrew Jones From: Juergen Gross Message-ID: <598a0660-0411-2c8b-cdac-1453be3775c1@suse.com> Date: Mon, 13 Mar 2017 10:43:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170302175357.8222-18-vkuznets@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 537 Lines: 15 On 02/03/17 18:53, Vitaly Kuznetsov wrote: > __pfn_to_mfn() is only used from PV code (mmu_pv.c, p2m.c) and from > page.h where all functions calling it check for > xen_feature(XENFEAT_auto_translated_physmap) first so we can replace > it with any stub to make build happy. > > set_foreign_p2m_mapping()/clear_foreign_p2m_mapping() are used from > grant-table.c but only if !xen_feature(XENFEAT_auto_translated_physmap). > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen