Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2658124rdb; Fri, 8 Dec 2023 15:16:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH5iv5V/lmC7HPWd+mkWcMDe60gdhUZOjm3k7pdnEQN7OydmPx9WkzbhZaxL0+wyp4hzAN X-Received: by 2002:a05:6871:4318:b0:1fb:75a:de59 with SMTP id lu24-20020a056871431800b001fb075ade59mr968980oab.71.1702077396355; Fri, 08 Dec 2023 15:16:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702077396; cv=none; d=google.com; s=arc-20160816; b=IT/tgZ50rgQ0i0+V4OeexpvEeGVlQWDdhu6Ywk7KEgkd8rxAZbfaOMjgB2pf+0lQd5 fX6rL+fE1xwzFjvrE4LIs7QUl3cJzQCXe55Fubqn9ph6yj88ZTuV2fkEArG62BENVxk6 o1kD1pQ0N3VZPMwlbZcbvS3A8+F0F0FcCDE84HHOVYfTO/Ou3+w7w5m8lYtCWC8vppZP SrjSCBniixB+jPC1sEjuK2FeAz0W/cu1UrCKRMYeNylkJnktSlHNqmTgL7NSY01LDdfF KzpRijTBYO/S2HM5GvzHEvhfyABKwiPgbeZCahf09lPOQ1uVkqKNMZOy9mHgOML7E2kr g4dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=wF1vehCFnz/uq++usBo+jjo8z0/vRnbXsrUPn1rOfUE=; fh=ZvpbeHpP0Y0v3u+CaZzOwTVebjaGJIGbrjWY8xhkDeQ=; b=to28GVbihOAxmuxUPSA2dL1gjZMf4Njo4JpBwqMlHNpskObILYjytPFvbKPXa9J7aq 28aHBzEZhSD+C1aaRlXO4raPwmlqV+D2DFYvN+4P2ZFm05dsV0jFRBJTi1ytMQKkWOBH LZDd1WgjeeXmhYamNKf3wu2SxRfV0Y7HsrhDUrYaXFoNR71upFaPu6sVIj1dHJOT3ozD jsAUyY9BZGvAYPH2lujWPlICf0OrJuh2lfAk9xnu3hgMqT6uBkkxTFXXlIA9y8jxYRR3 iAYk7aMBWqQ8W+nvpAUJXIJEUsPuwHhu6TYmEGlIRaRaF5znhJtWYcjlOk2yUqJcqeqP SCTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f8ilxil0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id f25-20020a656299000000b005c684e1f2ecsi2153424pgv.400.2023.12.08.15.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 15:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f8ilxil0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D374B807C76F; Fri, 8 Dec 2023 15:16:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbjLHXQV (ORCPT + 99 others); Fri, 8 Dec 2023 18:16:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjLHXQT (ORCPT ); Fri, 8 Dec 2023 18:16:19 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1C3690; Fri, 8 Dec 2023 15:16:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702077387; x=1733613387; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lrkQgErWxcsZqBk5WmhIoSbSMmbYCndRvIe0pEDMALU=; b=f8ilxil0l648S3YJRWS9mQP6//5RLmA3gJ26kRymCPMmx99k5+mScP/M qt+I1BWiND1VTq5dXpS1AnzFWU5pcPh6uYix4X7qQyb0WaraS1lZVbnCG hts8nD7XH6b3FdgvC3FvU36xkZtfrdsug42PSIYmmsLjZxouATyH8Y7dc /T+jKvuLlC1eE8OfG7Fk7DqjDs/sY/crMk79O+FgZB7AdRql08BVa4ioa ylFeWNzk4TljQKZnUaG3pOtFIwL9tP7RQnyzNgmFBR5oZ85fFqtFbmy5X YnmUMFFWRoZFqWCfpbJa6FjTVG1qbncjZDpKxtOWM+v863cOopfoAmgA/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="1328109" X-IronPort-AV: E=Sophos;i="6.04,262,1695711600"; d="scan'208";a="1328109" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 15:16:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="1103722427" X-IronPort-AV: E=Sophos;i="6.04,262,1695711600"; d="scan'208";a="1103722427" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 15:16:24 -0800 Date: Fri, 8 Dec 2023 15:21:16 -0800 From: Jacob Pan To: Thomas Gleixner Cc: LKML , X86 Kernel , iommu@lists.linux.dev, Lu Baolu , kvm@vger.kernel.org, Dave Hansen , Joerg Roedel , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , Raj Ashok , "Tian, Kevin" , maz@kernel.org, peterz@infradead.org, seanjc@google.com, Robin Murphy , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH RFC 01/13] x86: Move posted interrupt descriptor out of vmx code Message-ID: <20231208152116.1c09a17c@jacob-builder> In-Reply-To: <875y19t507.ffs@tglx> References: <20231112041643.2868316-1-jacob.jun.pan@linux.intel.com> <20231112041643.2868316-2-jacob.jun.pan@linux.intel.com> <87wmtruw87.ffs@tglx> <20231207205431.75a214c2@jacob-builder> <875y19t507.ffs@tglx> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 15:16:34 -0800 (PST) Hi Thomas, On Fri, 08 Dec 2023 10:31:20 +0100, Thomas Gleixner wrote: > On Thu, Dec 07 2023 at 20:54, Jacob Pan wrote: > > On Wed, 06 Dec 2023 17:33:28 +0100, Thomas Gleixner > > wrote: =20 > >> On Sat, Nov 11 2023 at 20:16, Jacob Pan wrote: > >> u32 rsvd[6]; > >> } __aligned(64); > >> =20 > > It seems bit-fields cannot pass type check. I got these compile error. = =20 >=20 > And why are you telling me that instead if simply fixing it? My point is that I am not sure this change is worthwhile unless I don't do the per CPU pointer check. gcc cannot take bit-field address afaik. So the problem is that with this bit-field change we don't have individual members anymore to check pointers. e.g. ./include/linux/percpu-defs.h:363:20: error: cannot take address of bit-field =E2=80=98nv=E2=80=99 363 | __verify_pcpu_ptr(&(variable)); =20 Thanks, Jacob