Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751057AbdGZHpd (ORCPT ); Wed, 26 Jul 2017 03:45:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:57137 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750813AbdGZHpc (ORCPT ); Wed, 26 Jul 2017 03:45:32 -0400 Subject: Re: [PATCH 1/3] x86: provide an init_mem_mapping hypervisor hook To: Boris Ostrovsky , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org Cc: hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com References: <20170725095013.2939-1-jgross@suse.com> <20170725095013.2939-2-jgross@suse.com> <801415f5-5802-e890-eb3c-0ec27ab8412d@oracle.com> From: Juergen Gross Message-ID: <52f3b900-cf1c-53db-d954-9010c6d2ff83@suse.com> Date: Wed, 26 Jul 2017 09:45:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <801415f5-5802-e890-eb3c-0ec27ab8412d@oracle.com> Content-Type: text/plain; charset=windows-1252 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 552 Lines: 16 On 25/07/17 16:09, Boris Ostrovsky wrote: > On 07/25/2017 05:50 AM, Juergen Gross wrote: >> Provide a hook in hypervisor_x86 called after setting up initial >> memory mapping. >> >> This is needed e.g. by Xen HVM guests to map the hypervisor shared >> info page. > > This is not necessarily a problem specific to guests so I wonder whether > the hook should be part of x86_platform_ops or some other x86 structure. I'm fine with any solution. I've chosen the hypervisor struct as right now there seems to be a need for HVM Xen guests only. Juergen