qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configure CXL Volatile Memory Device


From: Shivanshu Rastogi
Subject: Configure CXL Volatile Memory Device
Date: Tue, 29 Mar 2022 12:48:56 +0530

Hi,

I am running the QEMU with CXL 2.0 MEM device using  QEMU CXL branch. (https://gitlab.com/bwidawsk/qemu/)


I am using below configuration and able to see the "cxl-pmem" devices.

qemu-system-x86_64 -virtfs local,path=$HOME/git/qemu/share,mount_tag=qshare,security_model=none -drive file=/var/lib/libvirt/images/CXL-Test.qcow2,format=qcow2,index=0,media=disk,id=hd \
-m 4G,slots=8,maxmem=8G \
-smp 4 \
-machine type=q35,accel=kvm,nvdimm=on,cxl=on \
-enable-kvm \
-nographic \
-net nic \
-net user,hostfwd=tcp::2222-:22 \
-object memory-backend-ram,size=4G,id=mem0 \
-numa node,nodeid=0,cpus=0-3,memdev=mem0 \
-object memory-backend-file,id=cxl-mem1,share=on,mem-path=cxl-window1,size=512M \
-object memory-backend-file,id=cxl-label1,share=on,mem-path=cxl-label1,size=1K \
-object memory-backend-file,id=cxl-label2,share=on,mem-path=cxl-label2,size=1K \
-device pxb-cxl,id=cxl.0,bus=pcie.0,bus_nr=52,uid=0,len-window-base=1,window-base[0]=0x4c00000000,memdev[0]=cxl-mem1 \
-device cxl-rp,id=rp0,bus=cxl.0,addr=0.0,chassis=0,slot=0,port=0 \
-device cxl-rp,id=rp1,bus=cxl.0,addr=1.0,chassis=0,slot=1,port=1 \
-device cxl-type3,bus=rp0,memdev=cxl-mem1,id=cxl-pmem0,size=256M,lsa=cxl-label1 \
-device cxl-type3,bus=rp1,memdev=cxl-mem1,id=cxl-pmem1,size=256M,lsa=cxl-label2

             

How can we emulate a Volatile Memory device like the above CXL persistent memory device? It would be helpful if anyone can provide QEMU configuration and required changes for CXL Type 3 (Volatile Memory)?

 

Thanks,

Shivanshu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]