Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751847AbbKQKy3 (ORCPT ); Tue, 17 Nov 2015 05:54:29 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:37243 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbbKQKy1 (ORCPT ); Tue, 17 Nov 2015 05:54:27 -0500 Message-ID: <564B0746.8090505@oracle.com> Date: Tue, 17 Nov 2015 10:53:58 +0000 From: Joao Martins User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Andy Lutomirski CC: Konrad Rzeszutek Wilk , Boris Ostrovsky , Borislav Petkov , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , xen-devel , David Vrabel Subject: Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit References: <56468D24.8030801@oracle.com> <564A0371.2040104@oracle.com> <20151116195906.GB20137@pd.tnic> <20151116202232.GC20137@pd.tnic> <564A4125.8000603@oracle.com> <20151116210314.GA10307@char.us.oracle.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2267 Lines: 62 On 11/16/2015 09:04 PM, Andy Lutomirski wrote: > On Mon, Nov 16, 2015 at 1:03 PM, Konrad Rzeszutek Wilk > wrote: >> On Mon, Nov 16, 2015 at 12:50:19PM -0800, Andy Lutomirski wrote: >>> On Mon, Nov 16, 2015 at 12:48 PM, Boris Ostrovsky >>> wrote: >>>> On 11/16/2015 03:22 PM, Borislav Petkov wrote: >>>>> >>>>> On Mon, Nov 16, 2015 at 12:11:11PM -0800, Andy Lutomirski wrote: >>>>> >>>>>> Are there really multiple feature bits for this stuff? I'd like to >>>>>> imagine that the entry code is all either Xen PV or native/PVH/PVHVM >>>>>> -- i.e. I assumed that PVH works like native for all entries. >>>> >>>> >>>> >>>> Almost. For PVH we will have a small stub to set up bootparams and such but >>>> then we jump to startup_{32|64} code. >>>> >>>> >>>>> I just reacted to Boris' statement: >>>>> >>>>> "We don't currently have a Xen-specific CPU feature. We could, in >>>>> principle, add it but we can't replace all of current paravirt patching >>>>> with a single feature since PVH guests use a subset of existing pv ops >>>>> (and in the future it may become even more fine-grained)." >>>> >>>> >>>> Actually, nevermind this --- I was thinking about APIC ops and they are not >>>> pv ops. >>>> >>>> Note though that there are other users of pv ops --- lguest and looks like >>>> KVM (for one op) use them too. >>>> >>> >>> Honestly, I think we should just delete lguest some time soon. And >>> KVM uses this stuff so lightly that we shouldn't need all of the pvop >>> stuff. (In fact, I'm slowly working on removing KVM_GUEST's >>> dependency on PARAVIRT.) >> >> Even for the pvclock? >> >> (sorry for stealing this thread on this subject). > > I don't think that pvclock uses any of the paravirt infrastructure. > It's just another clock source AFAIK. > Yeah, but pv_time_ops is still used on both Xen and KVM. Even though it looks that on KVM some of it's used only when pvclock isn't marked as stable (i.e. no PVCLOCK_TSC_STABLE_BIT). Joao > --Andy > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/