Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp21496lql; Fri, 12 Apr 2024 02:15:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfn5nTIGi7weDeIYVYFtasizVRYn+nJlefbRriKxIlP/nHItGyKd9XDLQfqfd7PDqXZ/CoQaw1v4x7urrIhmwkwL2XXsnIOqX9j8/alg== X-Google-Smtp-Source: AGHT+IE4vogQ5A9zRQXX3/kJwyQmh02vutUGjUKtrmsmTEPl1do1tkhA4cIiLmk3n6SIfEjotPWP X-Received: by 2002:a05:622a:24b:b0:434:3ee2:8e3c with SMTP id c11-20020a05622a024b00b004343ee28e3cmr2173597qtx.29.1712913353171; Fri, 12 Apr 2024 02:15:53 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k10-20020a05622a03ca00b0043643d1bd3dsi3280411qtx.14.2024.04.12.02.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HiylMgHp; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-142364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142364-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 D385A1C228E9 for ; Fri, 12 Apr 2024 09:15:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DBC65102E; Fri, 12 Apr 2024 09:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HiylMgHp" 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 C579F4EB38; Fri, 12 Apr 2024 09:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.12 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712913305; cv=fail; b=NrmKddVfLiuQlpFWlJvPJw6KGpp1Xx+0AyLyOnJFhd+D/5fzxTyKbkhTFhrNq7M0CXo3vSOUatJuaAJd2R0LIrPmXCufdBnqBGVGVsKoB+VQ0VpHH7QFV5hAwByfnhGby0hjtt5PNbXEzIujekS1Y8DmH7qAJ2BDjCAXVCcIn/8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712913305; c=relaxed/simple; bh=KFekTSSj18og+v6Jsn1LgDb9P8T7qFZ7AyuVbXoH31k=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=L1abWzp7YfXboS7xsJgEKWdOHw9kkP+znzpACX7y6VlYiYV2LRsBJVoCDmkNevsXlgo/biboDQyUgMyrK4BRWodcWPxw153x7aQWaF2ccDKNQq4LQj+hEUeIxKbOk6j61Iv55kYqP6hcQ4mgYaPY/BmsA6M+s3HG9FXt6Mdk3Lw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HiylMgHp; arc=fail smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712913304; x=1744449304; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=KFekTSSj18og+v6Jsn1LgDb9P8T7qFZ7AyuVbXoH31k=; b=HiylMgHpemtf2syPn5Mpj1lorM49BqBaX8zdC+jB8LoH5Qj1MIVlZky9 kOWnn5sn8XA4xNRE6j95DrwRSg8vbZOfd9xWXsUljHbyxQPrnlZNSDK1T Vci4H9EeYJMHhyNwEu8bp70k81weoNw1rsRouIyCziZJCpTA8KsMTwRux NQBAAiT9Sm6EgpTJ5LOz9NBt+lApAzvHrOO8Sy+VZVGQ97L1b2q57msA4 +c1D29DP4C8LdEj4wW2qgNTE9G7iwwG+Ec/TBzVROWbAetFog+Z+6D5yV do/iV5hQIax6939RMOMIWVPIo0iuDXdzIcKrICkhhusUyr6y1hBd8jiVZ w==; X-CSE-ConnectionGUID: q0s60BBESwC5FSFpfSdYZg== X-CSE-MsgGUID: XltTGIlzTNieKXU7H9F/NQ== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="12146356" X-IronPort-AV: E=Sophos;i="6.07,195,1708416000"; d="scan'208";a="12146356" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 02:15:02 -0700 X-CSE-ConnectionGUID: SW8mpZyQTiWETnu90k2zWw== X-CSE-MsgGUID: lIII07ojQdSS4+l1BXuF9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,195,1708416000"; d="scan'208";a="21164992" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa010.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Apr 2024 02:14:56 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 12 Apr 2024 02:14:56 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 12 Apr 2024 02:14:56 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.40) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 02:14:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=je0ACLntbfyhDtI6+0RydkAfACLxpVyT/WZaoOaGAuYzWHiZUzihdsK2t364uTLWZvyiZ4oeobUg2QpRI7aywl9sgm1bz/M6oyVRpG9DIFR9Hdh6Utj+idukIgC5N2w7Tlg0T6IeTUKwDS45Fzy3S5eC0BoalRJzC1Hgwm9n+8sJBrmTx1bYfRpIGQKQff+QqvG6Kbly7ljNw0bEIyT8Fg1p8gLKkUAy498RpujrZ4ULhe0wcfk3b1jKcM6RAA8VqPxb2GYrD1Voy5Sq4Gu84PN6SPFJasKuEnn/ImU+BLcOKhjiInV+J0AemwJolD+SAnuXeOyVLya3sW9NpiGA5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XNLZlMU0wZXgVMKlEPhX1hqltEYlgX4eHwPgFN0NMzk=; b=jXmlQovJRndCv33P5nVpz9TXQl9YuLWuB5dJ1xSdoWagd6XT3B8Mga3cER5oCZxMyTOuOqPLzpWOPXzH15AmeX1ovsDnfDgHPhlcbmto5vOE/lel9TnB2GBDllc7C9tBAM88YnB3EuxntZgkctf/nBDYTvLQD4n1gYX56yt+WCwcnAu+19R7X6VEgx3uXyqAyhqHEm38bWvAq93GkzYbLkC43+d6e9Uq1vP6K4y2GHcm8Ww5sda8hjCku4c4Wda2lIcwY5k/gL5d9/xLnnPB83j/mbjdO0ZYFDNQaIh1oibIy3oXPMZzynquYEPAqDdTtKPxStskqugCMlOmXZRNrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by DS0PR11MB7831.namprd11.prod.outlook.com (2603:10b6:8:de::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.26; Fri, 12 Apr 2024 09:14:53 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::6c9f:86e:4b8e:8234]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::6c9f:86e:4b8e:8234%6]) with mapi id 15.20.7452.019; Fri, 12 Apr 2024 09:14:53 +0000 From: "Tian, Kevin" To: Jacob Pan , LKML , X86 Kernel , Peter Zijlstra , "iommu@lists.linux.dev" , Thomas Gleixner , Lu Baolu , "kvm@vger.kernel.org" , "Hansen, Dave" , Joerg Roedel , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar CC: "Luse, Paul E" , "Williams, Dan J" , Jens Axboe , "Raj, Ashok" , "maz@kernel.org" , "seanjc@google.com" , Robin Murphy , "jim.harris@samsung.com" , "a.manzanares@samsung.com" , Bjorn Helgaas , "Zeng, Guang" , "robert.hoo.linux@gmail.com" Subject: RE: [PATCH v2 05/13] x86/irq: Reserve a per CPU IDT vector for posted MSIs Thread-Topic: [PATCH v2 05/13] x86/irq: Reserve a per CPU IDT vector for posted MSIs Thread-Index: AQHah6hds9I+TESl7kiFR5xiGDPLp7FkZAcA Date: Fri, 12 Apr 2024 09:14:53 +0000 Message-ID: References: <20240405223110.1609888-1-jacob.jun.pan@linux.intel.com> <20240405223110.1609888-6-jacob.jun.pan@linux.intel.com> In-Reply-To: <20240405223110.1609888-6-jacob.jun.pan@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5276:EE_|DS0PR11MB7831:EE_ x-ms-office365-filtering-correlation-id: 7d60a2f5-d7fc-48ed-026f-08dc5ad1038c x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HlutyGQN4rChAnL7kO1Dr425voT18eTOmesUY3NosI8m14zZOK4GbQc9dY/mjvJo/5/BcJlX8M8qlr6zmG1KRTLGAXVqDViixHccfXAwXNXosqei/vROnU5ebG7edqNVtwe/ENrzrL2yAoCL8uUKuJicsPnxXIt7E+qLq7w4OoKRxTB83FtPcCPHJZUI76S2dKMwlah0ORDVJEvwdTYI0Q9ON7u46qMc/v606qypqnkXIdgd88c/QtQrFl2yUhgs87cSBI1CKY/NoDDMak2woPiBhdVDWOzI6TCTgVDvHZMkCnge3BIlAkOlqU/Yq+y7oxJkm3d9qxCWWZCaJDGgLK/Rvj1lS5BIERM4V10c66yup0pESWmWVsgotDh01FSeNpbMGMGEnk/3EruhYIfhWN7deau+myprlWD3vEAWrF21ldflIMS92KAKhHrta3m/66m/BY6k/74RwKbNwVxMrVskjQse7hr1747+0FGcR/HFIrVO2eQxRiiI0WmzfVtzNv451rRcfXOwK1CLeUc72VjWNAMnoi8Gh/nP3YDMmTgBfFyNCq4uI5xVtEAkAe2nQ90dwnBOfvUh4e3aTim3d4GvUlyKBJapDbCIipInRXjFt24A9wYE7CHohg6bw/cJ7JjxNRCdZSsGA2h5ltaavtGh1bthVMELjXwoQvPZr+IZzqTWjAC4mJhFf2yWt1cAMkJ+Je5zM6gz4qsO9iEh3gfvId8sMbQYOUKbExiOcNM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015)(921011)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dFilLhE74sU/8/fvxoccuWYBFx4mYBAbEI+BloWC/vsHbr7YxQ5KXzenZ3FO?= =?us-ascii?Q?5OUbyQhXlXcnKeWcgvs+i2DE6MFRgr6kSgK0dyK7Np4udsUIL9feN07WI2Di?= =?us-ascii?Q?kwHn4Ae5qNnq79blrvrKk8yR/3qIzO9F2ZRmRg09lIUEm2mLAaFcoOVK9N7i?= =?us-ascii?Q?L5K8vx559hgTfhKpL8PUrxU3Yyg1ww6kT/VlkYpMmiH0D5m5sykARnrYorH5?= =?us-ascii?Q?wDV5YGMgp/jhXxljNc/IE+6lEqC1NJtkaYVwRPGi1tIMiSm964UiVqQE8+mH?= =?us-ascii?Q?v2HsEiJGJPTGDbhp/b0Q4h8PtEWBQq4pyAS4y22iYtRrSBNb0QVo2WvLAHHd?= =?us-ascii?Q?OzT/6io16VH4z+Q6e/rJps4QIMgVlwriTMfH1B01Zb9n2ujpximP8MK1v5nn?= =?us-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fmlwmTfbtjtZ8YXVF?= =?us-ascii?Q?A+lJ7c51KIHfPfm4NkNNcbQZHMk8MXjN8+uOwI5RlGuPVTzI8ywuYZH8+53L?= =?us-ascii?Q?WOSc85zqqAQlLhQJhKcH10QD6bpJNN9KjrBlntiktxVaDY1EB9vvGNK/trgK?= =?us-ascii?Q?NjwpVoxx47iTNfXJqX+m882NvaC5VNGeRVmshBwpNRqsQQBvlDhFJoOESp1C?= =?us-ascii?Q?3K8XBW5yMfWxXs97iUUA3s2KgWi6a6Vq7OEedxjuy10qAo9fv4S92OZdDPaj?= =?us-ascii?Q?ch7MosGG0uuO2ArID8m/iC6QZ53xMO/6ZlsGObly?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d60a2f5-d7fc-48ed-026f-08dc5ad1038c X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2024 09:14:53.3919 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: D9fpayx1hYr+3FsqwkPmhGjP/4i1c7q3S6/pzfFoWma22AastmvsFKwiIkADbjuLNA91deRUqvEZ1mxg0AXZaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7831 X-OriginatorOrg: intel.com > From: Jacob Pan > Sent: Saturday, April 6, 2024 6:31 AM >=20 > +/* > + * Posted interrupt notification vector for all device MSIs delivered to > + * the host kernel. > + */ > +#define POSTED_MSI_NOTIFICATION_VECTOR 0xeb > #define NR_VECTORS 256 >=20 Every interrupt is kind of a notification. Just call it POSTED_MSI_VECTOR