Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2583317lqt; Mon, 22 Apr 2024 15:28:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXTNwg95X21uFqp+Zh0Fnn6ADmTZX1dvBE2zFo3+h57sl20xtjXnENcVdCACwL6+2BuOgYqq8g6Jx0PW5chZibEeodT5aQ5qkPdcVnlw== X-Google-Smtp-Source: AGHT+IH0TQiKRKcMS2jSyPysQiUfZct128/L3GPhkInWNNyo0Nc/3o4QRNUgw1YZr4YDVsniUQiW X-Received: by 2002:a05:6214:1772:b0:6a0:75fb:4587 with SMTP id et18-20020a056214177200b006a075fb4587mr8473090qvb.41.1713824925662; Mon, 22 Apr 2024 15:28:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713824925; cv=pass; d=google.com; s=arc-20160816; b=qg7cY8dOPJigSHfQS0uGX9ovNyvAnII3wuDkYoyeFfJRLdceYm0iZpnwnAMWIW2i9t OCPzAAsVZETR/caZQIQEDI0v9mfQIK0tAp+AH61PuLIkrhqbsLe8tyf+0yrFiGhjY+Z3 C+2m3HDZ3CZEI0PmA5F108P4aw1gzgJgSzEoPsGvIwWtFjDAErS2ZeCfH04k6GFMSpZe xPEYBMOfILNkBHKwgimab7/I8/3hOJKK81jO7ETuRSV0D8QR8tAqJMqwu7bVPEoj0NqR 4fzKM+U2vpU/EdvJhPkJNipVLgJEzUE9vxCapcigrfJE2nUSEJxhSVAjlnDnM8nc8hDE 8yug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=xTBYNT6MJoU0UnZncCHE1oeWLn4KPopDO8N10pITP1E=; fh=2BXel3aZt2kD70fnRSq5SISXYtjcvJqFwW4uIXsM6dk=; b=cjMIMIrj2155JExE6MaxTeMDhqy3r3oz4E7YwpZ/hthgfEu/McfKyS9jDGbmDntuzq e2528lw8LUAFF2KJ9aD2XH4ut0w9QRbLRRvSC17Ocj7J3IqfytMbmNgYiQnekYDS1mo9 hoTbfCK3cHXL5fCFrQqcQdckZFtOsNtTqpSZteAvomTL4dP+4OsK4mDtyMHXtDIFMh7Z qCgJc4dvh4k5BzEW3pKm9gxn9GO4Av/x3fxsDC0GHKbleYxJV7B9AaH8X7B0mHlSkn2e eZEVXm5p4PoakLJYxEuEivX4L7vs5TtvnuKq16fkxqdDW0R46kglKkXhj2RyT4hj5Ztq tQtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lyg8Kl2L; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-154091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u12-20020a0562141c0c00b0069b1e81b6cdsi11689202qvc.393.2024.04.22.15.28.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 15:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lyg8Kl2L; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-154091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 64FE71C20E0A for ; Mon, 22 Apr 2024 22:28:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 625CE2E648; Mon, 22 Apr 2024 22:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lyg8Kl2L" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 003F02E410; Mon, 22 Apr 2024 22:28:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713824896; cv=none; b=mwoKYhxR5Qi4lbCaGT6sl+o0qVWsA+L+LQLmbFbeYrmu3PeF/WbDXH1K8iqCeNEYhQdQU6BRqVpHqOq5fZneNU++YK4PzM1pzLtfjDX1kW3Da7r7bpEuZ4E/TzmDkAjxvF88tVrVecrpUcQZK9glsA3gF7hRpZWF/L7+FEtAwsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713824896; c=relaxed/simple; bh=LBIdcLeL+hwX+jq1w+Grr6K8OGAVBmubNTZAhnNesCc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=o3AQcDFqloN0ObBruuL3XuPfphFCG55JqQjy1P4sWsPHImfqh6mlGVAJRhyTPzadGmJFlYH4hE0BuBlxCMJy/mn6pKQzoX7j4pjUGN8nyih7SJihRbyy31aSrn+HndE+8CAX4ug/BSDbE75OKcRFOW39XZmSaE2bY6uUChP5/mg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lyg8Kl2L; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713824895; x=1745360895; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LBIdcLeL+hwX+jq1w+Grr6K8OGAVBmubNTZAhnNesCc=; b=lyg8Kl2LrAjDWVwCqqku2vrUGzJnd6u5G/DqkFYnuNRRNRuvKbGcrF2p pM/cn49/aWPV4c77UkTXAu0tG7FXQ27efEcSucamuZaHfZP3v4jshV0fM rFHrUgWKiePOd33fmH2tNCJtgUju8Ov2MLfLsWTIyKycAtJgXccUiNwKb 7SRx3tM0Nz9Y038G4+dgHwvh+u/mVtN4MQFpbJzISPWpDiOs6VTlHCe/g DQqR1z5T/G6xLHBFtnrNfhSVut04vuzM5uY5L/gdE+3Rh7K69FAy2tSp7 158QAFUVsG9G03kessByudmuFl1BKb2yd51h/AMt4wpcEmwAnCxfV877T A==; X-CSE-ConnectionGUID: 2cWVlGeqSa+DE5FMXrp93w== X-CSE-MsgGUID: ATsrUpmySm28GBu+rUI5qw== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="13172313" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="13172313" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 15:28:14 -0700 X-CSE-ConnectionGUID: 4GsBA0hISUKUrp2D78M5JQ== X-CSE-MsgGUID: g4pAQOoBQwCivuS3JEs+Pw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="28971902" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.54.39.125]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 15:28:14 -0700 Date: Mon, 22 Apr 2024 15:32:50 -0700 From: Jacob Pan To: Arnaldo Carvalho de Melo Cc: Thomas Gleixner , LKML , X86 Kernel , Peter Zijlstra , iommu@lists.linux.dev, Lu Baolu , kvm@vger.kernel.org, Dave Hansen , Joerg Roedel , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , Paul Luse , Dan Williams , Jens Axboe , Raj Ashok , "Tian, Kevin" , maz@kernel.org, seanjc@google.com, Robin Murphy , jim.harris@samsung.com, a.manzanares@samsung.com, Bjorn Helgaas , guang.zeng@intel.com, robert.hoo.linux@gmail.com, kan.liang@intel.com, "Kleen, Andi" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v2 05/13] x86/irq: Reserve a per CPU IDT vector for posted MSIs Message-ID: <20240422153250.07331f49@jacob-builder> In-Reply-To: References: <20240415134354.67c9d1d1@jacob-builder> <87jzkuxaqv.ffs@tglx> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Arnaldo, On Fri, 19 Apr 2024 17:07:17 -0300, Arnaldo Carvalho de Melo wrote: > > > On a second thought, if we make system IRQ vector determined at > > > compile time based on different CONFIG options, will it break > > > userspace tools such as perf? More importantly the rule of not > > > breaking userspace. > > The rule for tools/perf is "don't impose _any requirement_ on the kernel > developers, they don't have to test if any change they do outside of > tools/ will break something inside tools/." > > > tools/arch/x86/include/asm/irq_vectors.h is only used to generate the > > list of system vectors for pretty output. And your change already broke > > that. > > Yeah, I even moved that from tools/arch/x86/include/asm/irq_vectors.h > to tools/perf/trace/beauty/arch/x86/include/asm/irq_vectors.h (for next > merge window). So I will not add anything to the tools directory for my next version. Just a heads-up for adding this new vector. Thanks, Jacob