Received: by 10.192.165.156 with SMTP id m28csp1203959imm; Mon, 16 Apr 2018 16:15:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/LjXZ2vGg2jj/fnTICI6n4pJedJxxsdMrMccZN7+rHz90PqSlCPpcU+5N+2qPkTdJTfMPm X-Received: by 10.99.110.5 with SMTP id j5mr14745191pgc.246.1523920551002; Mon, 16 Apr 2018 16:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523920550; cv=none; d=google.com; s=arc-20160816; b=Oh4mOV7V5qDtLa6Tgw4cJvlU+7btwPgXRXDvszlxboXH9QaIK8ymnY/0N0jvmFhDsJ 9ybnTlObZsKQLRAWVQZXIWwv9v6S1igE4mVh2A6/JqktVr062XoIh8IJSI32OqDjDbEB ZRew3QTsk3Mu0uiGdO0GB5EOrKwR+08Ywym16uSHbAJp91YUejMAd9E/KCRbvYdk2Gu/ N+Nh9jCita5dZ8jAf/ahAGxWGgMB89ziWT7ZJQ1DBZm6xL8GEENaN+/LEQ7K6QegDINQ xVbxrbH7ASfKajwMvduK0AKJjLvOBAIzxPha91AgwR2YqX5sZo0Re6EfmpnUFdFBOenO D4Mw== 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=Ul6Dgu2i/W+6QVvRetR9xZUKe8gJs3nB3/QKDkOY/u4=; b=D1xSsGysCU9KG69RkfxLGXVV1M6UUaG3oOGRZCh9BMILthy8pSCOZ4BAv/SfBPVo8g 3ybs3YSh3O1pgzfO39cIkqHJn4Z3wza7Le0lVynVzcAsKE1I7Ce0KJjUXeka7z8KjmrK Q4me1K4Top2xx3MjIaOS2z1WtieI4IrUSPlRzEYktMI+B6rqNn3oUv7gfUCt3yXTT6o8 Kb0976dwmWBA+x9HTxnw0YagClkjIt/BHgpfQ3Gg/Q8lksfQzkjtYmrbpGG/fqWQbaQF TFWZ5LaDl09bPEL2dtr0qUfp7HHdds8YQ9iS6KXXFwKPIT45OgPQFzmHWKfD3L9j/Rtp 0c4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=iL91CRdo; 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 v24-v6si4567994plo.490.2018.04.16.16.15.37; Mon, 16 Apr 2018 16:15:50 -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=iL91CRdo; 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 S1753038AbeDPXM7 (ORCPT + 99 others); Mon, 16 Apr 2018 19:12:59 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:43386 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059AbeDPXMz (ORCPT ); Mon, 16 Apr 2018 19:12:55 -0400 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 w3GNB0RA077738; Mon, 16 Apr 2018 23:11:56 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=Ul6Dgu2i/W+6QVvRetR9xZUKe8gJs3nB3/QKDkOY/u4=; b=iL91CRdoq5RyLT892g7eHcibePxvfM4TLc6CPZy/cxKmmZfak9W+AtVsavN08MeHHzXl Jzmu+0bUKKDO/VDGaE4e3WiFkSni/VmdVBZycvC77XNJzpvbMDjoVpB0qIpclV2PE5ad FTjzs9i7wCKaL+nFBIrcAYGdoj5pLf1hveV2TWPwBHl6Ak8e6p+t2/Kw/3On7uAAxZx8 YMj58yaimS0u/DYQZiM+ID5PBEt3hL+Yp76cmyFPD/KK8eXHgY8RXC1iKdlbIIHsuDiK 1BYII6kbc7ihKqwgsfgL6eBXf6xMi68f4m135i/eBQVLne9zjrZLGsEOkx8T8S9Gg7N8 wQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2hbam57bpy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Apr 2018 23:11:56 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3GNBth4020226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Apr 2018 23:11:56 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3GNBtQ1026992; Mon, 16 Apr 2018 23:11:55 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:55 -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 v7 2/7] xen/pvh: Move PVH entry code out of Xen specific tree Date: Mon, 16 Apr 2018 16:11:50 -0700 Message-Id: <1523920310-27620-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 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 7bb2e9595f14..0b816f588fe1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15385,6 +15385,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