Created
October 17, 2022 22:34
-
-
Save djbw/aa8786912c452cc0d8732bef39713933 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kvm=( | |
$qemu | |
-enable-kvm | |
-cpu kvm64 | |
-kernel $kernel | |
-initrd $initrd | |
-m 16G,slots=4,maxmem=512G | |
-machine q35,accel=kvm,usb=off,vmport=off,nvdimm=on,cxl=on | |
-bios /usr/share/OVMF/OVMF_CODE.fd | |
-smp 28,sockets=2 | |
-netdev tap,id=hostnet0,ifname=$tap,script=no,downscript=no | |
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:b7:a1:ad,addr=0x7 | |
-object memory-backend-file,id=mem1,share=on,mem-path=${mem}1,size=$((mem_size+label_size)) | |
-device nvdimm,memdev=mem1,id=nv1,label-size=${label_size} | |
-device nvme,drive=nvme0,serial=deadbeaf1,num_queues=8 | |
-drive file=$IMAGE,if=none,id=nvme0,format=raw | |
-object memory-backend-file,id=cxl-mem1,share=on,mem-path=cxl-window1,size=$cxl_backend_size | |
-object memory-backend-file,id=cxl-label1,share=on,mem-path=cxl-label1,size=$cxl_label_size | |
-device pxb-cxl,id=cxl.0,bus=pcie.0,bus_nr=52 | |
-device cxl-rp,id=rp0,bus=cxl.0,addr=0.0,chassis=0,slot=0,port=0 | |
-device cxl-type3,bus=rp0,memdev=cxl-mem1,id=cxl-pmem0,lsa=cxl-label1 | |
-M cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.size=4G | |
-boot order=nc | |
-no-reboot | |
-rtc base=utc | |
-serial stdio | |
-display none | |
-monitor null | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment