windows 网络
windows 有 dpdk 和 spdk 么?
可以看看,如果虚拟机想要实现最佳性能,该如何实现?
windows 特有的: https://npcap.com/
这里应该就是 windows 关于网络的所有的特性了吧: https://learn.microsoft.com/en-us/windows-hardware/drivers/network/introduction-to-receive-side-scaling
windows user mode driver
https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/overview-of-the-umdf
windows 那些驱动是卸载到用户态的? 有 vfio 么?
从这里看,应该是有的: https://learn.microsoft.com/en-us/windows-hardware/drivers/network/overview-of-single-root-i-o-virtualization–sr-iov-
调试文档
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/user-space-and-system-space
qemu 的存储后端有 smaba 吗?
有趣的,那么其实也可以类似的实现一个 ssh 后端, 通过 ssh 来共享目录啊:
``smb=dir[,smbserver=addr]``
When using the user mode network stack, activate a built-in SMB
server so that Windows OSes can access to the host files in
``dir`` transparently. The IP address of the SMB server can be
set to addr. By default the 4th IP in the guest network is used,
i.e. x.x.x.4.
In the guest Windows OS, the line:
::
10.0.2.4 smbserver
must be added in the file ``C:\WINDOWS\LMHOSTS`` (for windows
9x/Me) or ``C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS`` (Windows
NT/2000).
Then ``dir`` can be accessed in ``\\smbserver\qemu``.
Note that a SAMBA server must be installed on the host OS.
#ifdef CONFIG_SLIRP
"-netdev user,id=str[,ipv4=on|off][,net=addr[/mask]][,host=addr]\n"
" [,ipv6=on|off][,ipv6-net=addr[/int]][,ipv6-host=addr]\n"
" [,restrict=on|off][,hostname=host][,dhcpstart=addr]\n"
" [,dns=addr][,ipv6-dns=addr][,dnssearch=domain][,domainname=domain]\n"
" [,tftp=dir][,tftp-server-name=name][,bootfile=f][,hostfwd=rule][,guestfwd=rule]"
#ifndef _WIN32
"[,smb=dir[,smbserver=addr]]\n"
#endif
" configure a user mode network backend with ID 'str',\n"
" its DHCP server and optional services\n"
#endif
vmbus
依旧完全看不懂了
GPU 虚拟化那边我记得主要有这些整活方案:
- PCIe 直通
- D3DKMT 或者 Linux DRM 这类 GPU 驱动需要的系统调用直通
- API 转译透传
目前我知道的是,就桌面那边的 GPU 虚拟化方案……VirtIO 那群人老羡慕巨硬那种说一不二在内核态统一 D3D 系统调用于是可以让 Hyper-V 直接透传 D3DKMT 接口到虚拟机
其实皮衣他不开放也没关系,毕竟 Hyper-V 的 WDDM 系统调用透传(D3DKMT)这件事 NVIDIA 还是不得不支持的,毕竟 WSL2 有 CUDA 加速用得这个
毕竟其他虚拟化阵营大多都想搞 VMBus 模拟,这样就可以不需要给 Windows Guest 做 Guest 驱动了,不需要和 Microsoft 在 WHQL 上扯皮
当然 GPU 虚拟化感觉重点应该还是在 Guest 驱动适配(想到了 Windows WDDM 那个巨坑了[流泪])
不然就是 virgl/venus/gfxstream 这种传 api 调用的东西了
刚刚看了下相关内容,QEMU 在今年年初有个支持 virtio-gpu DRM native context 的补丁(已经合并),里面提到了当时支持的硬件:
- freedreno 已经完全上游
- amdgpu 已经完全上游
- intel i915 有 PR 了
- asahi 部分上游
本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。