Skip to contentSkip to conversation

hw/cxl: Misc small fixes

PATCH Superseded Jonathan Cameron via 7 participants 18 messages Sep 18, 2023 – Sep 19, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover hw/cxl: Misc small fixes

Misc set of trivial fixes. No conflicts with other sets outstanding so can go with main CXL patches or perhaps via the trivial tree.

Dmitry Frolov (1):
hw/cxl: Fix out of bound array access

Jonathan Cameron (2):
hw/mem/cxl_type3: Add missing copyright and license notice docs/cxl: Cleanout some more aarch64 examples.

 docs/system/devices/cxl.rst | 4 ++--
 include/hw/cxl/cxl.h        | 2 +-
 hw/mem/cxl_type3.c          | 9 +++++++++
 3 files changed, 12 insertions(+), 3 deletions(-)
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/3 hw/cxl: Fix out of bound array access

From: Dmitry Frolov <[email protected]>

According to cxl_interleave_ways_enc(), fw->num_targets is allowed to be up to 16. This also corresponds to CXL r3.0 spec. So, the fw->target_hbs[] array is iterated from 0 to 15. But it is staticaly declared of length 8. Thus, out of bound array access may occur.

Fixes c28db9e000 ("hw/pci-bridge: Make PCIe and CXL PXB Devices inherit from TYPE_PXB_DEV")
---
 include/hw/cxl/cxl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/cxl/cxl.h +1 -1
index 56c9e7676e..4944725849 100644
@@ -29,7 +29,7 @@ typedef struct PXBCXLDev PXBCXLDev;
 typedef struct CXLFixedWindow {
     uint64_t size;
     char **targets;
-    PXBCXLDev *target_hbs[8];
+    PXBCXLDev *target_hbs[16];
     uint8_t num_targets;
     uint8_t enc_int_ways;
     uint8_t enc_int_gran;
Signature · 1 line
2.39.2
#2 lore raw

Re: [PATCH 1/3] hw/cxl: Fix out of bound array access

Quoted 5 lines · Jonathan Cameron

From: Dmitry Frolov <[email protected]>

According to cxl_interleave_ways_enc(), fw->num_targets is allowed to be up to 16. This also corresponds to CXL r3.0 spec. So, the fw->target_hbs[] array is iterated from 0 to 15. But it is staticaly declared of length 8.

s/staticaly/statically/

Fan

Quoted 28 lines

Thus, out of bound array access may occur.

---
 include/hw/cxl/cxl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/cxl/cxl.h +1 -1
index 56c9e7676e..4944725849 100644
@@ -29,7 +29,7 @@ typedef struct PXBCXLDev PXBCXLDev;
 typedef struct CXLFixedWindow {
     uint64_t size;
     char **targets;
-    PXBCXLDev *target_hbs[8];
+    PXBCXLDev *target_hbs[16];
     uint8_t num_targets;
     uint8_t enc_int_ways;
     uint8_t enc_int_gran;
Signature · 1 line
2.39.2
#3 lore raw

PATCH 2/3 hw/mem/cxl_type3: Add missing copyright and license notice

In reply to Jonathan Cameron via

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +9 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"
Signature · 1 line
2.39.2
Reviewed-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 7 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

---

Quoted 23 lines
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +9 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"
Signature · 1 line
2.39.2
#5 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

In reply to Jonathan Cameron via
Quoted 4 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

Quoted 13 lines
---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +2 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device

hw/mem/cxl_type3.c line 12

Quoted 10 lines
hw/mem/cxl_type3.c +7 -0
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"

-- PMM

#6 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 7 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 4 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Quoted 6 lines

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

I've +CC'd the kernel CXL maintainers from Intel a few of whom have also contributed some of the QEMU CXL code. Hopefully someone can ack.

Quoted 26 lines
Quoted 13 lines
---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +2 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device

hw/mem/cxl_type3.c line 12

Quoted 10 lines
hw/mem/cxl_type3.c +7 -0
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"  

-- PMM

#7 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 13 lines · Jonathan Cameron
Quoted 10 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 4 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

Quoted 7 lines
Quoted 3 lines

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

I've +CC'd the kernel CXL maintainers from Intel a few of whom have also contributed some of the QEMU CXL code. Hopefully someone can ack.

I see that nvdimm.c from Intel is under LGPL 2.1. What is the typical license this should be applied for QEMU?

Quoted 28 lines
Quoted 27 lines
Quoted 14 lines
---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +2 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device

hw/mem/cxl_type3.c line 12

Quoted 10 lines
hw/mem/cxl_type3.c +7 -0
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"  

-- PMM

#8 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 21 lines · Dave Jiang
Quoted 17 lines · Jonathan Cameron
Quoted 13 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 4 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

Quoted 5 lines
Quoted 3 lines

I've +CC'd the kernel CXL maintainers from Intel a few of whom have also contributed some of the QEMU CXL code. Hopefully someone can ack.

I see that nvdimm.c from Intel is under LGPL 2.1. What is the typical license this should be applied for QEMU?

The project has a mix of licenses, for mostly historical reasons. The overall license is thus GPLv2 (as the most-restrictive of the set). Our preference (as noted in the top level LICENSE file) for new code is for GPL-v2-or-later; we can take other GPL-2-compatible licenses (preferably GPL-v2-or-later compatible) if there's a good rationale from the submitter. (Historically, one reason for the GPL-v2-only code has been "this came from the Linux kernel and so it's GPL-2-only"; "we copied a lot of this code from some other file in QEMU and that has license X" is
the other one.)

thanks
-- PMM

#9 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 28 lines · On Mon, 18 Sep 2023 18:38:10 +0100 Peter Maydell <[email protected]>…
Quoted 21 lines · Dave Jiang
Quoted 17 lines · Jonathan Cameron
Quoted 13 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 4 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

Quoted 5 lines
Quoted 3 lines

I've +CC'd the kernel CXL maintainers from Intel a few of whom have also contributed some of the QEMU CXL code. Hopefully someone can ack.

I see that nvdimm.c from Intel is under LGPL 2.1. What is the typical license this should be applied for QEMU?

Quoted 10 lines

The project has a mix of licenses, for mostly historical reasons. The overall license is thus GPLv2 (as the most-restrictive of the set). Our preference (as noted in the top level LICENSE file) for new code is for GPL-v2-or-later; we can take other GPL-2-compatible licenses (preferably GPL-v2-or-later compatible) if there's a good rationale from the submitter. (Historically, one reason for the GPL-v2-only code has been "this came from the Linux kernel and so it's GPL-2-only"; "we copied a lot of this code from some other file in QEMU and that has license X" is
the other one.)

As this one is now 'historical' code I'll stick to the v2 only but make sure anything new goes in with v2 or later unless there is a good reason for another choice.

Thanks for the info,

Jonathan

Quoted 4 lines

thanks
-- PMM

Acked-by
#10 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

In reply to Jonathan Cameron via
Quoted 13 lines · Jonathan Cameron
Quoted 10 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 4 lines · Jonathan Cameron

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

Quoted 10 lines
Quoted 3 lines

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

I've +CC'd the kernel CXL maintainers from Intel a few of whom have also contributed some of the QEMU CXL code. Hopefully someone can ack.

Quoted 2 lines
Quoted 2 lines
Quoted 25 lines
Quoted 24 lines
Quoted 11 lines
---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +2 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device

hw/mem/cxl_type3.c line 12

Quoted 10 lines
hw/mem/cxl_type3.c +7 -0
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"  

-- PMM

Acked-by
#11 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

In reply to Jonathan Cameron via
Quoted 6 lines · Jonathan Cameron
Quoted 3 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 1 line · Jonathan Cameron
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

While we are at it; what about .../hw/mem/cxl_type3_stubs.c?

Quoted 3 lines
Quoted 3 lines

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

I'm curious about this statement. Does the qemu project not want gpl v2 only code? I agree with Jonathan that this is the intention of Ben's initial submission; so from that PoV.

Going forward I'd like to better understand the qemu communities view.

Thanks,
Ira

Quoted 34 lines
Quoted 1 line

I've +CC'd the kernel CXL maintainers from Intel a few of whom have also contributed some of the QEMU CXL code. Hopefully someone can ack.

Quoted 27 lines
Quoted 14 lines
---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +2 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device

hw/mem/cxl_type3.c line 12

Quoted 10 lines
hw/mem/cxl_type3.c +7 -0
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See the
+ * COPYING file in the top-level directory.
+ */
+
 #include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"  

-- PMM

#12 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 14 lines · Ira Weiny
Quoted 6 lines · Jonathan Cameron
Quoted 3 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 1 line · Jonathan Cameron
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

Quoted 8 lines

While we are at it; what about .../hw/mem/cxl_type3_stubs.c?

Quoted 3 lines
Quoted 3 lines

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

I'm curious about this statement. Does the qemu project not want gpl v2 only code?

Correct, this is explicitly stated in the LICENSE file:

[quote]
As of July 2013, contributions under version 2 of the GNU General Public License (and no later version) are only accepted for the following files or directories: bsd-user/, linux-user/, hw/vfio/, hw/xen/xen_pt*. [/quote]

Quoted 2 lines

I agree with Jonathan that this is the intention of Ben's
initial submission; so from that PoV.

Ideally we would get all QEMU CXL contributors to agree to re-license to the GPL-2.0-or-later, unless the code has been copied from another project which was GPL-2.0-only thus forcing our code.

Quoted 4 lines

Going forward I'd like to better understand the qemu communities view.

Please follow the LICENSE file which is explicit about QEMU's views per the quoted text above.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#13 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

Quoted 40 lines · On Tue, 19 Sep 2023 09:47:06 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 14 lines · Ira Weiny
Quoted 6 lines · Jonathan Cameron
Quoted 3 lines · On Mon, 18 Sep 2023 17:31:38 +0100 Peter Maydell <[email protected]>…
Quoted 1 line · Jonathan Cameron
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

Sounds plausible -- is there an Intel person who could give us an acked-by for this?

Quoted 8 lines

While we are at it; what about .../hw/mem/cxl_type3_stubs.c?

Quoted 3 lines
Quoted 3 lines

(Ideally we wouldn't have let more gpl-2-only code into the codebase without a rationale...)

I'm curious about this statement. Does the qemu project not want gpl v2 only code?

Correct, this is explicitly stated in the LICENSE file:

[quote]
As of July 2013, contributions under version 2 of the GNU General Public License (and no later version) are only accepted for the following files or directories: bsd-user/, linux-user/, hw/vfio/, hw/xen/xen_pt*. [/quote]

Quoted 2 lines

I agree with Jonathan that this is the intention of Ben's
initial submission; so from that PoV.

Ideally we would get all QEMU CXL contributors to agree to re-license to the GPL-2.0-or-later, unless the code has been copied from another project which was GPL-2.0-only thus forcing our code.

Quoted 1 line
Quoted 6 lines
Quoted 3 lines

Going forward I'd like to better understand the qemu communities view.

Please follow the LICENSE file which is explicit about QEMU's views per the quoted text above.

I'd be fine with relaxing these, but there are quite a few contributors so it will be a little difficult to establish.

Given, for that to be useful we need to do all the CXL files, I'll post a v2 of this series setting this to GPL-v2-only and we can see if we can address relicencing at a later date.

Quoted 3 lines

With regards,
Daniel

#14 lore raw

Re: [PATCH 2/3] hw/mem/cxl_type3: Add missing copyright and license notice

In reply to Jonathan Cameron via
Quoted 21 lines · Jonathan Cameron via

This has been missing from the start. Assume it should match with cxl/cxl-component-utils.c as both were part of early postings from Ben.

---
 hw/mem/cxl_type3.c | 9 +++++++++
 1 file changed, 9 insertions(+)
hw/mem/cxl_type3.c +6 -0
index c5855d4e7d..ad3f0f6a9d 100644
@@ -1,3 +1,12 @@
+/*
+ * CXL Type 3 (memory expander) device
+ *
+ * Copyright(C) 2020 Intel Corporation.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
Quoted 4 lines

the
+ * COPYING file in the top-level directory.
+ */

SPDX-License-Identifier: GPL-v2-only

while you're at it (plus a +1 on the other concerns in the thread, though I'll let
that play out elsewhere).

Warner

Quoted 9 lines

+
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qemu/error-report.h"
--
2.39.2

#15 lore raw

PATCH 3/3 docs/cxl: Cleanout some more aarch64 examples.

In reply to Jonathan Cameron via

These crossed with the previous fix to get rid of examples using aarch64 for which support is not yet upstream.

---
 docs/system/devices/cxl.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/devices/cxl.rst +2 -2
index b742120657..6ab5f72473 100644
@@ -313,7 +313,7 @@ A very simple setup with just one directly attached CXL Type 3 Persistent Memory
 
 A very simple setup with just one directly attached CXL Type 3 Volatile Memory device::
 
-  qemu-system-aarch64 -M virt,gic-version=3,cxl=on -m 4g,maxmem=8G,slots=8 -cpu max \
+  qemu-system-x86_64 -M q35,cxl=on -m 4G,maxmem=8G,slots=8 -smp 4 \
   ...
   -object memory-backend-ram,id=vmem0,share=on,size=256M \
   -device pxb-cxl,bus_nr=12,bus=pcie.0,id=cxl.1 \
@@ -323,7 +323,7 @@ A very simple setup with just one directly attached CXL Type 3 Volatile Memory d
 
 The same volatile setup may optionally include an LSA region::
 
-  qemu-system-aarch64 -M virt,gic-version=3,cxl=on -m 4g,maxmem=8G,slots=8 -cpu max \
+  qemu-system-x86_64 -M q35,cxl=on -m 4G,maxmem=8G,slots=8 -smp 4 \
   ...
   -object memory-backend-ram,id=vmem0,share=on,size=256M \
   -object memory-backend-file,id=cxl-lsa0,share=on,mem-path=/tmp/lsa.raw,size=256M \
Signature · 1 line
2.39.2
Reviewed-by on v1 3/3
#16 lore raw

Re: [PATCH 3/3] docs/cxl: Cleanout some more aarch64 examples.

Quoted 4 lines · Jonathan Cameron

These crossed with the previous fix to get rid of examples using aarch64 for which support is not yet upstream.

Quoted 29 lines
---
 docs/system/devices/cxl.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/system/devices/cxl.rst +2 -2
index b742120657..6ab5f72473 100644
@@ -313,7 +313,7 @@ A very simple setup with just one directly attached CXL Type 3 Persistent Memory
 
 A very simple setup with just one directly attached CXL Type 3 Volatile Memory device::
 
-  qemu-system-aarch64 -M virt,gic-version=3,cxl=on -m 4g,maxmem=8G,slots=8 -cpu max \
+  qemu-system-x86_64 -M q35,cxl=on -m 4G,maxmem=8G,slots=8 -smp 4 \
...
   -object memory-backend-ram,id=vmem0,share=on,size=256M \
   -device pxb-cxl,bus_nr=12,bus=pcie.0,id=cxl.1 \
@@ -323,7 +323,7 @@ A very simple setup with just one directly attached CXL Type 3 Volatile Memory d
 
 The same volatile setup may optionally include an LSA region::
 
-  qemu-system-aarch64 -M virt,gic-version=3,cxl=on -m 4g,maxmem=8G,slots=8 -cpu max \
+  qemu-system-x86_64 -M q35,cxl=on -m 4G,maxmem=8G,slots=8 -smp 4 \
...
   -object memory-backend-ram,id=vmem0,share=on,size=256M \
   -object memory-backend-file,id=cxl-lsa0,share=on,mem-path=/tmp/lsa.raw,size=256M \
Signature · 1 line
2.39.2