From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40C52C38A2A for ; Mon, 11 May 2020 00:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1069B2082E for ; Mon, 11 May 2020 00:55:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589158528; bh=aoUZGApnNHdzjKvoHee7osP+3B+0Np7mo+jawIXTt/4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=YgKpJcLRMia81k/pbTnoRem8+fJGMNUmvNXmaYmJK4Xn8bZttjW09Mlswg05QfKks PiN2uq7XXRQceTMk6hGW0o5zQU5tGFW6zdyfY9fthOjVNJkI76wGT6Tr19W2KitBv7 ZnOBMCsF0Yud2K4tyTsFK8Q6aJnaEHlugPcVSg3U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729422AbgEKAz1 (ORCPT ); Sun, 10 May 2020 20:55:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:59918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729095AbgEKAz0 (ORCPT ); Sun, 10 May 2020 20:55:26 -0400 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E408E2495B for ; Mon, 11 May 2020 00:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589158526; bh=aoUZGApnNHdzjKvoHee7osP+3B+0Np7mo+jawIXTt/4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0B5kFdyI5zGmJYycA7nt4gwljoDS5Y4t079wGEOtUM4SWUawyAJ2rvkJWyAQt5Odw sFbA3lnGJRIsrKnO/Ty5DlLnL2ISMHvK+0HEhwutOjbXlSOBzdrZn0cLOhJXsDJdk/ xcFThsdG15eFDGA5BVykKF2dz5v8lapBdgzEvxY4= Received: by mail-wr1-f45.google.com with SMTP id g13so8799088wrb.8 for ; Sun, 10 May 2020 17:55:25 -0700 (PDT) X-Gm-Message-State: AGi0Pua7OXkFMOYfAPkdZreV47HsyOaytCio6NjFGYGNGV9W2j0GwtEN Sv3R/BJ54oiccYfCPf++3MPXETxoTlyl9GC/emqKow== X-Google-Smtp-Source: APiQypL0jfqRxOFY9tblYrnRg3Cragd5Ch8bGhBw6ZT3Fdt0IZWGOZCQxCxqQHqM0RuEIH7cWMLw9x2MsA0SU/IeCNU= X-Received: by 2002:adf:f446:: with SMTP id f6mr8119499wrp.75.1589158524320; Sun, 10 May 2020 17:55:24 -0700 (PDT) MIME-Version: 1.0 References: <20200505134354.774943181@linutronix.de> <20200505134904.166735365@linutronix.de> In-Reply-To: <20200505134904.166735365@linutronix.de> From: Andy Lutomirski Date: Sun, 10 May 2020 17:55:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V4 part 3 09/29] x86/entry/32: Provide macro to emit IDT entry stubs To: Thomas Gleixner Cc: LKML , X86 ML , "Paul E. McKenney" , Andy Lutomirski , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner wrote: > > From: Thomas Gleixner > > 32 and 64 bit have unnecessary different ways to populate the exception > entry code. Provide a idtentry macro which allows to consolidate all of > that. > > Signed-off-by: Thomas Gleixner > Reviewed-by: Alexandre Chartre Acked-by: Andy Lutomirski > + /* fixup %gs */ > + GS_TO_REG %ecx > + movl PT_GS(%esp), %edi # get the function address > + REG_TO_PTGS %ecx > + SET_KERNEL_GS %ecx This GS garbage remains an atrocity. Some day if I'm inspired to clean up 32-bit stuff, I'll decrapify it.