* [PATCH] p2pdma: Whitelist the QEMU host bridge for x86_64
@ 2025-04-15 0:24 Stephen Bates
2025-04-15 17:00 ` Logan Gunthorpe
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Bates @ 2025-04-15 0:24 UTC (permalink / raw)
To: bhelgaas, logang, linux-pci, linux-kernel; +Cc: sbates
It is useful to be able to develop and test p2pdma applications in
virtualized environments. Whitelist the QEMU PCI host bridge emulated
by the default QEMU system for x86_64.
Signed-off-by: Stephen Bates <sbates@raithlin.com>
---
drivers/pci/p2pdma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c
index 0cb7e0aaba0e..03b41ee0cc72 100644
--- a/drivers/pci/p2pdma.c
+++ b/drivers/pci/p2pdma.c
@@ -442,6 +442,8 @@ static const struct pci_p2pdma_whitelist_entry {
{PCI_VENDOR_ID_INTEL, 0x2033, 0},
{PCI_VENDOR_ID_INTEL, 0x2020, 0},
{PCI_VENDOR_ID_INTEL, 0x09a2, 0},
+ /* QEMU Host Bridge */
+ {PCI_VENDOR_ID_INTEL, 0x29c0, 0},
{}
};
--
2.43.0
--
Cheers
Stephen Bates, PhD.
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] p2pdma: Whitelist the QEMU host bridge for x86_64
2025-04-15 0:24 [PATCH] p2pdma: Whitelist the QEMU host bridge for x86_64 Stephen Bates
@ 2025-04-15 17:00 ` Logan Gunthorpe
0 siblings, 0 replies; 2+ messages in thread
From: Logan Gunthorpe @ 2025-04-15 17:00 UTC (permalink / raw)
To: Stephen Bates, bhelgaas, linux-pci, linux-kernel
Hi Stephen,
On 2025-04-14 18:24, Stephen Bates wrote:
> It is useful to be able to develop and test p2pdma applications in
> virtualized environments. Whitelist the QEMU PCI host bridge emulated
> by the default QEMU system for x86_64.
The host bridge is also in real hardware. 82G33 motherboards from c.
2007. Given it's age the real hardware probably doesn't support P2P
transactions, but at the same time it's probably pretty rare and I
wouldn't expect there to be much risk of someone trying and failing a
P2P transaction on such a machine. These things are probably worth
noting in the commit message.
Other than that:
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Logan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-15 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 0:24 [PATCH] p2pdma: Whitelist the QEMU host bridge for x86_64 Stephen Bates
2025-04-15 17:00 ` Logan Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox