[dpdk] 熟悉SDK与初步使用 (一)(qemu搭建实验环境)
搭建实验环境:
troubleshoot
第一步加载驱动
第二步切换驱动
使用了所有qemu支持的卡
[tong@T7:~/VM/dpdk]
% cat start.sh
sudo qemu-system-x86_64 -nographic -vnc 127.0.0.1: -enable-kvm \
-m 2G -cpu Nehalem -smp cores=,threads=,sockets= \
-numa node,mem=1G,cpus=-,nodeid= \
-numa node,mem=1G,cpus=-,nodeid= \
-drive file=disk.img,if=virtio \
-net nic,vlan=,model=virtio,macaddr='00:00:00:01:00:00' \
-net nic,vlan=,model=ne2k_pci,macaddr='00:00:00:01:00:01' \
-net nic,vlan=,model=i82551,macaddr='00:00:00:01:00:02' \
-net nic,vlan=,model=i82557b,macaddr='00:00:00:01:00:03' \
-net nic,vlan=,model=i82559er,macaddr='00:00:00:01:00:04' \
-net nic,vlan=,model=rtl8139,macaddr='00:00:00:01:00:05' \
-net nic,vlan=,model=e1000,macaddr='00:00:00:01:00:06' \
-net nic,vlan=,model=pcnet,macaddr='00:00:00:01:00:07' \
-net tap,vlan=,ifname=tap-dpdk-control \
-net tap,vlan=,ifname=tap-dpdk-,script=no,downscript=no \
-net tap,vlan=,ifname=tap-dpdk-,script=no,downscript=no &
# -device vfio-pci,host='0000:00:19.0' \
#ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
[tong@T7:~/VM/dpdk]
只有virtio是对队列的
[root@dpdk ~]# lspci -vv |grep -E '^00|MSI'
:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev )
:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] (prog-if [Master])
:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev )
:02.0 VGA compatible controller: Device : (rev ) (prog-if [VGA controller])
:03.0 Ethernet controller: Red Hat, Inc Virtio network device
Capabilities: [] MSI-X: Enable+ Count= Masked-
:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-(AS)
:05.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast Ethernet Controller (rev 0f)
:06.0 Ethernet controller: Intel Corporation //// Ethernet Pro (rev )
:07.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast Ethernet Controller (rev )
:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-/8101L/ PCI Fast Ethernet Adapter (rev )
:09.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev )
:0a. Ethernet controller: Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] (rev )
:0b. SCSI storage controller: Red Hat, Inc Virtio block device
Capabilities: [] MSI-X: Enable+ Count= Masked-
[root@dpdk ~]#
xxx
[root@dpdk tools]# ./dpdk-devbind.py -b igb_uio eth1
[root@dpdk tools]# ./dpdk-devbind.py -b igb_uio eth2
[root@dpdk tools]# ./dpdk-devbind.py -s Network devices using DPDK-compatible driver
============================================
::04.0 'Virtio network device' drv=igb_uio unused=
::05.0 'Virtio network device' drv=igb_uio unused= Network devices using kernel driver
===================================
::03.0 'Virtio network device' if=eth0 drv=virtio-pci unused=igb_uio *Active* Other network devices
=====================
<none>
[root@dpdk tools]#
qemu的所有nic都可以使用uio
[root@dpdk tools]# ./dpdk-devbind.py -s Network devices using DPDK-compatible driver
============================================
<none> Network devices using kernel driver
===================================
::03.0 'Virtio network device' if=eth0 drv=virtio-pci unused=igb_uio *Active*
::08.0 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter' if=ens8 drv=8139cp unused=igb_uio
::09.0 '82540EM Gigabit Ethernet Controller' if=ens9 drv=e1000 unused=igb_uio Other network devices
=====================
::04.0 'RTL-8029(AS)' unused=igb_uio
::05.0 '8255xER/82551IT Fast Ethernet Controller' unused=igb_uio
::06.0 '82557/8/9/0/1 Ethernet Pro 100' unused=igb_uio
::07.0 '8255xER/82551IT Fast Ethernet Controller' unused=igb_uio
::0a. '79c970 [PCnet32 LANCE]' unused=igb_uio
[root@dpdk tools]#
[dpdk] 熟悉SDK与初步使用 (一)(qemu搭建实验环境)的更多相关文章
- [dpdk] 熟悉SDK与初步使用 (二)(skeleton源码分析)
接续前节:[dpdk] 熟悉SDK与初步使用 (一)(qemu搭建实验环境) 程序逻辑: 运行参数: 关键API: 入口函数: int rte_eal_init(int argc, char **ar ...
- [dpdk] 熟悉SDK与初步使用 (四)(L3 Forwarding源码分析)
接续前节:[dpdk] 熟悉SDK与初步使用 (三)(IP Fragmentation源码分析) 前文中的最后一个问题,搁置,并没有找到答案.所以继续阅读其他例子的代码,想必定能在其他位置看到答案. ...
- [dpdk] 熟悉SDK与初步使用 (三)(IP Fragmentation源码分析)
对例子IP Fragmentation的熟悉,使用,以及源码分析. 功能: 该例子的功能有二: 一: 将IP分片? 二: 根据路由表,做包转发. 路由表如下: IP_FRAG: Socket : ad ...
- OVS + dpdk 安装与实验环境配置
***DPDK datapath的OVS的安装与实验环境配置 首先肯定是DPDK的安装 0:安装必要的工具 make gcc ...
- 使用 qemu 搭建内核开发环境
本文主要介绍在 MacOS 上使用 qemu 搭建 Linux Kernel 的开发环境.(在开始之前需要注意的是,本文中的 Linux 开发环境是一个远程服务器,而 qemu 被安装在本地的 Mac ...
- 理解 Linux 网络栈(3):QEMU/KVM + VxLAN 环境下的 Segmentation Offloading 技术(发送端)
本系列文章总结 Linux 网络栈,包括: (1)Linux 网络协议栈总结 (2)非虚拟化Linux环境中的网络分段卸载技术 GSO/TSO/UFO/LRO/GRO (3)QEMU/KVM + Vx ...
- 用Qemu搭建aarch32学习环境
作者信息 作者: 彭东林 邮箱: pengdonglin137@163.com QQ: 405728433 软件平台 主机: Ubuntu14.04 64位版本 模拟器:Qemu-2.8.0 Linu ...
- 用Qemu搭建x86_64学习环境
作者信息 作者:彭东林 邮箱:pengdonglin137@163.com QQ:405728433 软件平台 主机: Ubuntu14.04 64位版本 模拟器:Qemu-2.8.0 Linux内核 ...
- 用Qemu搭建x86学习环境
作者信息 作者:彭东林 邮箱:pengdonglin137@163.com QQ:405728433 软件平台 主机: Ubuntu14.04 64位版本 模拟器:Qemu-2.8.0 Linux内核 ...
随机推荐
- Windows10+Ubuntu双系统安装 (转)
1.Windows10+Ubuntu双系统安装: http://www.jianshu.com/p/2eebd6ad284d 2.UEFI启动模式安装ubuntu指南 : http://col ...
- SQL 中不同类型的表连接
http://www.linuxidc.com/Linux/2012-08/68035.htm 1.简介 在关系型数据库中,join操作是将不同的表中的数据联合在一起时非常通用的一种做法.首先让我们看 ...
- Python之路
Python学习之路 第一天 Python之路,Day1 - Python基础1介绍.基本语法.流程控制 第一天作业第二天 Python之路,Day2 - Pytho ...
- ActiveMQ开发与简介
1.概述与介绍 ActiveMQ是Apache出品,最流行的.功能强大的即时通讯和集成模式的开源服务器.ActiveMQ是一个完全支持JMS1.1和J2EE1.4规范的JMSProvider实现.提供 ...
- [译]SQL Server分析服务的权限配置
简介: 本文介绍如何配置SSAS数据库和cube相关维度的安全设置. 相对数据引擎来说,在Management Studio中配置分析服务的安全设置基本没什么区别.但是也会有一些限制,比如SSAS的权 ...
- Spring中文文档
前一段时间翻译了Jetty的一部分文档,感觉对阅读英文没有大的提高(*^-^*),毕竟Jetty的受众面还是比较小的,而且翻译过程中发现Jetty的文档写的不是很好,所以呢翻译的兴趣慢慢就不大了,只能 ...
- Spring MVC基础入门
Spring MVC简介 Spring Web MVC是一种基于Java的实现了Web MVC设计模式的请求驱动类型的轻量级Web框架,即使用了MVC架构模式的思想,将web层进行职责解耦,基于请求驱 ...
- DEV express 对Gridview某行的元素赋值
1:获取选中的行某列的值 string colValue= this.gridView1.GetRowCellValue(this.gridView1.FocusedRowHandle, this.g ...
- [转载]config文件的一个很好的实现
以下是转载于网上的一个很好的config文件的实现,留存以备案 //Config.h #pragma once #include <string> #include <map> ...
- Gym100947E || codeforces 559c 组合数取模
E - Qwerty78 Trip Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u S ...