Received: by 10.213.65.68 with SMTP id h4csp1150956imn; Wed, 4 Apr 2018 13:33:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+X0b76QXHVaCuRDcru3V1Gxa7JAagqrW2XfukHCZIf7xNlQtFeOP1HpmRp8yVeTlQZL4gQ X-Received: by 10.98.236.86 with SMTP id k83mr14928264pfh.84.1522874016052; Wed, 04 Apr 2018 13:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522874016; cv=none; d=google.com; s=arc-20160816; b=kok61XCpYXCaU7fCVl7IVXYUyHzu02nMx8H2svk7prJrUbyg7qcYDBrPOD4NKLRjgd AR/2H97oNAI0Kl1yTEAXKIs8guRUQsDb0O8Dsz1LeLfByeAUj/4CVmPPETx2K4rwNqjo HRHH6jFJUrT0xOvtFR60+NR+/bGqODXGO31e8Ik7UkiYXgSNoNu1GNrOImUfEIawU9u2 iVOc+5jFjR7GFSKOHKb2lQnW4OzdNa046sWUAJgYpi7Bh9Nn0TRkmZiqDxKEGha8uOYK aKY2AsV/KpxSB3jB4bNJUNdsKl8t5G88tLWlov5ZtQ6mBuA2cIuVBigToY5PfawqEWfX T7DQ== 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=DtGTSfJ7LV5hhRqiNlNLm59TXIwqhXaTowx5863bGcE=; b=eBRVBNfPIHs2x1C9SyIGVhwT/yqy9EimHOTDYypgJx4189aSSgdesw4Ol1jGmcZvNS rFL0c3IxYSMpM48BLjKuBG/75gpui5V+3Ov68DRkH9R3iaI+drZ3N+slMvJXptC1Wseh 5NyUPnz7EHULQ10hQ3LDsPqeUXpZUcVGiTnQ0e1jcOSb90X9BBE5/xJK9jxWhVX3CyyM rNK4exDgxEnVhgxRs3GVmUexcsokQZfP9pY8jN7cOxds590k+dyCmsL00xdhKYt8ZMci aVD9vmMM5QfdIbHzWdMvPoIpPsRgSGpSoe8JDcESp458vd6erZFzBa7CjyYpBcKcUmME /Qvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Cn3EVQF2; 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 i3-v6si3866598pld.241.2018.04.04.13.33.21; Wed, 04 Apr 2018 13:33:36 -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=Cn3EVQF2; 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 S1752303AbeDDUbn (ORCPT + 99 others); Wed, 4 Apr 2018 16:31:43 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:59536 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbeDDUbl (ORCPT ); Wed, 4 Apr 2018 16:31:41 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w34KGoto172549; Wed, 4 Apr 2018 20:31:05 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=DtGTSfJ7LV5hhRqiNlNLm59TXIwqhXaTowx5863bGcE=; b=Cn3EVQF2LNyttPdkEmQ9ktiXaUXiHMqwHFaCkOtj0WyyjO8sYm6+tfslRmy6e83MhP5m 0Bcc3k1UDDTICpF2964iAuY0EYwTAOX+o9kKQuOMMI88ULLYybDp2Sq+w/D06B6fIGep eLAbOI5N6GwT7Bh6XyJMbVZfIIy4xgmPZjQ539WZAzBxtW6BYkvhIOlJ9JQhLBMd5FIj 2QX7EamUow5RO/Z/25z+oe4hN65LAmeAHyzuZMDHV0gLkD6XHDtyyPL5QbPijQTlKsIM EFxLlDXVFtfx+GKYk21IvZDaRaxrbNNyimC8HLWCbXJT9PHUVdPvXH5+Vuafb6qzONVW SA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2h55krr1n5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Apr 2018 20:31:04 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w34KUD7p016414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Apr 2018 20:30:13 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w34KUCGn021438; Wed, 4 Apr 2018 20:30:12 GMT Received: from marawils-linux.us.oracle.com (/10.141.197.9) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Apr 2018 13:30:12 -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 v6 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH Date: Wed, 4 Apr 2018 13:30:06 -0700 Message-Id: <1522873806-17837-1-git-send-email-maran.wilson@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1522873659-17572-1-git-send-email-maran.wilson@oracle.com> References: <1522873659-17572-1-git-send-email-maran.wilson@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8853 signatures=668697 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-1804040198 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 27fede438959..e3b836d7ad09 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