Received: by 10.223.185.116 with SMTP id b49csp7551426wrg; Thu, 1 Mar 2018 07:18:44 -0800 (PST) X-Google-Smtp-Source: AG47ELutjq4A4LpFOxzkAjlSFN8GFqXKMBCYoBrIr+/7iG2dgYtPN0LbV2TVK+scXV8HBI6GQogf X-Received: by 2002:a17:902:4581:: with SMTP id n1-v6mr2292242pld.135.1519917524439; Thu, 01 Mar 2018 07:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519917524; cv=none; d=google.com; s=arc-20160816; b=RoTnCuPKHiMlfSFWxEAx6X4sO7s+peP7iAmkE01URm2Sh12zT2WyOvQMZqBL8KQukj /+nqdu0+vsTEaT+iO+jzM9Sm1fwbp2rggcC1Lva0/54m4Vc+gw35e0W8H9zdBchr4O+b K/g9Zmhm4h4Zjiy0gBs4yQg4Uz9emZGxqbsfMPOhiKeAScZi1E2W+YoSgzlxdLeuSXGu R0CdQVKTzzMoIsY3aFeAD9dlOo4r0wMSMb3aJrgP35oC2ZYMqdnx/6BRrjx7IfM+dt9K w8S8rzJbqqYydiimbrmGc1ipGhgQk7c3kbtxtOBK95OKhBqwqlHxybMoXsvEF4SXEAut 82Dg== 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=3/7h+cQG+VIL4xOvMQ08YAGRZEM4r5paHPHmuovtTSU=; b=zxwNQ9f1eYIumTGVnKii1AVr3TZJe6bGxsv2uxhBUcovaoRnrlORy71oU+W7g6q/ty cKEmDr3bEkC5SQlYfURqcRnZIMnvOjtu+WHYWAb7qj1uWnucodVbt1GE4CfxcSzFnnIu u77SKOd9nXwqB9uUKhDeZwUB8XJeHtlHqELm3NaFR0nUZ57HBtjYeD6IENHvg0yBXgez y2h4WqhqR1RWsV95noOGSfGu2jJk4Il+0Z/Z2S1kVA0R2bbv5RK1PrwZtzEohmVL+/zp GAT4SIPWN9dSQTzd0p4/FHBZUAfHta5gsQBNHhjEWWlsDZzIMd5BQD7kfqneGLCXgdNq DX9g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si135609pfh.355.2018.03.01.07.18.28; Thu, 01 Mar 2018 07:18:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031722AbeCAPRv (ORCPT + 99 others); Thu, 1 Mar 2018 10:17:51 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38098 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1031659AbeCAPRu (ORCPT ); Thu, 1 Mar 2018 10:17:50 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 526D34040855; Thu, 1 Mar 2018 15:17:49 +0000 (UTC) Received: from [10.36.117.158] (ovpn-117-158.ams2.redhat.com [10.36.117.158]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A4CF49C06F; Thu, 1 Mar 2018 15:17:42 +0000 (UTC) Subject: Re: [RFC PATCH v4 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH To: Boris Ostrovsky , Maran Wilson , jgross@suse.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-2-git-send-email-maran.wilson@oracle.com> <5be04d96-aa10-a022-2597-f7f40138f8f8@oracle.com> From: Paolo Bonzini Message-ID: <8cdb96db-0771-f062-e0ea-54b4171d6a98@redhat.com> Date: Thu, 1 Mar 2018 16:17:41 +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: <5be04d96-aa10-a022-2597-f7f40138f8f8@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 01 Mar 2018 15:17:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 01 Mar 2018 15:17:49 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/03/2018 16:02, Boris Ostrovsky wrote: > On 02/28/2018 01:27 PM, Maran Wilson wrote: >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index eb7f43f23521..fa7cd0305125 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -791,6 +791,14 @@ config KVM_GUEST >> underlying device model, the host provides the guest with >> timing infrastructure such as time of day, and system time >> >> +config PVH >> + bool "Support for running PVH guests" >> + depends on KVM_GUEST || XEN > > > Not sure about XEN part. PVH is selected by XEN_PVH for Xen. > > What about introducing KVM_GUEST_PVH that will select PVH and then drop > dependency here? That is, "config KVM_GUEST_PVH" "depends on KVM_GUEST" "select PVH". Sounds good to me. Paolo > > -boris > >> + def_bool n >> + ---help--- >> + This option enables the PVH entry point for guest virtual machines >> + as specified in the x86/HVM direct boot ABI. >> + >> > > >> diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig >> index f605825a04ab..021c8591c3c0 100644 >> --- a/arch/x86/xen/Kconfig >> +++ b/arch/x86/xen/Kconfig >> @@ -77,8 +77,9 @@ config XEN_DEBUG_FS >> Enabling this option may incur a significant performance overhead. >> >> config XEN_PVH >> - bool "Support for running as a PVH guest" >> + bool "Support for running as a Xen PVH guest" >> depends on XEN && XEN_PVHVM && ACPI >> # Pre-built page tables are not ready to handle 5-level paging. >> depends on !X86_5LEVEL >> + select PVH >> def_bool n >