Received: by 10.223.185.116 with SMTP id b49csp1025839wrg; Wed, 14 Feb 2018 10:25:22 -0800 (PST) X-Google-Smtp-Source: AH8x225TtSlBZb2Ydr4MmY7phJz43EN+tRSwpL2vkSM2hhPejiOiUF0F8aZ16x26IGxiF1YCy3Ql X-Received: by 10.98.86.27 with SMTP id k27mr116355pfb.174.1518632722379; Wed, 14 Feb 2018 10:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518632722; cv=none; d=google.com; s=arc-20160816; b=FCO99kbwNG8I1VvlYCJjuZbtCVQdVUgcrsElj5I16GXvS6dn22F1MxFhiSwIHzMrZm 2qeFt7b6N0jxiiKq9ddMXIUPsx/vb/It5eEFUrEjngfsRd8OPRdY4Axw09AA5bGEmcEi SoAoqwgpnHUsXIzm6usS1NAyNWJZIhU9gYbr/v9tMM3wq1MPXwtsj5yEhQkcbUcYL0vT vDFu+Sas6ALbF0RlG+PkWpxQR12EBUStK/jjHbr/SShpBlfseuz5s7824trxNRzJXglj J0r8Q4BLnGciEY7wGa2H9EBkPf5MDVBvlu9FsLLhDgZTHxmY1vdSHDm5jubftmkxqfZq htUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fX/b+lX9xLfrFHKGBC/8b8QsZDWzv7s0rTjnlJ8hO3U=; b=Kl3gF8vI+Ta3eDycsiMynBugIHiN6XiK08U6JKIKheSld2Qnye8llZlHYM3caa5SUT Evs0DNhycGwf3BZaWQr0MIrMCbs187Y0AdlwSmIlzGaPbmqIUVqpTlfzNJhCbs2eC8v8 zRzSVr2L9437/AoG92Hbe4wB1tlhVu+XjFpgMMF7kuzPKH8NSnf/SithU1ptnV2yXcSl UlQyaJCfDT2ls9IoxxYweXaCKzCeOK63LUBNOsyw5haUB61MlLut3I/PCFvKswjSj0Bj lrAByjBxFfelwOqvCjTJExl2iG8HOOXcCy+cTGRszQHEzfdg1aHsxTLEc2cqg3OpeC/D YofA== 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 o11si2809313pgn.796.2018.02.14.10.25.07; Wed, 14 Feb 2018 10:25:22 -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 S1161874AbeBNSWg (ORCPT + 99 others); Wed, 14 Feb 2018 13:22:36 -0500 Received: from isilmar-4.linta.de ([136.243.71.142]:48078 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161747AbeBNSWe (ORCPT ); Wed, 14 Feb 2018 13:22:34 -0500 Received: from light.dominikbrodowski.net (isilmar.linta [10.0.0.1]) by isilmar-4.linta.de (Postfix) with ESMTPS id 5C33F2008FF; Wed, 14 Feb 2018 18:22:33 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id 6D1A6203B5; Wed, 14 Feb 2018 19:22:08 +0100 (CET) From: Dominik Brodowski To: linux-kernel@vger.kernel.org, mingo@kernel.org, x86@kernel.org Cc: torvalds@linux-foundation.org, luto@kernel.org, ak@linux.intel.com, tglx@linutronix.de, dan.j.williams@intel.com Subject: [RFC PATCH 0/4] x86/entry/64: interrupt entry size reduction Date: Wed, 14 Feb 2018 19:21:09 +0100 Message-Id: <20180214182113.27247-1-linux@dominikbrodowski.net> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset applies on top of the two other tip/pti-related patches I sent out moments ago,[*] and try to implement what Linus suggested a few days ago[+]. [+] http://lkml.kernel.org/r/20180214175924.23065-1-linux@dominikbrodowski.net [*] http://lkml.kernel.org/r/CA+55aFwLTF3EtaQ4OpDv2UM41J=EU7gfemv=eVq+uQi31-usSg@mail.gmail.com . Overall, these patches provide for a sizeable cutting of up to 4.35k: text data bss dec hex filename 20987 0 0 20987 51fb entry_64.o-orig 16621 0 0 16621 40ed entry_64.o They are split up in four small steps to easen the review. Another advantage is that we can decide whether each additional step is really worth it in relation to an increase in code complexity. NOTE / WARNING: As usual, please be extremely stringent in reviewing these patches. Thanks, Dominik Dominik Brodowski (4): x86/entry/64: move PUSH_AND_CLEAR_REGS from interrupt macro to helper function x86/entry/64: move ENTER_IRQ_STACK from interrupt macro to helper function x86/entry/64: move switch_to_thread_stack to interrupt helper function x86/entry/64: remove interrupt macro arch/x86/entry/entry_64.S | 99 +++++++++++++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 37 deletions(-) -- 2.16.1