问题描述
我在尝试使用 IVSHMEM 时遇到了问题。 以下是我这边的配置:
- IVSHMEM 设备的 vm xml 配置:
<shmem name='ivshmem'>
<model type='ivshmem-plain'/>
<size unit='M'>2</size>
<address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
</shmem>
-
启动后,我发现 qemu 命令行里有设备选项:
ps 辅助 | grep ivshmem
/usr/bin/qemu-system-x86_64 .......(忽略其他选项) -object memory-backend-file,id=shmmem-shmem0,mem-path=/dev/shm/hostmem,size=4194304,share=yes -device ivshmem-plain,id=shmem0,memdev=shmmem-shmem0,bus= pcie.0,addr=0x10
*-memory UNCLaimED
description: RAM memory
product: Inter-VM shared memory
vendor: Red Hat,Inc.
physical id: 10
bus info: pci@0000:00:10.0
version: 01
width: 64 bits
clock: 33MHz (30.3ns)
configuration: latency=0
resources: memory:fcc1c000-fcc1c0ff memory:fdc00000-fdffffff
我的主机操作系统和阵风虚拟机操作系统是 ubuntu 20.04,版本是:
uname -a
5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
对此有什么意见吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)