Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp185049lql; Fri, 12 Apr 2024 07:29:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXShlkf5q1hAHZ1GJTiY280muiT69KNGk0oOujp14JiSsElDDUJHSXXdk1Hk/QHP5bzy4y+YnHnh3INg/Qn13Px/n6oQLuKfz40PsA+Qg== X-Google-Smtp-Source: AGHT+IHPBB4yMAmdelroa0wE2e2dFHN+g0dPK7qDRmH9cShk37zYifQHPcUu/CK0P+E8VpC0GSb0 X-Received: by 2002:a05:6358:6996:b0:186:26e2:62b6 with SMTP id a22-20020a056358699600b0018626e262b6mr2297662rwi.19.1712932173567; Fri, 12 Apr 2024 07:29:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712932173; cv=pass; d=google.com; s=arc-20160816; b=jZEntFdZXoW80G/S9gST0K3PRmwM4EspaxkPMDAzKVPgotPCp9DvWsAo7yjuk848OX omj8Ifz627jqlTXnpUuC3qSUQRcDoqmSXyVbFE5DlcAVnZ1SAFrFNQXPdYexfed9euHU rGPrNnuMQTyO6N0pyFs6zcxqpPrAJuvQ1jMjPTMhVE8Mb3455HjkZK6SaGNE/xBKd+Lx tDOLHn6/FmXG4Ik1nB45vbxLgJ7MFjiFboagUpSPYMssLKB/OxnjX+0yHZiB0IXVBk+R rnXL8RSG93Qf5U6MBgg3AplfjAamsAkuSIK4b3g7vuNFSER0B1jmdiA2WCz6hhUrQmNy keLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=CTokiC2mOzeQb1t9UZXBIQTwfHhJ1xAuH+06DQhJnus=; fh=jYJ5SlprEMZ4o2+mUst7sijE392r6nZUOQef31bX2JU=; b=OVL4vqGTsHho6fiNQoNkiJ1UjahMnoyAece3CQkN+uvcoQwCc6eZ4hE22fF9pVjuUM hDFSpaeLJ5rG6UF7fJvlC6ufSJXXv/RBl8B9d7d3YSaEBFI96dCr/oLMuaGjT2T1EZZE f2LgLZHvmpjUUad7PAyc4fMsRVuXsJN5CPCaxbJaZvuWm0bS/MJr5rLM5OF2dK46vZ0J FWlPcFrxQUieqFQl0A1pQ0LpZRA1AzmWI497TS2xwCJxAAl7FuNpUeB6JILNDQntZ/6k YAYAoXk0cuerI1K0vWUF3LsvvAOoUBjz0KRV5aASxj5ppJfM2gztBfFc1kRT65hAc20v nlkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AUhnlzLK; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-142836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c14-20020a63d50e000000b005d59eb08d15si3423238pgg.383.2024.04.12.07.29.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 07:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AUhnlzLK; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-142836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CF99C2815D9 for ; Fri, 12 Apr 2024 14:28:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B23D612839A; Fri, 12 Apr 2024 14:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="AUhnlzLK" Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BAC9127E1A for ; Fri, 12 Apr 2024 14:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712932053; cv=none; b=fa0e0yA+1BsYH9FsnqFwGZ4Wh0tTJLsykADd6ZWLW6RjZpsgyimDEwAekZbXHz+SXKb39QZyivtHMbfSTZDv+GGxgd0VbRj/Aoy0fTRlmOMeRhc1HSr2RVHk1D3KA8T1JZWX46XYlstnzbVIg3g3MczWFdUsqd3ahGnFxthlJHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712932053; c=relaxed/simple; bh=7ZpOjyhJVYHo6veueLDSfC6MEFzr8Ojbs3xFBxi2+W8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=afNjdXBSxJqxXEUYIiRGrNsPY/5HeMZB+Q8wo7+JzIpVRiZDh34Q/fHZyugBMQJ5kOJzmL6uDwycPM3XxxSe33tS3m63NQSWbPJIoJrd94KmH43J7BBXSmkyAsx3UcGMm9laEqKMGzP677JI+se+8gpIipE6NWvoF3nta8a/E2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=AUhnlzLK; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1e44b8ebf43so8431795ad.3 for ; Fri, 12 Apr 2024 07:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712932052; x=1713536852; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=CTokiC2mOzeQb1t9UZXBIQTwfHhJ1xAuH+06DQhJnus=; b=AUhnlzLKqTZDu6/WL+d3R9yn9IsNJPxyUT8YB+Hmh0HHqPpg9NL6kQOPhRs0w8VyWk NKtU+BojmF/+nRDY7AtsXxxLIDqPj2cStfcqX7VZlOqCgnGQUaEQeCLoPTDUzvpxbGV9 BNLou0SaOCdObdzUosPn28Y9CCZZKMg+01SO1b1JhvTmwaecBp6CQDnx1ve8DWyJuaUV qWLzjWiFNoRC/C1zxYLDQ3Fwjf+ync/AfXUv0gLoRPk4enxkiqxR/7Lf0N/FlNmd6xFE CqY2Qe7DtokvPjbWQD/CB1YJw02HOzXcAEcqnuScQTvoxob1c3xPOty4VYTu0tYcrqpc G9KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712932052; x=1713536852; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CTokiC2mOzeQb1t9UZXBIQTwfHhJ1xAuH+06DQhJnus=; b=Lk/CtYe2hUGlH/PJY3DCENbDAOXqZMhLxk9OI5rNgbn8VHXMhMARx1AQlbHTmdIBCu H3TfUjCSmrg2ydrSksuMzGSfzwEverJfIWdB0pVbFTDpP0Ycfn6waPVsV08aofmzt2qb Aw4H3Wjd32ZG96Dw5rhJY6liJhwXaHl5j0Hu1IZH09Vf9HLSxG4oXtZ7iJG2KLvwBnV4 JDlStzwASiLSMujj5nY4rONfkV3Pw4+gEXA66O1BxPs3ogXOqrapiVHtuFailWwXiWKL 6gfVxWzp3ewO7qGp1zUcsD4MLg6Z5XwbpPXRoUv+qhVOv12TLh2YfpgBZp8EjbkmRxKh EEJA== X-Forwarded-Encrypted: i=1; AJvYcCWfm7utJVbXTBBZpa28ytlTE1lUCSsUR3In7lJjBm8AaYO0vfeeF3wDUpahO7S4l9LtXkESBZFOv0rf+fTmECeiSazlWJU4e8xB9WS2 X-Gm-Message-State: AOJu0YwkLRD7m9o2oQ+DX9Q/2AgYLfeM5b500az3LkudsPYT5wp/Xm+F +6ahEiNHY4Flb+NdYY1MbwVGnjzDQ2EJr2f8OGLJummsBopsEhUL+NrafA6e5uVgs9pfLU5z9Hf GNg== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:db08:b0:1e5:10e5:344 with SMTP id m8-20020a170902db0800b001e510e50344mr8380plx.3.1712932051773; Fri, 12 Apr 2024 07:27:31 -0700 (PDT) Date: Fri, 12 Apr 2024 07:27:30 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240405223110.1609888-1-jacob.jun.pan@linux.intel.com> <20240405223110.1609888-6-jacob.jun.pan@linux.intel.com> Message-ID: Subject: Re: [PATCH v2 05/13] x86/irq: Reserve a per CPU IDT vector for posted MSIs From: Sean Christopherson To: Kevin Tian Cc: Jacob Pan , LKML , X86 Kernel , Peter Zijlstra , "iommu@lists.linux.dev" , Thomas Gleixner , Lu Baolu , "kvm@vger.kernel.org" , Dave Hansen , Joerg Roedel , Peter Anvin , Borislav Petkov , Ingo Molnar , Paul E Luse , Dan Williams , Jens Axboe , Ashok Raj , "maz@kernel.org" , Robin Murphy , "jim.harris@samsung.com" , "a.manzanares@samsung.com" , Bjorn Helgaas , Guang Zeng , "robert.hoo.linux@gmail.com" Content-Type: text/plain; charset="us-ascii" On Fri, Apr 12, 2024, Kevin Tian wrote: > > From: Jacob Pan > > Sent: Saturday, April 6, 2024 6:31 AM > > > > +/* > > + * Posted interrupt notification vector for all device MSIs delivered to > > + * the host kernel. > > + */ > > +#define POSTED_MSI_NOTIFICATION_VECTOR 0xeb > > #define NR_VECTORS 256 > > > > Every interrupt is kind of a notification. FWIW, I find value in having "notification" in the name to differentiate between the IRQ that is notifying the CPU that there's a posted IRQ to be processed, and the posted IRQ itself.