Skip to contentSkip to conversation

p2pdma: Whitelist the QEMU host bridge for x86_64

PATCH In review Stephen Bates 2 participants 2 messages Apr 15, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 p2pdma: Whitelist the QEMU host bridge for x86_64

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.

---
 drivers/pci/p2pdma.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/p2pdma.c +2 -0
index 0cb7e0aaba0e..03b41ee0cc72 100644
@@ -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},
 	{}
 };
 
Signature · 8 lines
2.43.0


-- 

Cheers

Stephen Bates, PhD.
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Stephen,

Quoted 3 lines · Stephen Bates

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:

Logan