Received: by 10.213.65.68 with SMTP id h4csp1150960imn; Wed, 4 Apr 2018 13:33:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+yz6jH/gn4vkRazmISErFQbGXLViruSJC3Ggc6gfW48uVapv0MsNDfti/j03w4zi/LZVo8 X-Received: by 10.98.61.80 with SMTP id k77mr15111031pfa.2.1522874016281; 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=N3bdYn43NiVHb8xbEqZSO6tCyoSsWjD6W/QLcnXCNaayrK3rjhbCybJe9cVOWbWj0R BA+GBxz4RV5cSSppPxJiGDLeignVtVV/LRORaQ3KWGmD68NJQqdpcT9IKur7UZ7H00Dz Sds89VWOsbYPaXpfkyR1Ltguu6Hcv8EQ/J4BM2UD6QyfBBdyX6pQjcVFcWBeAQVX1MbY IYRf/Cm9vAoHLcmvSQcYIq4szVJ80dceK3xscjhMeEduUfbzXZCcfjh9wjlvZd1mkx1M Tdwe9ck+q5R0Ud+LwprRLrHTOdzDtzO8aHz29i6BMFG2DHKxSt1ajbalLp+8Z/nUJXce zb/A== 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=IVmfDqQz06KsdsoIi2L75gar3ZvEEMgeQb4mGnjAVHA=; b=rOQQEEnb8ihCPPTr79FUj4NV2+k+mIdBGqcmhdmtQuTWUeTAdkjDDFcZ5UMZ2Uip59 kSIj2uel5cfbGrbE7N2VJGQAspYW5m0pOlmvX/u4HSFqzPn9tUZ1I/RttGUMuvKms9aH lIt/6r6hPvFvA2wUQN/sd+p93+guqSr2/DH+Ffjg1ek2FW8DXK2egiSpG5rehJaDOSjf PXo1/8D+7BYGEupRsZY/6mzrXyqwRbsdqyadrn/MmbNnz7RVh1279I7HQwuhcJ6A3/TY LUiA07D81B8uF+RvQkTUcb8NIQaCIkCp3iDXyBefISL2Zc7m5hoeSZ89X0KXToWKnoaB tlQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=gMpkMBnr; 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 g3-v6si6261388plb.536.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=gMpkMBnr; 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 S1752392AbeDDUcJ (ORCPT + 99 others); Wed, 4 Apr 2018 16:32:09 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:59802 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349AbeDDUcH (ORCPT ); Wed, 4 Apr 2018 16:32:07 -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 w34KGgHw172502; Wed, 4 Apr 2018 20:31:37 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=IVmfDqQz06KsdsoIi2L75gar3ZvEEMgeQb4mGnjAVHA=; b=gMpkMBnrEP9a6KQhBDtfz+K5iiHNV4+HdRH8zYyALzpBhE2tJWY+jC51Opkh/j0UXziu a3kskUIX29swIICC8QLsNvn5YOQkcOVwMJe+k1JcBE2h0B6QY5HFG/MLKf7zn8edM6v2 r/9LYc5tdRFf8fTjWDsJqaiQc8zlWNBRF9R6sm8K4K1q4+wxo9/cqums8XeOM1hj2xuH TM09zFGPl5e7Tvw6lup086fwzkYgJu21zKeqCCqBZ/7eSkYXiQPzlYWhttWc4oh7h1Po c+Q6H018jnZfJHrs/OTEqWzshBztzkZmPNHr/uwkUGnAXB04h/5WnTmKej3tqoWKjgux gw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2h55krr1vk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Apr 2018 20:31:36 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w34KVaZB013422 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Apr 2018 20:31:36 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w34KVZBK022211; Wed, 4 Apr 2018 20:31:35 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:31:35 -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, davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, linus.walleij@linaro.org, rdunlap@infradead.org, roger.pau@citrix.com, rkrcmar@redhat.com, maran.wilson@oracle.com Subject: [PATCH v6 2/7] xen/pvh: Move PVH entry code out of Xen specific tree Date: Wed, 4 Apr 2018 13:31:30 -0700 Message-Id: <1522873890-18005-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 Once hypervisors other than Xen start using the PVH entry point for starting VMs, we would like the option of being able to compile PVH entry capable kernels without enabling CONFIG_XEN and all the code that comes along with that. To allow that, we are moving the PVH code out of Xen and into files sitting at a higher level in the tree. This patch is not introducing any code or functional changes, just moving files from one location to another. Signed-off-by: Maran Wilson Reviewed-by: Konrad Rzeszutek Wilk --- MAINTAINERS | 1 + arch/x86/Kbuild | 2 ++ arch/x86/platform/pvh/Makefile | 5 +++++ arch/x86/{xen/enlighten_pvh.c => platform/pvh/enlighten.c} | 0 arch/x86/{xen/xen-pvh.S => platform/pvh/head.S} | 0 arch/x86/xen/Makefile | 3 --- 6 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 arch/x86/platform/pvh/Makefile rename arch/x86/{xen/enlighten_pvh.c => platform/pvh/enlighten.c} (100%) rename arch/x86/{xen/xen-pvh.S => platform/pvh/head.S} (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 65ab509e4a42..52afae73beab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15189,6 +15189,7 @@ L: xen-devel@lists.xenproject.org (moderated for non-subscribers) T: git git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git S: Supported F: arch/x86/xen/ +F: arch/x86/platform/pvh/ F: drivers/*/xen-*front.c F: drivers/xen/ F: arch/x86/include/asm/xen/ diff --git a/arch/x86/Kbuild b/arch/x86/Kbuild index 0038a2d10a7a..2089e4414300 100644 --- a/arch/x86/Kbuild +++ b/arch/x86/Kbuild @@ -7,6 +7,8 @@ obj-$(CONFIG_KVM) += kvm/ # Xen paravirtualization support obj-$(CONFIG_XEN) += xen/ +obj-$(CONFIG_XEN_PVH) += platform/pvh/ + # Hyper-V paravirtualization support obj-$(subst m,y,$(CONFIG_HYPERV)) += hyperv/ diff --git a/arch/x86/platform/pvh/Makefile b/arch/x86/platform/pvh/Makefile new file mode 100644 index 000000000000..9fd25efcd2a3 --- /dev/null +++ b/arch/x86/platform/pvh/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 +OBJECT_FILES_NON_STANDARD_head.o := y + +obj-$(CONFIG_XEN_PVH) += enlighten.o +obj-$(CONFIG_XEN_PVH) += head.o diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/platform/pvh/enlighten.c similarity index 100% rename from arch/x86/xen/enlighten_pvh.c rename to arch/x86/platform/pvh/enlighten.c diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/platform/pvh/head.S similarity index 100% rename from arch/x86/xen/xen-pvh.S rename to arch/x86/platform/pvh/head.S diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile index d83cb5478f54..f1b850607212 100644 --- a/arch/x86/xen/Makefile +++ b/arch/x86/xen/Makefile @@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 OBJECT_FILES_NON_STANDARD_xen-asm_$(BITS).o := y -OBJECT_FILES_NON_STANDARD_xen-pvh.o := y ifdef CONFIG_FUNCTION_TRACER # Do not profile debug and lowlevel utilities @@ -21,7 +20,6 @@ obj-y := enlighten.o multicalls.o mmu.o irq.o \ obj-$(CONFIG_XEN_PVHVM) += enlighten_hvm.o mmu_hvm.o suspend_hvm.o obj-$(CONFIG_XEN_PV) += setup.o apic.o pmu.o suspend_pv.o \ p2m.o enlighten_pv.o mmu_pv.o -obj-$(CONFIG_XEN_PVH) += enlighten_pvh.o obj-$(CONFIG_EVENT_TRACING) += trace.o @@ -33,4 +31,3 @@ obj-$(CONFIG_XEN_DEBUG_FS) += debugfs.o obj-$(CONFIG_XEN_DOM0) += vga.o obj-$(CONFIG_SWIOTLB_XEN) += pci-swiotlb-xen.o obj-$(CONFIG_XEN_EFI) += efi.o -obj-$(CONFIG_XEN_PVH) += xen-pvh.o -- 2.16.1