From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id 5E1356B0022 for ; Fri, 9 Feb 2018 14:07:00 -0500 (EST) Received: by mail-pg0-f72.google.com with SMTP id a2so4421902pgn.7 for ; Fri, 09 Feb 2018 11:07:00 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id g3si2114661pfe.57.2018.02.09.11.06.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 09 Feb 2018 11:06:59 -0800 (PST) Date: Fri, 9 Feb 2018 20:06:54 +0100 From: Joerg Roedel Subject: Re: [PATCH 09/31] x86/entry/32: Leave the kernel via trampoline stack Message-ID: <20180209190654.cvlrp22ly5gbxbxr@suse.de> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> <1518168340-9392-10-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: Linus Torvalds , Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , the arch/x86 maintainers , Linux Kernel Mailing List , linux-mm , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek On Fri, Feb 09, 2018 at 05:43:55PM +0000, Andy Lutomirski wrote: > The 64-bit code mostly uses a bunch of push instructions for this. I had it implemented with tons of push instructions first, but that doesn't work in cases where the stack switch needs to happen only after everything is copied over. So I switched to 'rep movsb', which in my eyes also makes the code easier to understand. Joerg -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org