Received: by 10.223.185.116 with SMTP id b49csp6662721wrg; Wed, 28 Feb 2018 13:16:05 -0800 (PST) X-Google-Smtp-Source: AH8x227Ln0EoaFuhmzg5NzFe/rYO6LLT/WMl60YZP80RbDx/RpdEzQRQQ0dLgnmMTKo8E+bUgcoE X-Received: by 10.98.61.133 with SMTP id x5mr19128295pfj.181.1519852565374; Wed, 28 Feb 2018 13:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519852565; cv=none; d=google.com; s=arc-20160816; b=TeJvnAbNa8prrrYMoYLdOa36//Zwj41a/bJgzErw8wsZA4y4TNzYTp/MQFeQsArOw8 vRv3M7fp4h77AA/NV85SvO+SQgjc65Crg38MvK+QO+HJeMuMf5f8N8kvcuPEFbhDl63j Q8RXUh/8S2du8wO7Q0zDrQL3GwtAOWC2dFHcqRDH9SbOHBKLKYObKy3sg69MxiigMxlJ 1cUXqS10BGbFEdK8rFc3jYSD5x9U0IUouB8b8d7j7VOJ2dbmV4mwuNLNEhE5DdMf0Dtu ovRUU3T1afeEEnErggUeK3W3otf42POqmg4nx6X1CDpPnUeB8wW/+yFNJSpfrzEI+OiE sggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=wvDD1PXe+Icvn8ECu3gSfD/p/X88Rkmt9GXamBYlThI=; b=x9VIBn3K9sCh6YLJ19rtEYoe6T86M+/PAmKjvcUlJMU62zGjI/Ofm9ToWo+PF3gLxD FyN9sTGLO4jcysZWLuSLSm5GTjfBA1iqfDAFhx6jmu43FiCVcjQfeFYKom0cy6I8G0DR qhhBFQ0KjZHSZD5mU3UVqKf+hXKi1wN/rJrN+ImSFgqC7mpyzyoszHAbtFyBrWVUZtv7 5Q8GPZq0UaGqsaJMhpUbTkJeY3prk/jli99+lR7PCsiOlEYUX1EpEEMITa7D2Tc019mQ ecU/0JQhPeK3bZ5jGRqGfowegn+JTdBNj2kCSShWpKxHwEj3/Frp61QOUAWxomIZcw21 IuUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=E16lkVmo; 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 p1si1455439pgc.593.2018.02.28.13.15.50; Wed, 28 Feb 2018 13:16:05 -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=E16lkVmo; 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 S934951AbeB1VOs (ORCPT + 99 others); Wed, 28 Feb 2018 16:14:48 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:56638 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934932AbeB1VON (ORCPT ); Wed, 28 Feb 2018 16:14:13 -0500 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 w1SLDIDx162095; Wed, 28 Feb 2018 21:13:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=wvDD1PXe+Icvn8ECu3gSfD/p/X88Rkmt9GXamBYlThI=; b=E16lkVmoFxWDNWrpzWsP5cMULnQM7v8dRqdKlbgeqD+IDNJBDh+VUicft3wYdmulqwS3 vUFcOruw9KVa60KAwIKr+zmWhgMr/ZIZgLcnTRojdqfht/pHzoRW7LXPLT9L1nlz1X/f x+PNx8YmCbyMDr+SOl4+os53pHsfg/COX7uYWWrKvgGR/ngtaK3PCZtDzHi20OkPzCAd IEIKR7NmTQbnG+p1i/nmgvXpuWEBnO89wTjo/sna7GQLBXm7g+7gzRm/hy3+sfG1Er26 DcE/QQxhKQdHA1wMJIt/3Yo7GS+jV3TQnjPvbhhlLe9O33fqHq44vA6ByVXVjjnVWy0o vA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2ge24s0mhb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Feb 2018 21:13:28 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1SL8IVf009986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Feb 2018 21:08:18 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 w1SL8GS9016491; Wed, 28 Feb 2018 21:08:17 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 28 Feb 2018 13:08:16 -0800 Received: by char.us.oracle.com (Postfix, from userid 1000) id 769756A09F7; Wed, 28 Feb 2018 16:08:14 -0500 (EST) Date: Wed, 28 Feb 2018 16:08:14 -0500 From: Konrad Rzeszutek Wilk To: Maran Wilson Cc: pbonzini@redhat.com, jgross@suse.com, boris.ostrovsky@oracle.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, thomas.lendacky@amd.com, dave.hansen@linux.intel.com, rkrcmar@redhat.com, gregkh@linuxfoundation.org, mchehab@kernel.org, hpa@zytor.com, linus.walleij@linaro.org, mingo@redhat.com, rdunlap@infradead.org, luto@kernel.org, jpoimboe@redhat.com, tglx@linutronix.de, bp@suse.de, davem@davemloft.net, kirill.shutemov@linux.intel.com Subject: Re: [Xen-devel] [RFC PATCH v4 2/7] xen/pvh: Move PVH entry code out of Xen specific tree Message-ID: <20180228210814.GK11576@char.us.oracle.com> References: <1519842483-8887-1-git-send-email-maran.wilson@oracle.com> <1519842483-8887-3-git-send-email-maran.wilson@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519842483-8887-3-git-send-email-maran.wilson@oracle.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8818 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-1802280257 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 10:27:58AM -0800, Maran Wilson wrote: > 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 Thank you! > --- > MAINTAINERS | 1 + > arch/x86/Kbuild | 3 +++ > arch/x86/{xen/xen-pvh.S => pvh-head.S} | 0 > arch/x86/{xen/enlighten_pvh.c => pvh.c} | 0 > arch/x86/xen/Makefile | 2 -- > 5 files changed, 4 insertions(+), 2 deletions(-) > rename arch/x86/{xen/xen-pvh.S => pvh-head.S} (100%) > rename arch/x86/{xen/enlighten_pvh.c => pvh.c} (100%) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 93a12af4f180..dc89f3a279bd 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -15210,6 +15210,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/*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..a4e5e3d348dc 100644 > --- a/arch/x86/Kbuild > +++ b/arch/x86/Kbuild > @@ -7,6 +7,9 @@ obj-$(CONFIG_KVM) += kvm/ > # Xen paravirtualization support > obj-$(CONFIG_XEN) += xen/ > > +obj-$(CONFIG_XEN_PVH) += pvh.o > +obj-$(CONFIG_XEN_PVH) += pvh-head.o > + > # Hyper-V paravirtualization support > obj-$(subst m,y,$(CONFIG_HYPERV)) += hyperv/ > > diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/pvh-head.S > similarity index 100% > rename from arch/x86/xen/xen-pvh.S > rename to arch/x86/pvh-head.S > diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/pvh.c > similarity index 100% > rename from arch/x86/xen/enlighten_pvh.c > rename to arch/x86/pvh.c > diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile > index d83cb5478f54..7e8145b33997 100644 > --- a/arch/x86/xen/Makefile > +++ b/arch/x86/xen/Makefile > @@ -21,7 +21,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 +32,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 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xenproject.org > https://lists.xenproject.org/mailman/listinfo/xen-devel