Question: how to specify disk image?
Hi,
I'm a newbie to CXL, I'm trying to get this QEMU fork up and running in a Linux VM on a MacBook M1 to get my hands dirty with CXL in an emulated environment.
I've been using https://www.qemu.org/docs/master/system/devices/cxl.html as a guide for getting QEMU command line parameters for the CXL topology. It leaves out anything related to disk or cdrom parameters, this obviously varies per user.
First I try this:
% ./aarch64-softmmu/qemu-system-aarch64 -M virt,gic-version=3,cxl=on -m 4g,maxmem=8G,slots=8 -cpu max
-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 -display vnc=10.211.55.3:0,password=on,to=99
This works with your repo, mainline QEMU 8.1 doesn't work with this, complains about virt-8.1-machine.cxl missing.
Next I just try to specify an ISO for -cdrom:
% ./aarch64-softmmu/qemu-system-aarch64 -M virt,gic-version=3,cxl=on -m 4g,maxmem=8G,slots=8 -cpu max
-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 -display vnc=10.211.55.3:0,password=on,to=99 -cdrom ../../../ubuntu-23.04-live-server-arm64.iso
qemu-system-aarch64: -cdrom ../../../ubuntu-23.04-live-server-arm64.iso: PCI: Only PCI/PCIe bridges can be plugged into pxb-cxl
I get the same error message if I try to specify a disk image, with or without the cdrom image specified.
Are there any recommendations or BKMs for specifying the CD/disk images together with the pxb-cxl bus?
Thanks in advance,
Jim