summaryrefslogtreecommitdiffstats
path: root/include/hw/cxl
diff options
context:
space:
mode:
authorBen Widawsky2022-04-29 16:40:46 +0200
committerMichael S. Tsirkin2022-05-13 12:13:36 +0200
commit3ebe676a3463b886cfc112b3eff58e4991051b0d (patch)
tree8cd9246588f531c918e344271058196021957fbd /include/hw/cxl
parenthw/cxl/device: Plumb real Label Storage Area (LSA) sizing (diff)
downloadqemu-3ebe676a3463b886cfc112b3eff58e4991051b0d.tar.gz
qemu-3ebe676a3463b886cfc112b3eff58e4991051b0d.tar.xz
qemu-3ebe676a3463b886cfc112b3eff58e4991051b0d.zip
hw/cxl/device: Implement get/set Label Storage Area (LSA)
Implement get and set handlers for the Label Storage Area used to hold data describing persistent memory configuration so that it can be ensured it is seen in the same configuration after reboot. Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20220429144110.25167-22-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/cxl')
-rw-r--r--include/hw/cxl/cxl_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/cxl/cxl_device.h b/include/hw/cxl/cxl_device.h
index ea2571a69b..4285fbda08 100644
--- a/include/hw/cxl/cxl_device.h
+++ b/include/hw/cxl/cxl_device.h
@@ -252,6 +252,11 @@ struct CXLType3Class {
/* public */
uint64_t (*get_lsa_size)(CXLType3Dev *ct3d);
+
+ uint64_t (*get_lsa)(CXLType3Dev *ct3d, void *buf, uint64_t size,
+ uint64_t offset);
+ void (*set_lsa)(CXLType3Dev *ct3d, const void *buf, uint64_t size,
+ uint64_t offset);
};
#endif