QEMU - CXL

Intro 文章不对CXL、Linux内核进行深究,可视为hello world研究 对于QEMU基本的使用知识,节省篇幅不再赘述,并省略繁琐细节 软件环境 宿主机&客户机 ubuntu-22.04.2-live-server-amd64 QEMU 8.0.3 https://download.qemu.org/qemu-8.0.3.tar.xz Download QEMU - QEMU 按照官方流程进行编译 启动虚拟机 qemu-system-x86_64 -M q35,cxl=on -accel kvm -cpu host -m 4096 -smp 4 -drive file=drive \ -object memory-backend-file,id=cxl-mem1,share=on,mem-path=/tmp/cxltest.raw,size=256M \ -object memory-backend-file,id=cxl-lsa1,share=on,mem-path=/tmp/lsa.raw,size=256M \ -device pxb-cxl,bus_nr=12,bus=pcie.0,id=cxl.1 \ -device cxl-rp,port=0,bus=cxl.1,id=root_port13,chassis=0,slot=2 \ -device cxl-type3,bus=root_port13,memdev=cxl-mem1,lsa=cxl-lsa1,id=cxl-pmem0 \ -M cxl-fmw.0.targets.0=cxl.1,cxl-fmw.0.size=4G 启动后应该可以在/dev目录下找到CXL文件 REF 在ubuntu上执行QEMU的编译安装_ubuntu安装qemu_田园诗人之园的博客-CSDN博客 linux报错:/bin/sh: 1: flex: not found scripts/Makefile.host:9: recipe for target ‘scripts/kconfig/lexe_锅锅是锅锅的博客-CSDN博客 How To Emulate CXL Devices using KVM and QEMU - Steve Scargall

July 25, 2023 · 1 min · Cyan