Received: by 10.192.165.156 with SMTP id m28csp1202842imm; Mon, 16 Apr 2018 16:14:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/QhinREbFdRPRs2ctyFNRKFO7Wfv06zKoEm7J0bgeLBEYL21w5c5s7a1ffDfLQrm2+jcUf X-Received: by 10.98.89.89 with SMTP id n86mr23220759pfb.158.1523920456647; Mon, 16 Apr 2018 16:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523920456; cv=none; d=google.com; s=arc-20160816; b=WwHUs0UAu1J9Icp3G1FhmfmRtFPuWdbH+CVomsl7UNJkq8VoVwNu8d5UMZQbKOWqiE jP69SHCcGGQ4jnyMt+txc3uC2tO9jZ39qsxWXB7AiAIhjsU8coFYG/+1p0YIJxaZFoIc 2NyV+R+tVRNMjs5NJC7+GZU11bXQOygNHu+7sCVmKgR7fH6KGrp32S1GcJ7uqBooXic0 YQ6y0eQN2sKETNwsKzhR2bRX8ZOuzcBeoG9DZ+3ZEWtCUWceaGQoZrQi41LylzfwIbsP 158IdAAVOdh8Mv6CJzmCHCUnqjFi63df2sTSEQAq6ZLRcsBNltX7Tcedfoi96351Ct5M wR7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=NbUNeP+aMvGiKL8/milGylaz4ecabS2R08+AifySjy4=; b=XrRV3iS2s/UZhUtN9vG1HxnQUhtg5ptx9Xwaw9tcM2hFTvIGGceeqxruUYV0LNOhYB jvghQXszC9e2r+oBVkABEdHtJNs5r0YYSQJ4bg/KTC3TAXscEBYvBiSvAF6YUOd919MK QVZ9YI0C3wJ0a3SttmxW/wbCZej3ce3M7POeKT1wBtxzPzAOVairL4fSUTVKptDkJzCh zu8r9jdKoJCAWJQuqZD5xXT9ZHoWFbtOcmqqai8DeK5WoFDiHO5c+5DiEXVCvTBSWRY/ B+alL0i9Vn3uzIFReadkp4Qo0R2BwIHQQxjlQyD5i0A64mnxnlS6ADxL9EAjNxKUlXiF EekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Q51tcxum; 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 a13-v6si10278541plt.142.2018.04.16.16.14.02; Mon, 16 Apr 2018 16:14:16 -0700 (PDT) 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=Q51tcxum; 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 S1752840AbeDPXMb (ORCPT + 99 others); Mon, 16 Apr 2018 19:12:31 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:34736 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbeDPXM3 (ORCPT ); Mon, 16 Apr 2018 19:12:29 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3GNAxNI042525; Mon, 16 Apr 2018 23:11:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=NbUNeP+aMvGiKL8/milGylaz4ecabS2R08+AifySjy4=; b=Q51tcxumP8EkIsgCDHJGoogmwFc+PffUV4UPUliRJfcD31z/Ite4ubnKyvHGCeYm3h8p km9UD/qL3rNbNERrx/l1dFLpJXzXf0zuVGixa3D0vSjkoKCyMgNaS4z4O4Ah8iOuade9 jV0jMJGcagZgXMiUVF0EbIbLTOp12XlDfa+wx3AFgI4Gj5FGwS0w9AFY00gqXz3nOmu4 xG3zmI2HPTXDe1c+11GlbsO1N1Nb2lu1jIGxj7iT6kx/RMZsN5MBQG+DTHatIlF00lOq A8xJXS2bjkM97rML2qdzbqNWTIIo8tRCdKizzEFlaTRgwfRU70FooZ2RpzF7HNTT88Us 6g== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hbam5yb8h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Apr 2018 23:11:20 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3GNBJ9c021708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Apr 2018 23:11:19 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3GNBI3p009808; Mon, 16 Apr 2018 23:11:18 GMT Received: from marawils-linux.us.oracle.com (/10.141.196.252) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 16 Apr 2018 16:11:18 -0700 From: Maran Wilson To: x86@kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, pbonzini@redhat.com, jgross@suse.com Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, boris.ostrovsky@oracle.com, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, bp@suse.de, thomas.lendacky@amd.com, luto@kernel.org, dave.hansen@linux.intel.com, roger.pau@citrix.com, rkrcmar@redhat.com, maran.wilson@oracle.com, rdunlap@infradead.org Subject: [PATCH v7 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH Date: Mon, 16 Apr 2018 16:11:13 -0700 Message-Id: <1523920273-27516-1-git-send-email-maran.wilson@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1523920175-27287-1-git-send-email-maran.wilson@oracle.com> References: <1523920175-27287-1-git-send-email-maran.wilson@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8865 signatures=668698 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-1804160192 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to pave the way for hypervisors other than Xen to use the PVH entry point for VMs, we need to factor the PVH entry code into Xen specific and hypervisor agnostic components. The first step in doing that, is to create a new config option for PVH entry that can be enabled independently from CONFIG_XEN. Signed-off-by: Maran Wilson --- arch/x86/Kconfig | 6 ++++++ arch/x86/kernel/head_64.S | 2 +- arch/x86/xen/Kconfig | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index d234cca296db..8511d419e39f 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -781,6 +781,12 @@ 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" + ---help--- + This option enables the PVH entry point for guest virtual machines + as specified in the x86/HVM direct boot ABI. + config KVM_DEBUG_FS bool "Enable debug information for KVM Guests in debugfs" depends on KVM_GUEST && DEBUG_FS diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 48385c1074a5..d83f2b110b47 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -385,7 +385,7 @@ NEXT_PAGE(early_dynamic_pgts) .data -#if defined(CONFIG_XEN_PV) || defined(CONFIG_XEN_PVH) +#if defined(CONFIG_XEN_PV) || defined(CONFIG_PVH) NEXT_PGD_PAGE(init_top_pgt) .quad level3_ident_pgt - __START_KERNEL_map + _KERNPG_TABLE_NOENC .org init_top_pgt + L4_PAGE_OFFSET*8, 0 diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index c1f98f32c45f..5fccee76f44d 100644 --- a/arch/x86/xen/Kconfig +++ b/arch/x86/xen/Kconfig @@ -74,6 +74,7 @@ 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 + select PVH def_bool n -- 2.16.1