Received: by 10.223.185.116 with SMTP id b49csp7112592wrg; Wed, 28 Feb 2018 23:23:01 -0800 (PST) X-Google-Smtp-Source: AG47ELutXySjANTSvrpTE+4TwSlipGr1Crw/rGIFA41cUBsTEnOzCEYiwUyxRdTuwhJerhOHLssA X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr1023188plh.306.1519888981007; Wed, 28 Feb 2018 23:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519888980; cv=none; d=google.com; s=arc-20160816; b=JTGir4wbB53wc4ivuqmvA+7XtKFOPI8LjpSiE+PznYRKq11ny9K8TNwk8756viWKaW wVqrr/AgwMm0/q4EVM93JVdykYkNfFtr74miA+u38TmiMVuyhC/J7uwxURyl8kNqrZpI 0Lie9yCQz3z8Ch6NNt5G3+HE/DpxclmLeBQsbLoHpUDSL++C82QGKJ75bqn+rcC1vRk+ 6rudHXnLbmYK/cLPUMLXnjqIdOi0sTxtouV+O7Wyx7X/L19a1ewz+/lvzme3qjJanqQl BUDR9Vi0YONHfnjVoEq1E3DpWrLCxc8vKu7/h72UerHWZIezEciECTFXBSnL7LH/JacX rIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=DCMJGxAr1N8A9z9t8QpGpIUuvNEwG335OVa2ABvJtso=; b=nuQ28zTZlZe1JcBnysYvzsRlc/4OHGavmS/yghSMeKBdbHMCJ8QmgbdcLWTzFRDXzu K/JbCC3fV+knft6Hnkyn6chEVuUyNQ+KOh3NeMiOD4mAaO1/hUpx52AwfZx6OuxQ67FS qWtnjejNi1GA0MaZ5t+KEmHJpHp4cph59NT7Be9sQCYWPE1rHmFOb5rguwk6fnXpB1Dz nyWMjYJ4JzXp8wJKAtM0qn9ukBXlzt7YSa0GlZV6WX3Z92hquceFWttLDDmE4LVt1fx+ VitnJsP4oHhfDdQghzJt8tFvCz+JjolPJ90YlzSK1Iwy0pt18itgBd8d8wLMrxR+wMAK SfGw== 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 g4si2551658pfh.98.2018.02.28.23.22.46; Wed, 28 Feb 2018 23:23:00 -0800 (PST) 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 S966472AbeCAHVv (ORCPT + 99 others); Thu, 1 Mar 2018 02:21:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:48445 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966384AbeCAHVt (ORCPT ); Thu, 1 Mar 2018 02:21:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 719C0AC21; Thu, 1 Mar 2018 07:21:48 +0000 (UTC) Subject: Re: [RFC PATCH v4 5/7] xen/pvh: Move Xen code for getting mem map via hcall out of common file To: Maran Wilson , pbonzini@redhat.com, boris.ostrovsky@oracle.com, roger.pau@citrix.com, andrew.cooper3@citrix.com, hch@infradead.org, JBeulich@suse.com, x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, rkrcmar@redhat.com, jpoimboe@redhat.com, bp@suse.de, kirill.shutemov@linux.intel.com, thomas.lendacky@amd.com, luto@kernel.org, dave.hansen@linux.intel.com, davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, linus.walleij@linaro.org, rdunlap@infradead.org References: <1519842483-8887-1-git-send-email-maran.wilson@oracle.com> <1519842483-8887-6-git-send-email-maran.wilson@oracle.com> From: Juergen Gross Message-ID: <7095f9f1-c8b5-acae-44b4-4699a1e67c69@suse.com> Date: Thu, 1 Mar 2018 08:21:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519842483-8887-6-git-send-email-maran.wilson@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/02/18 19:28, Maran Wilson wrote: > We need to refactor PVH entry code so that support for other hypervisors > like Qemu/KVM can be added more easily. > > The original design for PVH entry in Xen guests relies on being able to > obtain the memory map from the hypervisor using a hypercall. When we > extend the PVH entry ABI to support other hypervisors like Qemu/KVM, > a new mechanism will be added that allows the guest to get the memory > map without needing to use hypercalls. > > For Xen guests, the hypercall approach will still be supported. In > preparation for adding support for other hypervisors, we can move the > code that uses hypercalls into the Xen specific file. This will allow us > to compile kernels in the future without CONFIG_XEN that are still capable > of being booted as a Qemu/KVM guest via the PVH entry point. > > Signed-off-by: Maran Wilson Reviewed-by: Juergen Gross Juergen