From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 D5F0F33998 for ; Tue, 14 Jan 2025 10:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736850888; cv=none; b=cn70vpqYvBGMFeMaVFOjTmWUUBcpD75BA/2VKVTM12E2EHw5c0REs+5Nb9pKeRElN9pDbx2iG41OXWKPvMAe7cOKLWeX2/aZiYpDebvvaAykaD/luBmLef2xBpfjZ6K7AmQMSCjMUp002fxKKJqGrWnK7ZCD49G9MFD+wOu32As= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736850888; c=relaxed/simple; bh=bsJJLJn3VHHuCSD5egPs/4Lq3WXHUmzXUcEqJuHrl60=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bEiY6gk+7nCpMNOwmwCUDKEJm7AwR3vFwZcsVXR4cxB0W5SQSETDpooFZal6P15NruBF7fI5BbZwioe3J7rwonm4HX6EcUgNxMyRkX/HfhZcxkUAqWEemPsEZp45ffBOKCcp/rCV5ERo+NZm5px6NgCEuX4Hb5B1ilEcXxlTUxs= 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=rJ6HnjDn; arc=none smtp.client-ip=209.85.218.46 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="rJ6HnjDn" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-aae81f4fdc4so1014962066b.0 for ; Tue, 14 Jan 2025 02:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1736850885; x=1737455685; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wQwSjXI241hYCdXgNAwQNCsum6/0WR1kpNNnkcYE330=; b=rJ6HnjDn9nllRdLqDbZ4/YrGcHU/mEJtual89KYdb1e10tDJPcFAXD0LoILxoOuczS fB8BasnGncxbpK+C9elwwvCJWxaFgolG7P3zY3r8HdhTdq1aFtpH5LOuhcpRDsRAyvEO CczQvv9f7O0RySgvU4HMCEHnCxSkznSnZm/6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736850885; x=1737455685; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wQwSjXI241hYCdXgNAwQNCsum6/0WR1kpNNnkcYE330=; b=ii/Gl05JjFv+ZQiVgnsTrpgk1YU3xg5eIVzjafVC7YJUT/yafZKJtqJxjGkNWx1yIS g+4KtVZFtCLdX36zz2M+nhQ07GRrfSTF+jI7UnSUwW5qQFdpjomi75Jjspz1CW1/l7XF CrfJBGpdquybnbKi+VtNW2+W3UbJFCilSDyqw+tabj9vTFQvuXbwkrWNXXhx+L9Ipd45 iei4gjWbHnaophhf5DhDa16jtCZFLCpYUauh7yCyoG2c1pEhBVq9RlTL6TRHiKmixIPg wzQ/lOZ7tZjDSOwvR4+d/anqeUMUoROR6gbZ4YdpxjKCaVifSFfH6604zHRPSQwwhSUs 3BgA== X-Gm-Message-State: AOJu0YwuANZaGLNKhKDN6QY+nKldt1hU5dTC5Ce1Sau3weZVlQJn2LkI P/QiHw4lETcb8Ak8umzoK34VTI9Bq4jUWHnOUHxnDW5Gpmgz1yhOE0yYhIPnH0lURNeOTrGHE4n 1 X-Gm-Gg: ASbGncuHuC9qXMyQggfn04a+6EOI46G+oW5fMUuaH8S+My/BQnftROcIq03DSEyt3A8 GbEbSMR1g8w/QKtOzEY9Zcn6laVcfN1oTgyBsHUB1CAHrKp42y++o9Toh2INL0IOBMa7L3JKXhB RgVGp44+G176gfik4s6G5cQcM1SB1EJtYQXIgk9YpEWu7dC1cdT4R3qbZjItDLNBu13/YwzH44B xMF8wt7/T6aVatSYsCRvT13FKdLsBvfpQ3rxN0/DOoPvG/zge1Ir9JSppwPQPT2A7g= X-Google-Smtp-Source: AGHT+IGj7ARHxTxMk2ZMpt+SBomtNarwYt9nXspoozduRWM9XmoJhTSEuJ+ewJ9qdrVRqwpHP4I48w== X-Received: by 2002:a17:907:704:b0:aae:bd36:b198 with SMTP id a640c23a62f3a-ab2abcab421mr2297280466b.47.1736850884836; Tue, 14 Jan 2025 02:34:44 -0800 (PST) Received: from localhost ([84.78.159.3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab2c956479asm611975466b.116.2025.01.14.02.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 02:34:44 -0800 (PST) From: Roger Pau Monne To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: Roger Pau Monne Subject: [PATCH v2 0/3] xen: fix usage of devices behind a VMD bridge Date: Tue, 14 Jan 2025 11:33:10 +0100 Message-ID: <20250114103315.51328-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.46.0 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-Transfer-Encoding: 8bit Hello, The following series should fix the usage of devices behind a VMD bridge when running Linux as a Xen PV hardware domain (dom0). I've only been able to test PV. I think PVH should also work but I don't have hardware capable of testing it right now. I don't expect the first two patches to be problematic, the last patch is likely to be more controversial. I've tested it internally and didn't see any issues, but my testing of PV mode is mostly limited to dom0. Thanks, Roger. Roger Pau Monne (3): xen/pci: do not register devices with segments >= 0x10000 vmd: disable MSI remapping bypass under Xen pci/msi: remove pci_msi_ignore_mask arch/x86/pci/xen.c | 8 ++------ drivers/pci/controller/vmd.c | 19 ++++++++++++++++++ drivers/pci/msi/msi.c | 37 ++++++++++++++++++++---------------- drivers/xen/pci.c | 19 ++++++++++++++++++ include/linux/msi.h | 3 ++- kernel/irq/msi.c | 2 +- 6 files changed, 64 insertions(+), 24 deletions(-) -- 2.46.0