Received: by 10.223.185.116 with SMTP id b49csp7691845wrg; Thu, 1 Mar 2018 09:27:30 -0800 (PST) X-Google-Smtp-Source: AG47ELt5htB4/T99r1hzB2kkT6D/dD+z+C43GkSFdcUzA9rS+Nv8qBMqdzWM6dr3AOf2319HpHmV X-Received: by 10.99.149.87 with SMTP id t23mr2113629pgn.411.1519925250616; Thu, 01 Mar 2018 09:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519925250; cv=none; d=google.com; s=arc-20160816; b=jinpkrn1HSURTjVi3fYVQjy4RqiCiNdEHQVhn20pOpBDA4YtbGE5gMhhwl+scb0CDF El0cKVpYLAQsRh9y341FSZya+Sf2acfgLrAw1rZGwHvfHvsK63aojROnddsWHXXIZrad OBILlwdcp9uZ6ZI1TwO5c9Lii4vLqFuF54jDkj1CXHzj6z69C9eNlY4Y8v0rZuWv766n rhu/T5cSiw+d91icRGUntQUp0u2znb3XywSiUIbLU6a3arOYBbu2cmp2gTmecMxwbyc0 ZM1knS1Y0B2Msk8TAhn6R1quXFE5+Bmuq4mGNrrIFkhMVS2JK9SlOOpkZqJx2Gp9JGHR YJKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=KDTByvykgIzLopDKSD3p/gLtM9eVq4FuxScUTESVnkc=; b=INkPij6nJHld34IvAanbldYYqmGUtGWubvwyiZgswIsdgHJMaEVeMK9TJf8u8Gj9nI H9PKolQmxJVmpBZui1YkuK1pykwl5fS9VPCt+ARLGFZhLjnBJeT9zINfj+xp3Nt6N3/D jswGxn8FFZrBLDySvlaVDdf5o2u8Z9PGtDD2r5sF5u5WV5Dz0lbjeYAtmDO7Iq/Osb0q lgSXo9pw5te+KOzszscKqt/OzpHkt5bKG05gkNEW0ojmdherzj/NTbywIEtGroYrCNol qPFVtWu5mwZwMpRngQ/BI2kvsWd7PXmkpBcefvSmmjbK+MrR+Jj228ldHAtsGdfjxOZ9 2wHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=rrO+rgA+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b59-v6si3326770plb.529.2018.03.01.09.27.15; Thu, 01 Mar 2018 09:27:30 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=rrO+rgA+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033438AbeCARZO (ORCPT + 99 others); Thu, 1 Mar 2018 12:25:14 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:34102 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033295AbeCARZN (ORCPT ); Thu, 1 Mar 2018 12:25:13 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w21HM2N6037823; Thu, 1 Mar 2018 17:24:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=KDTByvykgIzLopDKSD3p/gLtM9eVq4FuxScUTESVnkc=; b=rrO+rgA+plBO/wHqWl2b2KbbRTaW/eIlHca0OeP0bP8ylcQTrodr++NKpJol96g96hPL WU6s7YguPDl1YFXRSQMEay9uGy4guT6q0KhnGcgW0RtqYjUjpnAwbJCSaK0D9kEOy7pL PMCK9fiKNsB81cIG1s6T6OlQLyXF2HQ8OmQ+aiDd5Qn0cS2pbfXUJmdo4hbf/IxPdQD8 jJPaedNvPy6tyOHo6NIpFHbNnnLlWXDmbHAMPSMi7saRmQitYfbbo4wiA4/93yArJ9Xh RLmPHRwidHvbd+BbS9BBVL1nF0YfRuolK0pt03+VrrSfPlSWtI7vQQzwHoC1Lj4ueRIB KQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2genp3822s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Mar 2018 17:24:24 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w21HON1f024228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Mar 2018 17:24:23 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w21HOFro016961; Thu, 1 Mar 2018 17:24:15 GMT Received: from [10.141.197.71] (/10.141.197.71) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Mar 2018 09:24:15 -0800 Subject: Re: [RFC PATCH v4 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH To: Paolo Bonzini , Boris Ostrovsky , 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> <8cdb96db-0771-f062-e0ea-54b4171d6a98@redhat.com> From: Maran Wilson Organization: Oracle Corporation Message-ID: Date: Thu, 1 Mar 2018 09:24:13 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <8cdb96db-0771-f062-e0ea-54b4171d6a98@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8819 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803010215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/1/2018 7:17 AM, Paolo Bonzini wrote: > 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. OK, will do. Thanks, -Maran > 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