Skip to content

Instantly share code, notes, and snippets.

@davidlohr
Last active December 11, 2023 02:11
Show Gist options
  • Save davidlohr/695dfca37db7984f3b37c41c5bfe17eb to your computer and use it in GitHub Desktop.
Save davidlohr/695dfca37db7984f3b37c41c5bfe17eb to your computer and use it in GitHub Desktop.
syzkaller config - qemu deployment emulating a simple setup with just one directly attached CXL Type 3 volatile memory device
{
"target": "linux/amd64",
"http": "127.0.0.1:56741",
"workdir": "workdir",
"kernel_obj": "/home/dave/code/linux/",
"image": "/img/bullseye.img",
"sshkey": "/img/bullseye.id_rsa",
"syzkaller": "/home/dave/code/syzkaller",
"procs": 8,
"type": "qemu",
"enable_syscalls": [ "openat$cxl*", "write$cxl*", "ioctl$CXL*","syz_open_dev$cxlmem*" ],
"vm": {
"qemu": "/home/dave/git/qemu-vanilla/build/qemu-system-x86_64",
"count": 1,
"qemu_args": "-machine q35,accel=kvm,cxl=on -object memory-backend-ram,id=vmem0,share=on,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,volatile-memdev=vmem0,id=cxl-vmem0 -M cxl-fmw.0.targets.0=cxl.1,cxl-fmw.0.size=4G",
"kernel": "/home/dave/code/linux/arch/x86/boot/bzImage",
"cmdline": "net.ifnames=0 cxl_acpi.dyndbg=+fplm cxl_pci.dyndbg=+fplm cxl_core.dyndbg=+fplm cxl_mem.dyndbg=+fplm cxl_pmem.dyndbg=+fplm cxl_port.dyndbg=+fplm cxl_region.dyndbg=+fplm cxl_test.dyndbg=+fplm",
"cpu": 4,
"mem": 2048
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment