xen: import xenvirt pmd and vhost_xen
[dpdk.git] / lib / librte_eal / common / eal_common_nonpci_devs.c
index 2fef4cd..1c9c88b 100644 (file)
@@ -39,6 +39,9 @@
 #ifdef RTE_LIBRTE_PMD_PCAP
 #include <rte_eth_pcap.h>
 #endif
+#ifdef RTE_LIBRTE_PMD_XENVIRT
+#include <rte_eth_xenvirt.h>
+#endif
 #include "eal_private.h"
 
 struct device_init {
@@ -59,6 +62,12 @@ struct device_init dev_types[] = {
                        .dev_prefix = RTE_ETH_PCAP_PARAM_NAME,
                        .init_fn = rte_pmd_pcap_init
                },
+#endif
+#ifdef RTE_LIBRTE_PMD_XENVIRT
+               {
+                       .dev_prefix = RTE_ETH_XENVIRT_PARAM_NAME,
+                       .init_fn = rte_pmd_xenvirt_init
+               },
 #endif
                {
                        .dev_prefix = "-nodev-",