<xi:include href="version-info.xml" xpointer="v255"/></listitem>
</varlistentry>
- <varlistentry>
- <term><option>--cxl=<replaceable>BOOL</replaceable></option></term>
-
- <listitem><para>Controls whether to enable CXL (Compute Express Link) support in the virtual
- machine. CXL is a high-speed interconnect standard that allows CPUs to access memory attached to
- devices such as accelerators and memory expanders, enabling flexible memory pooling and expansion
- beyond what is physically installed on the motherboard. Only supported on x86_64 and aarch64
- architectures.</para>
-
- <xi:include href="version-info.xml" xpointer="v261"/></listitem>
- </varlistentry>
-
<varlistentry>
<term><option>--vsock=<replaceable>BOOL</replaceable></option></term>
static uint64_t arg_ram_max = 0;
static unsigned arg_ram_slots = 0;
static int arg_kvm = -1;
-static bool arg_cxl = false;
static int arg_vsock = -1;
static unsigned arg_vsock_cid = VMADDR_CID_ANY;
static int arg_tpm = -1;
" Configure guest's RAM size (and max/slots for\n"
" hotplug)\n"
" --kvm=BOOL Enable use of KVM\n"
- " --cxl=BOOL Enable use of CXL\n"
" --vsock=BOOL Override autodetection of VSOCK support\n"
" --vsock-cid=CID Specify the CID to use for the guest's VSOCK support\n"
" --tpm=BOOL Enable use of a virtual TPM\n"
ARG_CPUS,
ARG_RAM,
ARG_KVM,
- ARG_CXL,
ARG_VSOCK,
ARG_VSOCK_CID,
ARG_TPM,
{ "ram", required_argument, NULL, ARG_RAM },
{ "qemu-mem", required_argument, NULL, ARG_RAM }, /* Compat alias */
{ "kvm", required_argument, NULL, ARG_KVM },
- { "cxl", required_argument, NULL, ARG_CXL },
{ "qemu-kvm", required_argument, NULL, ARG_KVM }, /* Compat alias */
{ "vsock", required_argument, NULL, ARG_VSOCK },
{ "qemu-vsock", required_argument, NULL, ARG_VSOCK }, /* Compat alias */
return r;
break;
- case ARG_CXL:
- r = parse_boolean_argument("--cxl=", optarg, &arg_cxl);
- if (r < 0)
- return r;
- if (arg_cxl && !ARCHITECTURE_SUPPORTS_CXL)
- return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
- "CXL not supported on %s.", architecture_to_string(native_architecture()));
- break;
-
case ARG_VSOCK:
r = parse_tristate_argument_with_auto("--vsock=", optarg, &arg_vsock);
if (r < 0)
return r;
}
- if (arg_cxl) {
+ if (ARCHITECTURE_SUPPORTS_CXL) {
r = qemu_config_key(config_file, "cxl", "on");
if (r < 0)
return r;