摘要:https://github.com/Mellanox/OVS/blob/master/Documentation/topics/dpdk/phy.rst https://developer.nvidia.com/zh-cn/blog/improving-performance-for-nfv-in
阅读全文
摘要:本文翻译自 2020 年 Quentin Monnet 的一篇英文博客:Understanding tc “direct action” mode for BPF[1]。 Quentin Monnet 是 Cilium 开发者之一。 如作者所说,da 模式不仅是使用 tc ebpf 程序的推荐方式,
阅读全文
摘要:7.TC routine: htb qdisc_enqueue_root(sch_generic.h) -> qdisc_enqueue(sch_generic.h) -> htb_enqueue(sch_htb.c) ->htb_classify(sch_htb.c) -> flow_classi
阅读全文
摘要:Overview After exploring XDP for some time for L2TPv3 and VXLAN, I wanted to dig deeper into hardware offload capabilities, specifically for VXLAN, bu
阅读全文
摘要:一、Smart Nic简介 1.1 Smart Nic产生的背景 目前,以Open vSwitch(OVS)为代表的虚拟交换机(vSwitch)以其灵活而丰富的功能支持(如OpenFlow、QOS、VLAN/VXLAN encap/decap)被业界广泛接受,大量应用于云计算多租户场景以及容器场景中
阅读全文
摘要:Enable switchdev mode The VF representor has switchdev ops Switchdev mode is a mode in E-Switch, that binds between representor and VF. Representor is
阅读全文
摘要:root@localhost ovs]# ovs-vswitchd unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/var/log/
阅读全文
摘要:1. 一句话总结 内存虚拟化解决虚拟机里面的进程如何访问物理机上的内存这一问题。 GuestOS本身有虚拟地址空间,用GVA表示。虚拟机认为自己独占整个内存空间,用GPA表示。 HostOS本身有虚拟机地址空间,用HVA表示。宿主机本身有物理内存空间,用HPA表示。 好,内存虚拟化的问题变成了GVA
阅读全文
摘要:du -sh * 16K arch 4.0K bundle.go 716K cmd 4.0K CODE_OF_CONDUCT.md 4.0K CODEOWNERS 4.0K command.go 8.0K config.go 16K conformance 8.0K container.go 4.0
阅读全文
摘要:http://39.107.46.219/qemu%E8%99%9A%E6%8B%9F%E5%8C%96%E5%AE%89%E5%85%A8%EF%BC%88%E4%BA%8C%EF%BC%89/ VIRTIO设备 了解QEMU和KVM交互的知道,客户机的IO操作通过KVM处理后再交由QEMU,
阅读全文
摘要:前端设备驱动 virtio_blk 虚拟机里面的进程写入一个文件,当然要通过文件系统。整个过程和咱们在文件系统那一节讲的过程没有区别。只是到了设备驱动层,我们看到的就不是普通的硬盘驱动了,而是 virtio 的驱动。 virtio 的驱动程序代码在 Linux 操作系统的源代码里面,文件名叫 dri
阅读全文
摘要:网络虚拟化有和存储虚拟化类似的地方,例如它们都是基于virtio 的,因而在看网络虚拟化的过程中,会看到和存储虚拟化很像的数据结构和原理。但是网络虚拟化也有自己的特殊性。例如,存储虚拟化是将宿主机上的文件作为客户机上的硬盘,而网络虚拟化需要依赖于内核协议栈进行网络包的封装与解封装。那怎么实现客户机和
阅读全文
摘要:/* Virtio ring descriptors: 16 bytes. These can chain together via "next". */ struct vring_desc { /* Address (guest-physical). */ __virtio64 addr; /*
阅读全文
摘要:struct kvm_memory_slot http://tinylab.org/kvm-intro-part1 https://www.cnblogs.com/LoyenWang/p/13943005.html 虚拟机使用slot来组织物理内存,每个slot对应一个struct kvm_memo
阅读全文
摘要:A detailed view of the vhost user protocol and its implementation in OVS DPDK, qemu and virtio-net Overview: How OVS DPDK and qemu communicate via the
阅读全文