get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/71005/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 71005,
    "url": "https://patches.dpdk.org/api/patches/71005/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200609103139.22168-8-talshn@mellanox.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200609103139.22168-8-talshn@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200609103139.22168-8-talshn@mellanox.com",
    "date": "2020-06-09T10:31:38",
    "name": "[v5,7/8] bus/pci: introduce Windows support with stubs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2420f9bfc00c29988055d512d41614d5ef32d91e",
    "submitter": {
        "id": 1669,
        "url": "https://patches.dpdk.org/api/people/1669/?format=api",
        "name": "Tal Shnaiderman",
        "email": "talshn@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200609103139.22168-8-talshn@mellanox.com/mbox/",
    "series": [
        {
            "id": 10357,
            "url": "https://patches.dpdk.org/api/series/10357/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10357",
            "date": "2020-06-09T10:31:33",
            "name": "Windows bus/pci support",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/10357/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/71005/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/71005/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2321EA0516;\n\tTue,  9 Jun 2020 12:33:11 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E65F4323C;\n\tTue,  9 Jun 2020 12:32:08 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id A528B2986\n for <dev@dpdk.org>; Tue,  9 Jun 2020 12:31:57 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@mellanox.com) with SMTP; 9 Jun 2020 13:31:56 +0300",
            "from l-wincomp04-vm.labs.mlnx (l-wincomp04-vm.mtl.labs.mlnx\n [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 059AVt58031085;\n Tue, 9 Jun 2020 13:31:56 +0300"
        ],
        "From": "talshn@mellanox.com",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, pallavi.kadam@intel.com, dmitry.kozliuk@gmail.com,\n david.marchand@redhat.com, grive@u256.net, ranjit.menon@intel.com,\n navasile@linux.microsoft.com, harini.ramakrishnan@microsoft.com,\n ocardona@microsoft.com, anatoly.burakov@intel.com,\n Tal Shnaiderman <talshn@mellanox.com>",
        "Date": "Tue,  9 Jun 2020 13:31:38 +0300",
        "Message-Id": "<20200609103139.22168-8-talshn@mellanox.com>",
        "X-Mailer": "git-send-email 2.16.1.windows.4",
        "In-Reply-To": "<20200609103139.22168-1-talshn@mellanox.com>",
        "References": "<20200609103139.22168-1-talshn@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v5 7/8] bus/pci: introduce Windows support with\n\tstubs",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Tal Shnaiderman <talshn@mellanox.com>\n\nAddition of stub eal and bus/pci functions to compile\nbus/pci for Windows.\n\nSigned-off-by: Tal Shnaiderman <talshn@mellanox.com>\n---\n drivers/baseband/meson.build       |   4 +\n drivers/bus/ifpga/meson.build      |   6 ++\n drivers/bus/pci/meson.build        |  14 ++-\n drivers/bus/pci/pci_common.c       |   2 -\n drivers/bus/pci/windows/pci.c      | 169 +++++++++++++++++++++++++++++++++++++\n drivers/bus/vdev/meson.build       |   6 ++\n drivers/bus/vmbus/meson.build      |   7 ++\n drivers/common/meson.build         |   4 +\n drivers/compress/meson.build       |   4 +\n drivers/crypto/meson.build         |   4 +\n drivers/event/meson.build          |   4 +\n drivers/mempool/meson.build        |   4 +\n drivers/meson.build                |   4 -\n drivers/net/meson.build            |   4 +\n drivers/raw/meson.build            |   4 +\n drivers/vdpa/meson.build           |   4 +\n lib/librte_eal/common/meson.build  |   1 +\n lib/librte_eal/rte_eal_exports.def |   8 ++\n lib/librte_eal/windows/eal.c       |  27 +++++-\n lib/librte_eal/windows/eal_mp.c    |  14 +++\n 20 files changed, 283 insertions(+), 11 deletions(-)\n create mode 100644 drivers/bus/pci/windows/pci.c",
    "diff": "diff --git a/drivers/baseband/meson.build b/drivers/baseband/meson.build\nindex 4d909f9a62..b299c3a063 100644\n--- a/drivers/baseband/meson.build\n+++ b/drivers/baseband/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec']\n \n config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@'\ndiff --git a/drivers/bus/ifpga/meson.build b/drivers/bus/ifpga/meson.build\nindex 4ea31f1741..15339e065c 100644\n--- a/drivers/bus/ifpga/meson.build\n+++ b/drivers/bus/ifpga/meson.build\n@@ -1,6 +1,12 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2018 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tbuild = false\n+\treason = 'not supported on Windows'\n+\tsubdir_done()\n+endif\n+\n deps += ['pci', 'kvargs', 'rawdev']\n install_headers('rte_bus_ifpga.h')\n sources = files('ifpga_common.c', 'ifpga_bus.c')\ndiff --git a/drivers/bus/pci/meson.build b/drivers/bus/pci/meson.build\nindex b520bdfc14..31c492021e 100644\n--- a/drivers/bus/pci/meson.build\n+++ b/drivers/bus/pci/meson.build\n@@ -4,16 +4,22 @@\n deps += ['pci']\n install_headers('rte_bus_pci.h')\n sources = files('pci_common.c',\n-\t'pci_common_uio.c',\n \t'pci_params.c')\n if is_linux\n-\tsources += files('linux/pci.c',\n+\tsources += files('pci_common_uio.c',\n+\t\t\t'linux/pci.c',\n \t\t\t'linux/pci_uio.c',\n \t\t\t'linux/pci_vfio.c')\n \tincludes += include_directories('linux')\n-else\n-\tsources += files('bsd/pci.c')\n+endif\n+if host_machine.system() == 'bsd'\n+\tsources += files('pci_common_uio.c',\n+\t\t\t'bsd/pci.c')\n \tincludes += include_directories('bsd')\n endif\n+if host_machine.system() == 'windows'\n+\tsources += files('windows/pci.c')\n+\tincludes += include_directories('windows')\n+endif\n \n deps += ['kvargs']\ndiff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\nindex 245d94f59c..eb0231f403 100644\n--- a/drivers/bus/pci/pci_common.c\n+++ b/drivers/bus/pci/pci_common.c\n@@ -10,8 +10,6 @@\n #include <stdlib.h>\n #include <stdio.h>\n #include <sys/queue.h>\n-#include <sys/mman.h>\n-\n #include <rte_errno.h>\n #include <rte_interrupts.h>\n #include <rte_log.h>\ndiff --git a/drivers/bus/pci/windows/pci.c b/drivers/bus/pci/windows/pci.c\nnew file mode 100644\nindex 0000000000..b1d34ae11c\n--- /dev/null\n+++ b/drivers/bus/pci/windows/pci.c\n@@ -0,0 +1,169 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+#include <rte_errno.h>\n+#include <rte_log.h>\n+\n+#include <rte_string_fns.h>\n+#include <rte_eal_memconfig.h>\n+\n+#include \"private.h\"\n+\n+/* The functions below are not implemented on Windows,\n+ * but need to be defined for compilation purposes\n+ */\n+\n+/* Map pci device */\n+int\n+rte_pci_map_device(struct rte_pci_device *dev __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn 0;\n+}\n+\n+/* Unmap pci device */\n+void\n+rte_pci_unmap_device(struct rte_pci_device *dev __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+}\n+\n+int\n+pci_update_device(const struct rte_pci_addr *addr __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn 0;\n+}\n+\n+/* Read PCI config space. */\n+int\n+rte_pci_read_config(const struct rte_pci_device *dev __rte_unused,\n+\tvoid *buf __rte_unused, size_t len __rte_unused,\n+\toff_t offset __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn 0;\n+}\n+\n+/* Write PCI config space. */\n+int\n+rte_pci_write_config(const struct rte_pci_device *dev __rte_unused,\n+\tconst void *buf __rte_unused, size_t len __rte_unused,\n+\toff_t offset __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn 0;\n+}\n+\n+enum rte_iova_mode\n+pci_device_iova_mode(const struct rte_pci_driver *pdrv __rte_unused,\n+\t\tconst struct rte_pci_device *pdev __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn RTE_IOVA_DC;\n+}\n+\n+int\n+rte_pci_ioport_map(struct rte_pci_device *dev __rte_unused,\n+\tint bar __rte_unused, struct rte_pci_ioport *p __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn -1;\n+}\n+\n+\n+void\n+rte_pci_ioport_read(struct rte_pci_ioport *p __rte_unused,\n+\tvoid *data __rte_unused, size_t len __rte_unused,\n+\toff_t offset __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+}\n+\n+int\n+rte_pci_ioport_unmap(struct rte_pci_ioport *p __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn -1;\n+}\n+\n+bool\n+pci_device_iommu_support_va(const struct rte_pci_device *dev __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn false;\n+}\n+\n+void\n+rte_pci_ioport_write(struct rte_pci_ioport *p __rte_unused,\n+\t\tconst void *data __rte_unused, size_t len __rte_unused,\n+\t\toff_t offset __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+}\n+\n+\n+/* remap the PCI resource of a PCI device in anonymous virtual memory */\n+int\n+pci_uio_remap_resource(struct rte_pci_device *dev __rte_unused)\n+{\n+\t/* This function is not implemented on Windows.\n+\t * We really should short-circuit the call to these functions by\n+\t * clearing the RTE_PCI_DRV_NEED_MAPPING flag\n+\t * in the rte_pci_driver flags.\n+\t */\n+\treturn -1;\n+}\n+/*\n+ * Scan the contents of the PCI bus\n+ * and add all network class devices into the devices list.\n+ */\n+int\n+rte_pci_scan(void)\n+{\n+\treturn 0;\n+}\ndiff --git a/drivers/bus/vdev/meson.build b/drivers/bus/vdev/meson.build\nindex 967d54e4f8..abaf36f1dd 100644\n--- a/drivers/bus/vdev/meson.build\n+++ b/drivers/bus/vdev/meson.build\n@@ -1,6 +1,12 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tbuild = false\n+\treason = 'not supported on Windows'\n+\tsubdir_done()\n+endif\n+\n sources = files('vdev.c',\n \t'vdev_params.c')\n install_headers('rte_bus_vdev.h')\ndiff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build\nindex a68a1de9d5..7c9865fe85 100644\n--- a/drivers/bus/vmbus/meson.build\n+++ b/drivers/bus/vmbus/meson.build\n@@ -1,5 +1,12 @@\n # SPDX-License-Identifier: BSD-3-Clause\n \n+if host_machine.system() == 'windows'\n+\tbuild = false\n+\treason = 'not supported on Windows'\n+\tsubdir_done()\n+endif\n+\n+\n install_headers('rte_bus_vmbus.h','rte_vmbus_reg.h')\n \n sources = files('vmbus_common.c',\ndiff --git a/drivers/common/meson.build b/drivers/common/meson.build\nindex ffd06e2c3c..1cdcd95d6e 100644\n--- a/drivers/common/meson.build\n+++ b/drivers/common/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Cavium, Inc\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n std_deps = ['eal']\n drivers = ['cpt', 'dpaax', 'iavf', 'mlx5', 'mvep', 'octeontx', 'octeontx2', 'qat']\n config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'\ndiff --git a/drivers/compress/meson.build b/drivers/compress/meson.build\nindex 817ef3be42..e6c7d564e3 100644\n--- a/drivers/compress/meson.build\n+++ b/drivers/compress/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['isal', 'octeontx', 'qat', 'zlib']\n \n std_deps = ['compressdev'] # compressdev pulls in all other needed deps\ndiff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build\nindex 7fa1fbe269..2c591eaf02 100644\n--- a/drivers/crypto/meson.build\n+++ b/drivers/crypto/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['aesni_gcm',\n \t   'aesni_mb',\n \t   'armv8',\ndiff --git a/drivers/event/meson.build b/drivers/event/meson.build\nindex 50d30c53fc..264d4887f9 100644\n--- a/drivers/event/meson.build\n+++ b/drivers/event/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['dpaa', 'dpaa2', 'octeontx2', 'opdl', 'skeleton', 'sw', 'dsw']\n if not (toolchain == 'gcc' and cc.version().version_compare('<4.8.6') and\n \tdpdk_conf.has('RTE_ARCH_ARM64'))\ndiff --git a/drivers/mempool/meson.build b/drivers/mempool/meson.build\nindex 7520e489f4..0c6e700823 100644\n--- a/drivers/mempool/meson.build\n+++ b/drivers/mempool/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['bucket', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring', 'stack']\n std_deps = ['mempool']\n config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL'\ndiff --git a/drivers/meson.build b/drivers/meson.build\nindex e216011d47..62dc68e136 100644\n--- a/drivers/meson.build\n+++ b/drivers/meson.build\n@@ -1,10 +1,6 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017-2019 Intel Corporation\n \n-if is_windows\n-\tsubdir_done()\n-endif\n-\n # Defines the order in which the drivers are buit.\n dpdk_driver_classes = ['common',\n \t       'bus',\ndiff --git a/drivers/net/meson.build b/drivers/net/meson.build\nindex 266448ff26..7a6ea648f5 100644\n--- a/drivers/net/meson.build\n+++ b/drivers/net/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2017 Intel Corporation\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['af_packet',\n \t'af_xdp',\n \t'ark',\ndiff --git a/drivers/raw/meson.build b/drivers/raw/meson.build\nindex bb57977606..334b14ac37 100644\n--- a/drivers/raw/meson.build\n+++ b/drivers/raw/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2018 NXP\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['dpaa2_cmdif', 'dpaa2_qdma',\n \t'ifpga', 'ioat', 'ntb',\n \t'octeontx2_dma',\ndiff --git a/drivers/vdpa/meson.build b/drivers/vdpa/meson.build\nindex e3ed54a257..7eedf826d4 100644\n--- a/drivers/vdpa/meson.build\n+++ b/drivers/vdpa/meson.build\n@@ -1,6 +1,10 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright 2019 Mellanox Technologies, Ltd\n \n+if host_machine.system() == 'windows'\n+\tsubdir_done()\n+endif\n+\n drivers = ['ifc',\n \t   'mlx5',]\n std_deps = ['bus_pci', 'kvargs']\ndiff --git a/lib/librte_eal/common/meson.build b/lib/librte_eal/common/meson.build\nindex a16f002a3e..ffa349f9a4 100644\n--- a/lib/librte_eal/common/meson.build\n+++ b/lib/librte_eal/common/meson.build\n@@ -8,6 +8,7 @@ if is_windows\n \t\t'eal_common_bus.c',\n \t\t'eal_common_class.c',\n \t\t'eal_common_config.c',\n+\t\t'eal_common_dev.c',\n \t\t'eal_common_devargs.c',\n \t\t'eal_common_dynmem.c',\n \t\t'eal_common_errno.c',\ndiff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def\nindex 8ed5fad987..441f646707 100644\n--- a/lib/librte_eal/rte_eal_exports.def\n+++ b/lib/librte_eal/rte_eal_exports.def\n@@ -3,6 +3,11 @@ EXPORTS\n \tper_lcore__rte_errno\n \trte_calloc\n \trte_calloc_socket\n+\tper_lcore__rte_errno\n+\trte_bus_register\n+\trte_dev_is_probed\n+\trte_devargs_next\n+\trte_devargs_remove\n \trte_eal_get_configuration\n \trte_eal_has_hugepages\n \trte_eal_init\n@@ -47,6 +52,9 @@ EXPORTS\n \trte_memzone_reserve_aligned\n \trte_memzone_reserve_bounded\n \trte_memzone_walk\n+\trte_strsplit\n+\trte_vfio_container_dma_map\n+\trte_vfio_container_dma_unmap\n \trte_vlog\n \trte_realloc\n \trte_zmalloc\ndiff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c\nindex 506b29bf60..2065c58932 100644\n--- a/lib/librte_eal/windows/eal.c\n+++ b/lib/librte_eal/windows/eal.c\n@@ -242,7 +242,7 @@ __rte_trace_point_register(rte_trace_point_t *trace, const char *name,\n int\n rte_eal_init(int argc, char **argv)\n {\n-\tint i, fctret;\n+\tint i, fctret, bscan;\n \n \trte_eal_log_init(NULL, 0);\n \n@@ -317,6 +317,13 @@ rte_eal_init(int argc, char **argv)\n \n \teal_thread_init_master(rte_config.master_lcore);\n \n+\tbscan = rte_bus_scan();\n+\tif (bscan < 0) {\n+\t\trte_eal_init_alert(\"Cannot init PCI\");\n+\t\trte_errno = ENODEV;\n+\t\treturn -1;\n+\t}\n+\n \tRTE_LCORE_FOREACH_SLAVE(i) {\n \n \t\t/*\n@@ -345,3 +352,21 @@ rte_eal_init(int argc, char **argv)\n \trte_eal_mp_wait_lcore();\n \treturn fctret;\n }\n+\n+int\n+rte_vfio_container_dma_map(__rte_unused int container_fd,\n+\t\t\t__rte_unused uint64_t vaddr,\n+\t\t\t__rte_unused uint64_t iova,\n+\t\t\t__rte_unused uint64_t len)\n+{\n+\treturn -1;\n+}\n+\n+int\n+rte_vfio_container_dma_unmap(__rte_unused int container_fd,\n+\t\t\t__rte_unused uint64_t vaddr,\n+\t\t\t__rte_unused uint64_t iova,\n+\t\t\t__rte_unused uint64_t len)\n+{\n+\treturn -1;\n+}\ndiff --git a/lib/librte_eal/windows/eal_mp.c b/lib/librte_eal/windows/eal_mp.c\nindex 16a5e8ba03..70061bea03 100644\n--- a/lib/librte_eal/windows/eal_mp.c\n+++ b/lib/librte_eal/windows/eal_mp.c\n@@ -101,3 +101,17 @@ request_sync(void)\n \tEAL_LOG_STUB();\n \treturn 0;\n }\n+\n+int\n+eal_dev_hotplug_request_to_primary(struct eal_dev_mp_req *req)\n+{\n+\tRTE_SET_USED(req);\n+\treturn 0;\n+}\n+\n+int\n+eal_dev_hotplug_request_to_secondary(struct eal_dev_mp_req *req)\n+{\n+\tRTE_SET_USED(req);\n+\treturn 0;\n+}\n",
    "prefixes": [
        "v5",
        "7/8"
    ]
}