From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit Date: Tue, 17 Nov 2015 14:38:28 -0500 Message-ID: <564B8234.4000004__36868.8534400009$1447789206$gmane$org@oracle.com> References: <1447456706-24347-1-git-send-email-boris.ostrovsky@oracle.com> <56468D24.8030801@oracle.com> <564A0371.2040104@oracle.com> <20151116195906.GB20137@pd.tnic> <20151116202232.GC20137@pd.tnic> <564A50C3.1000200@zytor.com> <564B3C57.5000002@oracle.com> <564B7C2B.5030901@citrix.com> <564B81DE.90909@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <564B81DE.90909@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andy Lutomirski , Andrew Cooper Cc: David Vrabel , Borislav Petkov , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" , xen-devel List-Id: xen-devel@lists.xenproject.org On 11/17/2015 02:37 PM, Boris Ostrovsky wrote: > On 11/17/2015 02:16 PM, Andy Lutomirski wrote: >>>> Looks good to me. Does Xen have any sysexit/sysret32 equivalent to >>>> return to 32-bit user mode? If so, it could be worth trying to wire >>>> it up by patching the jz instead of the test instruction. > > We can actually make patching a little bit more efficient by replacing > the test instruction with 'xor %eax,%eax'. That way we won't need any > 'nop's. Nevermind that, we are looking at flags, not register. -boris