Received: by 10.223.176.5 with SMTP id f5csp1027528wra; Fri, 9 Feb 2018 11:07:58 -0800 (PST) X-Google-Smtp-Source: AH8x227nrlH+1OT/pTbo+p1D4DccCuiusLFHo1VmWVusgma/hGbXMq1XgzhZtFsEjR2dcx/IoHxO X-Received: by 10.99.178.68 with SMTP id t4mr2899906pgo.441.1518203278393; Fri, 09 Feb 2018 11:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518203278; cv=none; d=google.com; s=arc-20160816; b=yqQ0qyqVLm3qio4R8VkOeW1zjrdtWb0t5Zwf6YllSNMJAZnDMOoIDhlRL/dp7ZCMCc 28Vi15WVw9ByKqvvSE2UJrLJ79WKidUHEtRjGtgMfuTnJ5y01lGmoiEdotUkj2Y+Koi8 1l+BjWEWBXDJQmeOQkrvUgj3cQRzsNGRzaiFEJPVNAb2949yRns8AAIO9eiphLfMshkg Rz97Dw7IyWn1gPuuTLdU7ZmQVwzNgjwmE3A7wfK2oqfIU7nrAQ/IdybamMOCjsq0oHZ3 xm/LbTVte5H8i+6xW6Ifq0q9nN7BfpBR77toxuhG0aILoDA29GXtCVmakwij1KgkXt7q 41rQ== 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:arc-authentication-results; bh=VOZoRlX6Ah4SMldH1YNr8s8Qz1NWz7gzFpvNpcr7GRM=; b=u2F7rJnng595JX5nnXgiL7JlopQ0dkhNEf2/UR3RDwx2YelX9wN9aZNbgWAKSf42Ic vPi+MfZRVDUwAWwYebi7jCPEvsYQqAumH5tZN2v9oRu8sLg/hwv/mPUfz5x1qMzOf46X LftoYjTnmrp2TQSMe0fX9x7IHVHMYF8Uvbtg+x8gEvf8VplQ6XD2eXo8mG8gDtyMHRYe 4C7CJd033fb1XPAwwMBO1DiPMsFdpEHCsx2FDtf8Z9wPtnKllhFb1GzDGNdbz/oUs+jr xs5AOfWJI4UpnoVX31ckSHT7zlhDlF6CMyVqdRebH/4NSIWx1kNRYLp6WyA/8INPDZ55 0lgA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d74si95229pga.326.2018.02.09.11.07.43; Fri, 09 Feb 2018 11:07:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbeBITG6 (ORCPT + 99 others); Fri, 9 Feb 2018 14:06:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:53546 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeBITG5 (ORCPT ); Fri, 9 Feb 2018 14:06:57 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0377FACA0; Fri, 9 Feb 2018 19:06:56 +0000 (UTC) Date: Fri, 9 Feb 2018 20:06:54 +0100 From: Joerg Roedel 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 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: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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