svn commit: r356805 - in stable/11/sys: dev/netmap net
Vincenzo Maffione
vmaffione at FreeBSD.org
Thu Jan 16 20:57:30 UTC 2020
Author: vmaffione
Date: Thu Jan 16 20:57:29 2020
New Revision: 356805
URL: https://svnweb.freebsd.org/changeset/base/356805
Log:
MFC r356704
netmap: disable passthrough with no hypervisor support
The netmap passthrough subsystem requires proper support in the
hypervisor. In particular, two PCI device ids (from the Red Hat
PCI vendor id 0x1b36) need to be assigned to the two netmap
virtual devices. We then disable these devices until the ids have
not been assigned, in order to avoid conflicts with other
virtual devices emulated by upstream QEMU.
PR: 241774
Modified:
stable/11/sys/dev/netmap/netmap_kern.h
stable/11/sys/net/netmap_virt.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/netmap/netmap_kern.h
==============================================================================
--- stable/11/sys/dev/netmap/netmap_kern.h Thu Jan 16 20:55:15 2020 (r356804)
+++ stable/11/sys/dev/netmap/netmap_kern.h Thu Jan 16 20:57:29 2020 (r356805)
@@ -74,7 +74,6 @@
#define WITH_PIPES
#define WITH_MONITOR
#define WITH_GENERIC
-#define WITH_PTNETMAP /* ptnetmap guest support */
#define WITH_EXTMEM
#define WITH_NMNULL
#endif
Modified: stable/11/sys/net/netmap_virt.h
==============================================================================
--- stable/11/sys/net/netmap_virt.h Thu Jan 16 20:55:15 2020 (r356804)
+++ stable/11/sys/net/netmap_virt.h Thu Jan 16 20:57:29 2020 (r356805)
@@ -44,8 +44,8 @@
/* PCI identifiers and PCI BARs for ptnetmap-memdev and ptnet. */
#define PTNETMAP_MEMDEV_NAME "ptnetmap-memdev"
#define PTNETMAP_PCI_VENDOR_ID 0x1b36 /* QEMU virtual devices */
-#define PTNETMAP_PCI_DEVICE_ID 0x000c /* memory device */
-#define PTNETMAP_PCI_NETIF_ID 0x000d /* ptnet network interface */
+#define PTNETMAP_PCI_DEVICE_ID 0xcccc /* memory device */
+#define PTNETMAP_PCI_NETIF_ID 0xcccd /* ptnet network interface */
#define PTNETMAP_IO_PCI_BAR 0
#define PTNETMAP_MEM_PCI_BAR 1
#define PTNETMAP_MSIX_PCI_BAR 2
More information about the svn-src-stable
mailing list