Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp434832ybf; Wed, 26 Feb 2020 16:05:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxhe8Ku0po7OnAMXfGPJJnbgB+i6GltNK9jDoiq7yox2OEVFXdjKZhe0jwxTnn9I6KBsHEU X-Received: by 2002:a9d:21c5:: with SMTP id s63mr1112590otb.142.1582761943396; Wed, 26 Feb 2020 16:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582761943; cv=none; d=google.com; s=arc-20160816; b=nwpyfpnq5Rgw8pFu0RVuw8KvO/SvKThh6D9ePiHevGTeUblyMWNNm56algIB73okX9 ANTBlCcZ0jceV9x3DgQvIPtDzY8FLJ07rbLKealy7TKtli8nfGR9Ebra/3y3zatMm0Uf r1rNO6m8/P9LVZyXn0Z2smgNqPHUF063qB8nyvO74GHyESrpjZUjfzusHjGe1iieP8DQ bBDosAp2DouyWJb/ZHCNjpeGoZOJ8fGQB8/z1cKrVJreMUQ/AAx1myOc/o+VceiWDTv1 EkX8IU5brccM3Sh4nfB8iBSEvmAC39ZAu617Gjk4P9fSALKxJzqAdeZVFKPFJH+LpUou QqFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=h/9GGAuYdG+lV6Mcnmy3R/59iu7Yn//RJyM4cVFMhfE=; b=IYezdESltPU2aypinwdMzYPfMb836A43VRnAZW7zpc6R42eHtyGKfm+RBOSv9h4QK5 2vzTAXboMIc8NGqRP6EAq71HIoyJKCB/ZX6uLjKTVKqznuOHQ3EhhsGLTX+t9yWpgRLT HEuc8MYxuS9vR4R+nBQcFj3q41PMGeWQb1brjCqW0obUvUHg0cc6O589KezaEV4jfHRX dFq0L2cljfOeYMY3ZGLQ2Niu6TakIcPjl8+jM7m+qSD5azzhMtaU0KzG6AqhKKfELDKm Ud+Rr6Rr7kMRaBhI6sz1o+OoooakYBavGnShZP/m10UqSiKDXPDJ5d7JLHeGx+2x6OhH pKoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WXLjFVGn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.16.05.29; Wed, 26 Feb 2020 16:05:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WXLjFVGn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728008AbgB0AFB (ORCPT + 99 others); Wed, 26 Feb 2020 19:05:01 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:36820 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbgB0AFB (ORCPT ); Wed, 26 Feb 2020 19:05:01 -0500 Received: by mail-il1-f196.google.com with SMTP id b15so797779iln.3 for ; Wed, 26 Feb 2020 16:04:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h/9GGAuYdG+lV6Mcnmy3R/59iu7Yn//RJyM4cVFMhfE=; b=WXLjFVGn6mEbArPzDEPAutgUThJrPgjQPhpOjNZ+1lQfgjFPgbfhqjRs7G4SlHcoC4 NwH0qbK+yfwfBAMFmNxfadEQh16USbJm7ash5LXFZVpBiiGiRI8tI+nUFEMcWwTLXnkW qv0DWkhxG0n+Fpypp1A+6eVuNQw+DU4N6O31MWRh/5L7MX6J2ucDC9a56GhHMZcqbIxl f6CV9nk5Op2aEizd3WOOGvpCdMPoUm5zmzvgobwtiJk/2PsEcgqX8cMDJ4kCLq1TZ6mF XhiHPBc4Zpsz0myaqwZlD2vZ3+MxI687GE5osc5PjAEA+ZZ4ox0RE2BuiYkRpPRWBqIk zW2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h/9GGAuYdG+lV6Mcnmy3R/59iu7Yn//RJyM4cVFMhfE=; b=rYEA4khmx1uOWpGW8zumF73HWGec+EeeCmlVWTvbtZazzUS3Qujow7iOVdOyY5wTFh Bx5gCEh6rTO+i0MdtvjLG4TdO9PDOrCBHuhw1kR4HIfZgRUmoXcLG0FEMLGVsGQm+Ixm ANZ4PVY+5jgjDYV8si7xJQJZlmj17uAd4876/PRscFQh8jlKtfhB4tTQjieg2WXYyROT FNwAK97JSKBW9/W90V1ZvGWIS/WLpvEM+AuZB5FmmkrcmVbLFA+XNFWsJkvBvs5tkyD/ hxLavr9ETlSVnvAtdXvAEnghiztUpzyPTPKqjuEoti/fzuya3dFRnyccLTWsQAPJfnED hbGg== X-Gm-Message-State: APjAAAVsmVn39qkJ2p5ZoO6tluVp7B+jnXkU6H2K7m7WcAO+UYxHPaJJ 29G5J5ippwnyC8ETdWtzwcv1b9/kEdAIjptvD49V X-Received: by 2002:a92:1d5a:: with SMTP id d87mr1499236ild.27.1582761899306; Wed, 26 Feb 2020 16:04:59 -0800 (PST) MIME-Version: 1.0 References: <20200225224719.950376311@linutronix.de> <20200225231609.000955823@linutronix.de> <87k149p0na.fsf@nanos.tec.linutronix.de> <87eeugoqx2.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eeugoqx2.fsf@nanos.tec.linutronix.de> From: Brian Gerst Date: Wed, 26 Feb 2020 19:04:47 -0500 Message-ID: Subject: Re: [patch 01/15] x86/irq: Convey vector as argument and not in ptregs To: Thomas Gleixner Cc: LKML , "the arch/x86 maintainers" , Steven Rostedt , Juergen Gross , Paolo Bonzini , Arnd Bergmann 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 Wed, Feb 26, 2020 at 6:43 PM Thomas Gleixner wrote: > > 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? Because this also applies to the 64-bit kernel? -- Brian Gerst