Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4982590ybx; Sun, 10 Nov 2019 04:45:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyijVFY1og/N9I4S1xr4q4jlVGuIT9wTfxIx2OHxCtPdID4MS36Bz0mI8xXWErBL6vtFooQ X-Received: by 2002:a17:906:1da1:: with SMTP id u1mr18123507ejh.275.1573389900980; Sun, 10 Nov 2019 04:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573389900; cv=none; d=google.com; s=arc-20160816; b=JccBvUECc1DrhbINh3mmcmiB2Mgd9dHxXQoTkCdSZHcwrHv1bFvGxXjFWC4bP2Oueo 4m82qtL4srSwpneJzrt0MspsY9PI68NuzPfruovalsdySnWnAeRy/Fr+Yci0MXoEDXK5 uvqndh/fpN+cYjhVQ0M3mhJDsIkWt/bNOWljGQp1y8bVj9ShdzyoRbCpu1UzmOJSvSTn SlF/teW/i2mIICeYaVrF5btrk/fuRVJlofbhQjP0xa5lwKx6BJBFD3b3PN7lK6MICdhw 3UJhnbCBG13+INF4/UZkhDnG4GZL6jvykswKiGxtdjb/aPyVfXpfYhm/UfP5HIZG4OQV jH+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=tCmIjTKgMFck/jnpueycwuuKsvcFa4aSyvL9iEmfZQA=; b=ol51xMFjkCE+UHrGqsBuRhUTWNLcZ9940lpFL67OHVXvSuDOqO2T4SUBLMXA0FBnfT BxfQgWq33ZQr9GyCXJDLNnJxG12Hifrc0ueSfnNajHVvA7rgc/7ujVuvhK+9TvjbNtng 0QeWPvvWdI9mUyai+8ymbYc8xWA8f7iP0Fu+ITEWNKEiha5o51nn0Wmvv3MuPqQ512pb rTDq0yxeQmhYr9MamQateA/S51mhVw2Ksd2E+l56Y9F9pUjqYo/KX64UR1bmfAzPLR+C BsskjGoUAicQIUr73Ib0kq4oxrTQ2TAk/fr/d30lICubz0FUUTlTj/TleVOTZWRd5VFj ngTg== 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 n8si7148487eja.438.2019.11.10.04.44.36; Sun, 10 Nov 2019 04:45:00 -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 S1726617AbfKJMnx (ORCPT + 99 others); Sun, 10 Nov 2019 07:43:53 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:54559 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbfKJMnw (ORCPT ); Sun, 10 Nov 2019 07:43:52 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iTmZI-0005Vb-8n; Sun, 10 Nov 2019 13:43:48 +0100 Date: Sun, 10 Nov 2019 13:43:46 +0100 (CET) From: Thomas Gleixner To: Andy Lutomirski cc: Andy Lutomirski , Peter Zijlstra , LKML , x86@kernel.org, Stephen Hemminger , Willy Tarreau , Juergen Gross , Sean Christopherson , Linus Torvalds , "H. Peter Anvin" Subject: Re: [patch 4/9] x86/io: Speedup schedule out of I/O bitmap user In-Reply-To: <53B49BD3-6F9C-4A78-B203-1BD53034014D@amacapital.net> Message-ID: References: <53B49BD3-6F9C-4A78-B203-1BD53034014D@amacapital.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-894609131-1573389828=:12583" 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-894609131-1573389828=:12583 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Fri, 8 Nov 2019, Andy Lutomirski wrote: > > On Nov 8, 2019, at 3:45 PM, Thomas Gleixner wrote: > > On Fri, 8 Nov 2019, Andy Lutomirski wrote: > >> SDM vol 3 27.5.2 says the BUILD_BUG_ON is right. Or am I > >> misunderstanding you? > >> > >> I'm reasonably confident that the TSS limit is indeed 0x67 after VM > >> exit, and I wrote the existing code that tries to optimize this to avoid > >> LTR when not needed. > > > > The BUILD_BUG_ON(IO_BITMAP_OFFSET - 1 == 0x67) in the VMX code is bogus in > > two aspects: > > > > 1) This wants to be in generic x86 code > > I think disagree. The only thing special about 0x67 is that VMX hard > codes it. It’s specifically a VMX-ism. So I think the VMX code should > indeed assert that 0x67 is a safe value. Yes, it is a VMX specific issue, but I really prefer the build to fail in the common code without having to enable VMX if something changes the TSS layout in incompatible ways. Thanks, tglx --8323329-894609131-1573389828=:12583--