Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1584167rwb; Thu, 10 Nov 2022 19:26:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6AM7zlZpkVEaW9kdfm9FdOmzeZkI/teLp4xuG78vVc9UyHwd30NCs6eYB4dIHlqXYBeDdB X-Received: by 2002:a17:902:8216:b0:186:7d04:8c5 with SMTP id x22-20020a170902821600b001867d0408c5mr558262pln.147.1668137167170; Thu, 10 Nov 2022 19:26:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668137167; cv=pass; d=google.com; s=arc-20160816; b=ICzRgmEUVV+9kfP1M6U5fTUQKKWhp66yVAWXebpEtwW1/x6EVLRNLD5EotCfZoWIVe 1Mt641LOZnkd7jEs6ymQeaD/jFlIUlQF6F+cl05Kn6IT1/qvkwyDcjMyE2WazwfcB39g 93q+yhDjT7gMK7Rts6fs8i3vgIKZLWevZgkxbI6pWd7ZjY4WoV8cf22loXWsfYbS/HX7 wEfSxoUCe6kdlPpf2CddwEsoYnhgC47P/BP3Hj+js3m5AlcI0WcWOZHKkba+fYpF56X4 QqxCjxfGD/KtnRa3Ic5ckIXkQJ9pOm43CX5illqLzpUlvUuIEBdr66Sc/YYxI6s81dFX rs+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=GRXEf78bZ0payp2y9lAiI+ovSSORYQAuFyQxgGMWLuM=; b=bhLvtgUoLLfEbhVfPFOxuAzULUrY7R5F+w3NGvG9z9NO+sy+7M7mnwEOEfTOzCM2J3 7hANqfgDrr2XpPXH+HPvmhoDaT06aOBfevh1eXi7aogO3nCcjZP3+lzLZCPF9FS30XXq mhmJMikgNq08E29jzOwW9o9GqEr2/EXO64u2a2Q03/Qe8EpDjU6VzLs0N5ZOApcwtZUa salWR7Ad3hosRcOsuuxPlwP3wB5UDLC8Vr8rje9J/8K8IUS0j3bcvLrLWWdNCQIjxQUz pW4JrFjeoR6vY2v1k1Rxfx/3KodReog5kko52VzzpjU2+xDXAhr+KsQ66kYa8Jp2ogAV tTMQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IHD3Xcsm; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 198-20020a6306cf000000b004613324b2f8si1133296pgg.747.2022.11.10.19.25.54; Thu, 10 Nov 2022 19:26:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IHD3Xcsm; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231831AbiKKDES (ORCPT + 93 others); Thu, 10 Nov 2022 22:04:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbiKKDEO (ORCPT ); Thu, 10 Nov 2022 22:04:14 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DA7E48777; Thu, 10 Nov 2022 19:04:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668135854; x=1699671854; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GRXEf78bZ0payp2y9lAiI+ovSSORYQAuFyQxgGMWLuM=; b=IHD3Xcsmbc8eNV+oGzp6BBy26f49uMm9Y6pCqu+c7W/QdJrHilCzZnYU KQb0OtvWuTsBsgQ/F2rae79rFeYINFgz2JUt68ROh2gllqk88dx9SttoJ XydzF0FotkMvKhkbSbZJamkgGUZ/qgJ8ylQpDZCtG1J+1P12YG/b418Ih 2SNyK9MliBMUtb9xLWIzaxchvuR4JqlVCH8FlEO0+ZIBCdMnNKqYutCkt TdECs1SXrZRssi5ytPet7WZbNGeBpymmIQpPVDVTrSygIIjV/B+r2O24F /24KJ5iZgZiN/A4o79Qj73rmdf8+DjCcyiyndBnP2kL0IXO5sPw4DxDYn w==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="310223184" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="310223184" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 19:03:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="780026691" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="780026691" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga001.fm.intel.com with ESMTP; 10 Nov 2022 19:03:27 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 10 Nov 2022 19:03:27 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 10 Nov 2022 19:03:27 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 10 Nov 2022 19:03:27 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k15cLGqUSCcV44DN+/itVIeXrNr5mEqAHiUMC/AX1ESPMa5gzz8/LrUXGGJ+6QDD59bos7TfVyT5oyp3qxAIxmcpfFyPAYCzus7dWdtnUwFCy4Sz59ljwX6Z/zCK40T/H9IjvgzoLyd7O1k8UKilIbzeTWcMyjAycpeWOiPl8rhRIQYweon5dMCVPM0c1ZoE8S0efM1TCphxGzoScNHgXQyDwhDqwzofqAIjrnemBYiaJY0wJ5IKRrIm3I0GZNPVDnr4HOtdA7X9HoEse+9Sg5Ms1FWG1nnbzKTCBlrcYzY3B6iz4x7S1fqgUYI7Rh2eJLkl+ffKT409dRgFhzzhWg== 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=GRXEf78bZ0payp2y9lAiI+ovSSORYQAuFyQxgGMWLuM=; b=CKFjPt60G6WQinBPUc8CHC6bD+zNDo+ojd70ZTHglR+/2Uxq7NQ+VYJ+d08awnJQS5uPQcwdLDI7r/VFd47CyEg9/2mASqmPWJzVjMxFdIFMKPKOxiiN8zW5eUb2I7VuMYqbSu7OhitgNMWDYkyUyCh94hm0yp5wd0FSQ1IHywVJ4EZHeDc+6/KFYzxkxwQ0XdEjHvdB4YrTf47DjOngxve4qYGjEdi5+h57Ulx7T/6c2/9t2l9cIXFfsH6ja+eFJN2OamB80KctGpwkMODAoQnk2EtmO6mBfqCfOwWHwlx0L2vDELgm0NiLUsbjeUzAPcBvu2WWB0qPB2zCkLW+OA== 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 BN6PR1101MB2161.namprd11.prod.outlook.com (2603:10b6:405:52::15) by DS0PR11MB7262.namprd11.prod.outlook.com (2603:10b6:8:13c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27; Fri, 11 Nov 2022 03:03:25 +0000 Received: from BN6PR1101MB2161.namprd11.prod.outlook.com ([fe80::40a1:5197:e1df:bb6c]) by BN6PR1101MB2161.namprd11.prod.outlook.com ([fe80::40a1:5197:e1df:bb6c%11]) with mapi id 15.20.5813.013; Fri, 11 Nov 2022 03:03:23 +0000 From: "Li, Xin3" To: Nathan Chancellor CC: Peter Zijlstra , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "kvm@vger.kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" , "Christopherson,, Sean" , "pbonzini@redhat.com" , "Tian, Kevin" , "llvm@lists.linux.dev" , "Gustavo A. R. Silva" , Kees Cook Subject: RE: [RESEND PATCH 2/6] x86/traps: add a system interrupt table for system interrupt dispatch Thread-Topic: [RESEND PATCH 2/6] x86/traps: add a system interrupt table for system interrupt dispatch Thread-Index: AQHY9M85Yu9uY6afW02HaiePlaJ2sq432uWAgAC2DaCAAAq8AIAADReAgAAaLxCAABbMgIAALlwQ Date: Fri, 11 Nov 2022 03:03:22 +0000 Message-ID: References: <20221110061545.1531-1-xin3.li@intel.com> <20221110061545.1531-3-xin3.li@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action 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: BN6PR1101MB2161:EE_|DS0PR11MB7262:EE_ x-ms-office365-filtering-correlation-id: ba688f60-d6d4-447c-4c0b-08dac3914b73 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: 4QhttEKbm7cYDmY/vLB9HJLFOGQJtgt0/0qbSoOF6fNfFFTw2WaBmomPIxvFl8XUhdf4IFlCKS7QJW5PO9WbyfpJxIVjbpKqTzzExfIdW2t9F1KlOWZEj5ClkK6+8BPEWQVO+L+MXLge7cXU7n7p7LiYg1CuA6BStgoeu14uK3cT18YxChlH7xaPdBH54L0GwTrVYvOTBg0JsyCIVnyWtKEq8mNvB/VL2/69J1diTI7eWU0bhoEJD4dTg3TO2Df4PMAkt+QwwGGkZspla7VMJ1yYl3iSG9ZhiCvbcokxhmGlBCxr+LbzFzJ1hK+WYmJGWxbG4BcriIyqTx25g9FEhbnsVwwLcUtb2+D7NvK3nWXtLjfE/B82y8d/B0vYTNEijTKu4UOiEC1azJ7OK6wb6k4yoc7xicdqcGo4OazXf1sr/wwQM3KuNv6T8vzcReLA9VaGuafhlCx6+ng4M5E0b9bJSy+Gfc8M2PzUP5nj4I+UyLtm4jzciHq/2EfpQJHoa1QxkeB5car305k2RgojrVcGse6iVnwIMVvd/7GWeXMk4nFUJIKov7mk5gOarVVKNAzjBPeOLY2i81E6IsB8KQuClyq5QOi3HH8oKYWruUnNfms2x+gbJaI8sWAAe4/97vorJjDg4Q1vOaedxLY2SYFqA6M3AfPm5qJrYi8UgEBrSBb2oL1xuyf356cCiM92d6AFsQgEdyFtYXRBSbaxu8XbESkT+76EaBvzYMQAsn5FztU/wy9htiwaPp0uzz1CkHQPffa6h88nNgR8ZSz/sQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR1101MB2161.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(366004)(136003)(396003)(39860400002)(346002)(451199015)(5660300002)(4744005)(9686003)(7416002)(7696005)(6506007)(83380400001)(26005)(33656002)(186003)(478600001)(71200400001)(2906002)(8676002)(66476007)(66556008)(64756008)(41300700001)(76116006)(6916009)(38070700005)(122000001)(66446008)(316002)(52536014)(54906003)(86362001)(8936002)(38100700002)(82960400001)(66946007)(4326008)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cnar5LpWb9fexgMBiAW9vE55/uIJOAIExg1FxnCRbPB8sThbRoouOu8C92wS?= =?us-ascii?Q?vhK544pZbxgDQqNMHtvxZQG5SFqRLr83qPDWD1y6U3/BsgqSyK7LOnjqGICT?= =?us-ascii?Q?WPq1zwaSImVUSEu2eV4n7CiQDvlPRFaEZJK0WpcC0b68qHn7pnBr+ieYdLLO?= =?us-ascii?Q?M7wgDIdpSsn6dYEd7frz1/yWhnqN2wYXxL5x6M+eS/KWYxw7EaONaCjkhGtx?= =?us-ascii?Q?38KrBDVue7OjQCtNkpK89JWJ82OKxvlJGnCVO9K9nW8lYLC4bYRvfU9IECnB?= =?us-ascii?Q?Q54BTsRGoVvFPfbsaovlN/POvokB40u5OlfRlLjqVALztGNTxz+hBEOePZf/?= =?us-ascii?Q?JzF+9orl3FjdVBy2xFhbpfWywseWfWHEzzh8J6lLGSURDCVhJZb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n+2x9c0OMmT/xwWKXo5R2QP9JKwBFtwTinTBQbKiAVWK?= =?us-ascii?Q?GijYQ5GotBjySK7tGbdYsC8qz0RR9N1Uo1MvqMtwttHJnQa1yo755ILH3ZRp?= =?us-ascii?Q?+CxlDRRm1LXh7MM4+VJkohg5K6vB9bKGka7nzti3cMXc4uaLPJ7YVdcUQw60?= =?us-ascii?Q?keYrMp+wa+D/hNTLRki7kLRV7Qqpf84nlHcOuas2lkduEZLUYPf8LYL+0iEm?= =?us-ascii?Q?2ywG3JfQxNc0wmyERCg3LbWKBwHDt64T5iP1+fp65Xqc7k+qJ+OmJ64jkif7?= =?us-ascii?Q?CKKcm0BXcvfHqLGz4Uo=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR1101MB2161.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba688f60-d6d4-447c-4c0b-08dac3914b73 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2022 03:03:22.9555 (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: LscdlzNAQN4vJ07jOqrI2aLsvrjvUia6GvWm07XKXRyyrCcE0OmlNGXdtFHlreYBxGSKe3QLYBpwEOchgY6DvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7262 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > Well, the entire point of the warning that you are disabling here is > > > to catch potential CFI failures at compile time, rather than run > > > time :) > > > > Oh, of course I didn't intend to be opposed to CFI. >=20 > Oh, I apologize if I gave the impression that you were, I did not mean to= put > words in your mouth! I was just giving additional context as to why we ha= ve > that warning enable and how we use it to help catch potential run time fa= ilures > at compile time, which does not require running CFI to keep CFI happy. No, I don't feel impression at all :), maybe just a little bit upset that I didn't realize it at the beginning. I actually appreciate you provided additional context into this thread. Xin