|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/x86: Adjust stack pointer in xen_sysexit
On 11/15/2015 01:02 PM, Andy Lutomirski wrote: On Nov 13, 2015 5:23 PM, "Boris Ostrovsky" <boris.ostrovsky@xxxxxxxxxx> wrote:On 11/13/2015 06:26 PM, Andy Lutomirski wrote:On Fri, Nov 13, 2015 at 3:18 PM, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> wrote: So it turned out that for compat mode we don't need to do anything since xen_sysret32 doesn't assume any stack format (or, rather, it assumes that it can't be used) and builds the IRET frame itself. As for XEN_DO_SYSRET32 --- we'd presumably need to have a nop for baremetal otherwise current paravirt op will use native_usergs_sysret32 (for compat code). Which means a new pv_op, I think.Agreed, unless... Does Xen have a cpufeature? Using ALTERNATIVE instead of a pvop could be easier to follow and be less code at the same time. Frankly, following the control flow from asm through the pre-paravirt-patching and post-paravirt-patching variants and into the final targets is getting a little bit old, and ALTERNATIVE is crystal clear in comparison (and has all the interesting info inline with the rest of the asm). Of course, it doesn't work early in boot, but that's fine for anything involving user/kernel switches. 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). And I don't think we should go ALTERNATIVE route for one set of features and keep pv ops for the rest --- it should be either one or the other. -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |