Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp321418pxa; Wed, 26 Aug 2020 11:31:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwCn7oHy/d1N96enmPftKfinYv+wqnuaMlDi58HltV7PRIloi93QrDkTn2JmDkUUAfiJWl X-Received: by 2002:a17:906:684b:: with SMTP id a11mr17604948ejs.424.1598466689910; Wed, 26 Aug 2020 11:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598466689; cv=none; d=google.com; s=arc-20160816; b=TOYGsDahhzwbbxTgITK+okBV3Jmg0lilgEpiyghkFK9kz8lBsYsnXYwGZLWKKtx74R WBzcPIxubl3Gv4t9Y0U23GsuHYBcDEfY0UsDHY3fLBjAyTofEjD8Rm3qHi7oTIT/WPuv JmnrHpLJubcHldsfGihGBEgv2+pc938yAem/r9wczJA9CUjhLQnL8t2V4WpbyjmQA3hY QUU4KrF+FzserZ4uOUWm3O8iAN2FAHiYKk63UNNgc/pxjNPAgNUDVSTiMwBhM9Q8QxbL 5jTqTK7cINghzkCwuEjROgu/F6+afewQWmiWx/jxBrtzNt1L1YMDQoWNaL1J8CRsdDcG jNOw== 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:dkim-signature:dkim-signature:from; bh=8sNGll/xT6FzW7aAsxR2/1F9E14nVz0yEahFp4wbolY=; b=Ao3GB3dJKVBNI+sAaeAIWzpJKSXNfkv/aMi5msveccaUMqdwWFhuP7QLS0wNwtzY6y e2cqDkarzm1vswRsQ1imurjOenuBZOeMLf4XK9W2BhQCjZOQuzQ7M3V2/fgCukna28zs dy0ZTYdbtIR/cI/mUKl3loDGgHbTqU4PlLAZVUmHCFhO+WwI/VN8nEwHgowdVoxio/LP 7pwLrUEbdMK1QhbEpiNJ44Wh//zQyfowQyj+flXY14JpOPLM4MvTFTWNz6dHsQ2yiz1y TnCgGpH32mjctGkUgelo2qUCFniEkkDRdhrZRYoMMVhyY/+Fv4S2Gu9N4UO3sjO5ztAp peyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VvpWO4LM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si2005561ejc.171.2020.08.26.11.31.06; Wed, 26 Aug 2020 11:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VvpWO4LM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbgHZSaa (ORCPT + 99 others); Wed, 26 Aug 2020 14:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgHZSa1 (ORCPT ); Wed, 26 Aug 2020 14:30:27 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63372C061574; Wed, 26 Aug 2020 11:30:27 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598466625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8sNGll/xT6FzW7aAsxR2/1F9E14nVz0yEahFp4wbolY=; b=VvpWO4LMHDFZHVSgSqAx6+8nELbGExgJi7K66pgCPkHFID1PJUKXJGAAnT4vMZgCwmea9P TBxTZBZWPOiP80H2aoosS87VFLjX+l4EmLSilMWcl68LAmPJYAJMAwXtxbdubAiAtYoF2r 4ZH6ILu2IRqW+/dBgNjJWdEkYqsIVEoDty6wJzDYQOSU335qt8x+GPgwsD2QEZHHw+jhfJ /K90bfkGt3u73xxKmeaOJSjKSQRCg4q0HgHSxCxBz7CPSWBnq8VF5o8hdEqx4G/7Fz0Ghs 0464uvXvBgRbh5xL/AFkOKu7tbZ5fAJmIiwUxKMxMKMFQ1CZ9M3CDF0Ys0vNYg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598466625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8sNGll/xT6FzW7aAsxR2/1F9E14nVz0yEahFp4wbolY=; b=kkGbJWCIw5MpdAVJzhVcLwSNabgyB0+VqViYUz+WHTsHX01pahPauNZELQZFui7zJUUazJ sdrr2+8lPMn2RLBQ== To: Alexander Graf , X86 ML Cc: Andy Lutomirski , LKML , Andrew Cooper , "Paul E. McKenney" , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon , Tom Lendacky , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui , "Peter Zijlstra \(Intel\)" , Avi Kivity , "Herrenschmidt\, Benjamin" , robketr@amazon.de, amos@scylladb.com, Brian Gerst , stable@vger.kernel.org Subject: Re: [PATCH] x86/irq: Preserve vector in orig_ax for APIC code In-Reply-To: References: <20200826115357.3049-1-graf@amazon.com> <87k0xlv5w5.fsf@nanos.tec.linutronix.de> Date: Wed, 26 Aug 2020 20:30:25 +0200 Message-ID: <87blixuuny.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26 2020 at 18:33, Alexander Graf wrote: > On 26.08.20 16:27, Thomas Gleixner wrote: >> The below nasty hack cures it, but I hate it with a passion. I'll look >> deeper for a sane variant. > > An alternative (that doesn't make the code easier to read, but would fix > the issue at hand) would be touse a pushq imm16 with vector | 0x8000 > instead to always make the value negative, no? Which makes each entry larger than 8 byte which was frowned upon before. And it does not solve the issue that we abuse orig_ax which Andy mentioned. Thanks, tglx