From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 5C96D255248 for ; Tue, 25 Mar 2025 10:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742900107; cv=none; b=dIYjZRltYPOxeqwV5zKjwFhm63dQhLBNTnoWFoBK7aH5YSTPe8ba9+QpeNNHChtrua8axbRq/Y+9ZXI7+I3IM0EtyOyu1j/seHjuJAEBbFbqK0AyTw1aqKcgjwh75OaHr4rWGqgMO5TbUzaDuab1Jv5o5aGenglSUB1ZA7bmRRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742900107; c=relaxed/simple; bh=XT5AJ+nHjXm8l1B72Wt67CumuDKgSEgPQdWbMcdml5A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iRuuyB9UR283sF6KDvYEKgv5SAHFR9GRxq2s94RKJaft8pfNwRl+XW8GdJuBMT3Xedgk3zLvXVhDsARbPPi3fh+zohQdfs7G9KJCPxWiOaHURi14MIRmEMRsgHW8nIa6nyqF0TGk14bO0F8upDApSt/ClfS5dz/t3FxboJ2rm3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=citrix.com; spf=pass smtp.mailfrom=cloud.com; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b=KzpoWJrL; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=citrix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="KzpoWJrL" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2243803b776so35192095ad.0 for ; Tue, 25 Mar 2025 03:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1742900105; x=1743504905; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=4cvwymUL0NvAVQbxd/v5L8Mbhjg/7BbJrcRQgHQwxds=; b=KzpoWJrL/EP06t+XThIBD81hEy6Od2EqT7p2V47zyOazBn1osMstV6c39zVpbWcAJr h0LxmrsIqGS4wXEY2Xtkoiol593PV5N3RTbl277mEub65h2ot5nBWjnF+AzWAQUJKryV /s/nVyKnPtzfnXtudf062tiT1rQW+Zyy3I7bE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742900105; x=1743504905; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4cvwymUL0NvAVQbxd/v5L8Mbhjg/7BbJrcRQgHQwxds=; b=Ugcxm+XjavkgKEIFq44PTbFbzFrgqIH08g0qVzA64+YbYmASe5c9hKD0Ck9ypRsVQz raZhASgGe1doDNMme4wCApeIhwXNIIsqscia9eFVHNgo2cVIRTINqfQFIaHyex6bfHxY tLam5ii2dcW3TStNe7rbQo86Z4Bsj8tW2BWrqwD98Q3QpTCREXmZsnuZGAzE3EKPxQL1 j1kSBRY+1V5Em15vYAYqiblyys2KnwXD+HFBgb1qoNuf8Iu70piTpmyWrRZIbuSwl6Ka aqeKfkF3iuP/WfjDZ2GxmfdClaT5I41XSrnL2BUNRdr1I8PYKeATZX0BZGCHcw8KlcQM AQxA== X-Forwarded-Encrypted: i=1; AJvYcCXyg/bHUMsWfV9OQWalym3cCKf+YONiUoWdq0VfY98WrIMU2U95ab8qLKWGly6I/1UIsEncRmIrlCmOLkc=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3wK6ijYz8fv4oK4G2t9uh23YqPDB9yTY3bLmZ/RA6/EiaCYcb N1+Yha9AL8+IJW8gd/xY/USgK7HcFwS1Gym9GqVT703y2KOnx1q27JDOqvZsuYc= X-Gm-Gg: ASbGncvMqAlfYzYn/oWM0bCJ7zj6dNOHCBINqUm/GLqrYTZ+1+9Qlce2dexC1T8u/E5 oBdv+Z/iXEtnOR16NJuStWuMWW+gRQgbdCwjdRifEd1vG0z/LpFWGrCExUOtTVgLHEzhej8gg2Q M/1or13NHY1DoSYKzk7SIcwWWLvi05rBWUKAgM0lxo4jIQlXy8ouS5XkvCvb/beyj6sCh3WaeTD QFJ+KgS3Dttn3UF1n29/iN+8fBiwS/Jq097wHDbNWOHIPH2ERvdOXkHXms/MnJtfKAwbtbBpklO rTESQ+5W7BAVzNIrheFmF3/F3N666plhTLwTZ8F8U1pjzuLH+w== X-Google-Smtp-Source: AGHT+IGgGtIICegH8Sb6BTn8pdS68Ec79sYIcjMu7xJeM2n4kbkhryUYoDxYxkGjBO8+Yres0KmyXA== X-Received: by 2002:a17:902:d48b:b0:21f:52e:939e with SMTP id d9443c01a7336-22780d8ff5bmr251332765ad.28.1742900105535; Tue, 25 Mar 2025 03:55:05 -0700 (PDT) Received: from localhost ([84.78.159.3]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-227811f4383sm86448905ad.229.2025.03.25.03.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 03:55:05 -0700 (PDT) Date: Tue, 25 Mar 2025 11:55:00 +0100 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Thomas Gleixner Cc: Daniel Gomez , =?utf-8?B?SsO8cmdlbiBHcm/Dnw==?= , Bjorn Helgaas , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pci@vger.kernel.org, Bjorn Helgaas , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Subject: Re: [PATCH v3 3/3] PCI/MSI: Convert pci_msi_ignore_mask to per MSI domain flag Message-ID: References: <20250320210741.GA1099701@bhelgaas> <846c80f8-b80f-49fd-8a50-3fe8a473b8ec@suse.com> <87y0wtzg0z.ffs@tglx> <87v7rxzct0.ffs@tglx> <87sen1z9p4.ffs@tglx> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87sen1z9p4.ffs@tglx> On Tue, Mar 25, 2025 at 11:27:51AM +0100, Thomas Gleixner wrote: > On Tue, Mar 25 2025 at 11:22, Roger Pau Monné wrote: > > On Tue, Mar 25, 2025 at 10:20:43AM +0100, Thomas Gleixner wrote: > > I'm a bit confused by what msi_create_device_irq_domain() does, as it > > does allocate an irq_domain with an associated msi_domain_info > > structure, however that irq_domain is set in > > dev->msi.data->__domains[domid].domain rather than dev->msi.domain, > > and doesn't override the default irq_domain set by > > pcibios_device_add(). > > The default irq domain is a parent domain in that case on top of which > the per device domains are built. And those are private to the device. Sorry to ask, but shouldn't dev_get_msi_domain() return the specific device domain rather than the parent one? Otherwise I feel the function should rather be named dev_get_parent_msi_domain(). > The XEN variant uses the original global PCI/MSI domain concept with > this outrageous domain wrapper hack. A crime committed by some tglx > dude. I see. So the proper way would be for Xen to not override the default x86 irq_domain in dev->msi.domain (so don't have a Xen PV specific version of x86_init.irqs.create_pci_msi_domain) and instead do something similar to what VMD does? Thanks, Roger.