Received: by 10.223.185.116 with SMTP id b49csp6661027wrg; Wed, 28 Feb 2018 13:14:14 -0800 (PST) X-Google-Smtp-Source: AH8x227w7M1iTq8yJYcavt1QeCWt3Sof3hQs3bOgI5avNTBcbqbOs9wjbypSylOWBhcgUOTgP7d8 X-Received: by 2002:a17:902:8b82:: with SMTP id ay2-v6mr19142523plb.12.1519852454545; Wed, 28 Feb 2018 13:14:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519852454; cv=none; d=google.com; s=arc-20160816; b=O4xOEbGD163/Ylmwj/O+0uBqMxgrzwgSmk4rRKuUU8xAXaMkJe/ta0zFSUWJ3b0u2c T08JuPTE7RPZgYKdzv8QNVbXnSaw68fUI3XMv6abACsKDGBXMHj81IMFB1bevHdQFyPl svxzxRrcGa49tM93TuI9dVaEjtKiNgsrkpVpw+RR7og3RetY+FA7dADZ+lSTJFiPlqwA nxD8hoPATJ0JPHSiExAftY07pOPPhOPQLLVadUrABtb+RbUICL4VIsU3/e8BKkbj3ZaT saaPdeTnf2T2+kWwpF12e5T+C/F9ckj/ULX04NhLUWoerXuJ6HzQ+W02LJ0mRQDYIotp QvRQ== 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=KOfMGJ3LGy6kKia9W4LE/PIdVJ5AooObxxosqBLuTTk=; b=QbQRrOPVMW9J0eooUnQoK/hn92A4Yi0EeypTl1fhUIUxxOBlVMrmkLHDi3TtrRjZo9 mAGcKNX+l2XQarKxbkKH7bGXYh7qyFU1E6m32MkAovekp6T2fMwTgS82Uy3yPjGPEa9m Rp28ryRPyNKJksUrMAIjpT6N5TQKSiJT2N4TbNrkLjQ/u3nVZ5Qrs0L2+EeXZMZM+yGi ELbkbKaQ2OJ+sl/k4BpF1BPHmUhVn26kxL+jtUUibUviNnNKleDZf0NYNqG2LvbOc6K8 TkkNnpUYiR4Qu0hmvUWfTQqkxT7hCqHBc6zewo31VdR56h418pd2O4nD64SyJ48cqXc1 Nj9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=P8OAcYkj; 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 70si1815043pfk.60.2018.02.28.13.13.59; Wed, 28 Feb 2018 13:14:14 -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=P8OAcYkj; 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 S934913AbeB1VMi (ORCPT + 99 others); Wed, 28 Feb 2018 16:12:38 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:41028 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934898AbeB1VM2 (ORCPT ); Wed, 28 Feb 2018 16:12:28 -0500 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 w1SL8GlN007119; Wed, 28 Feb 2018 21:09:41 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=KOfMGJ3LGy6kKia9W4LE/PIdVJ5AooObxxosqBLuTTk=; b=P8OAcYkjMshSRVNBfiz/8DLgbQuzfmkHHnwTdOHS2m/tc2tTOGasypmo+IcXXXqpR+Yl 3XoWl7BwnNPhTiYmabxZh0CJx6HNPQhcEgdRtAvW8yKi9O9yvY2+VwgIw8/v8lWDMVFO l/KgnoynnINdVJQH26riTZdIxelSPCNaaBF1dDtAWBa292o/967sQEJ60c68Bl4DVQUo krNtUEJefqImFsNMtBIaPt3/WeuUYwbrj5PkZ8qodA4TfQcAd4j9rWySrptg40vwldFS pxDfjFxJKT3wupsKUIN77bNlWemN2vDaBrC4jzHmR6ETnqmad5KnzgDTKzmPkLtodxxX yw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2ge1w4gr1h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Feb 2018 21:09:41 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1SL9fxi023993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Feb 2018 21:09:41 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1SL9dbt032593; Wed, 28 Feb 2018 21:09:40 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:09:39 -0800 Received: by char.us.oracle.com (Postfix, from userid 1000) id 86D986A09F7; Wed, 28 Feb 2018 16:09:37 -0500 (EST) Date: Wed, 28 Feb 2018 16:09:37 -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 3/7] xen/pvh: Create a new file for Xen specific PVH code Message-ID: <20180228210937.GL11576@char.us.oracle.com> References: <1519842483-8887-1-git-send-email-maran.wilson@oracle.com> <1519842483-8887-4-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-4-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-1802280256 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:59AM -0800, Maran Wilson wrote: > We need to refactor PVH entry code so that support for other hypervisors > like Qemu/KVM can be added more easily. > > The first step in that direction is to create a new file that will > eventually hold the Xen specific routines. > > Signed-off-by: Maran Wilson > --- > arch/x86/pvh.c | 1 - > arch/x86/xen/Makefile | 1 + > arch/x86/xen/enlighten_pvh.c | 11 +++++++++++ > 3 files changed, 12 insertions(+), 1 deletion(-) > create mode 100644 arch/x86/xen/enlighten_pvh.c > > diff --git a/arch/x86/pvh.c b/arch/x86/pvh.c > index 436c4f003e17..b56cb5e7d6ac 100644 > --- a/arch/x86/pvh.c > +++ b/arch/x86/pvh.c > @@ -19,7 +19,6 @@ > * xen_pvh and pvh_bootparams need to live in data segment since they Perhaps remove 'xen_pvh' from there.. > * are used after startup_{32|64}, which clear .bss, are invoked. > */ > -bool xen_pvh __attribute__((section(".data"))) = 0; > struct boot_params pvh_bootparams __attribute__((section(".data"))); > > struct hvm_start_info pvh_start_info; > diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile > index 7e8145b33997..ef6481a83768 100644 > --- a/arch/x86/xen/Makefile > +++ b/arch/x86/xen/Makefile > @@ -21,6 +21,7 @@ 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 > > diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c > new file mode 100644 > index 000000000000..4b4e9cc78b8a > --- /dev/null > +++ b/arch/x86/xen/enlighten_pvh.c > @@ -0,0 +1,11 @@ > +#include > + > +/* > + * PVH variables. > + * > + * The variables xen_pvh and pvh_bootparams need to live in the data segment And remove 'and pvh_bootparams' here as well? > + * since they are used after startup_{32|64} is invoked, which will clear the > + * .bss segment. > + */ > +bool xen_pvh __attribute__((section(".data"))) = 0; > + > -- > 2.16.1 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xenproject.org > https://lists.xenproject.org/mailman/listinfo/xen-devel