Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp418175ybf; Wed, 26 Feb 2020 15:45:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxG6PabV0qjvKAdpz4goufW7CIBtcC3PisKtSWH+VHEvsZDuEIJ1Hd78aRQ0ZDQY/x62Hfo X-Received: by 2002:aca:1903:: with SMTP id l3mr1271250oii.16.1582760746286; Wed, 26 Feb 2020 15:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582760746; cv=none; d=google.com; s=arc-20160816; b=kzUwbMjYFNrfs0/RtsdMPDKvwVcMerXdNcFdNCAJEFRhcQk7VftYB4KCP7133VUl0d TbzOa7NzK6Di9Zv6zR/705RRglwL7pRRWfEnb3/m6GponoQBkchXfi6Fs/no+DOySsDu v3RVEo4lg4IH3wEpCBw5ZXW8irOCp57U9hkHoqFk+5tMfMoH+LNtlcB9RdjMVppKM/iM ZAk1W6TWF2yYFVZxpdE3autnrykpj7ySGgK8HZoE/vFs9wCAWbwTqmf9DJcjGElv0mNY d2+GGke6jPO34b0pXDXP2dXCHbV5YPt+N2XvR7BZK1KmYbE/biUGReTVgO780mg4Ucbq wSWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=ot0DQVS4S/ZMIzl5ck4MLFV6fk1MUCJJeDbmLaAh73M=; b=xhYM5AWnSENMrJaXEcb70LRIp4Q5qRrp3RwW4DkBk9SkyxuEIPvSpI5Phyg+p/VwJt JpQMbsf2rxHYj/RQ0VlctbChRMqHJ49ct2AsvKz3wrcqr1CzYjpAFkJPMwl41bLHaDh4 JbFEhgQdawrsCSLf/9FrL5jj6pAear9Z4C/O1fNoCrQJDkOVanNNIcUR5N6xyEXTRURe IY6/LQH2MftlkLECp8FSCa2L4Gpg4UAdRewR4Tj1fwKgDE7OhNrxi+v4USk74ew4QqWn 4NF9TcuX6KgbqTTR+T+vwviN80Pr6jDexR056dV/j22jggEkChPBKvIJrbMwOPr2OC55 lEMQ== 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 n1si526619otf.102.2020.02.26.15.45.32; Wed, 26 Feb 2020 15:45:46 -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 S1728002AbgBZXoF (ORCPT + 99 others); Wed, 26 Feb 2020 18:44:05 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:32786 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727987AbgBZXoF (ORCPT ); Wed, 26 Feb 2020 18:44:05 -0500 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j76LK-0000RN-A5; Thu, 27 Feb 2020 00:43:54 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id C9F5F100EA1; Thu, 27 Feb 2020 00:43:53 +0100 (CET) From: Thomas Gleixner To: Brian Gerst Cc: LKML , the arch/x86 maintainers , Steven Rostedt , Juergen Gross , Paolo Bonzini , Arnd Bergmann Subject: Re: [patch 01/15] x86/irq: Convey vector as argument and not in ptregs In-Reply-To: References: <20200225224719.950376311@linutronix.de> <20200225231609.000955823@linutronix.de> <87k149p0na.fsf@nanos.tec.linutronix.de> Date: Thu, 27 Feb 2020 00:43:53 +0100 Message-ID: <87eeugoqx2.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Brian Gerst writes: > On Wed, Feb 26, 2020 at 3:13 PM Thomas Gleixner wrote: >> Brian Gerst writes: >> Now the question is whether we care about the packed stubs or just make >> them larger by using alignment to get rid of this silly +0x80 and >> ~vector fixup later on. The straight forward thing clearly has its charm >> and I doubt it matters in measurable ways. > > I think we can get rid of the inversion. That was done so orig_ax had > a negative number (signifying it's not a syscall), but if you replace > it with -1 that isn't necessary. A simple -0x80 offset should be > sufficient. > > I think it's a worthy optimization to keep. There are 240 of these > stubs, so increasing the allocation to 16 bytes would add 1920 bytes > to the kernel text. I rather pay the 2k text size for readable and straight forward code. Can you remind me why we are actually worrying at that level about 32bit x86 instead of making it depend on CONFIG_OBSCURE? Thanks, tglx