From 9c769e04465118601dea96b02c27887bd46cce25 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Fri, 23 Sep 2022 17:18:35 +0100 Subject: mem/cxl-type3: Add sn option to provide serial number for PCI ecap The Device Serial Number Extended Capability PCI r6.0 sec 7.9.3 provides a standard way to provide a device serial number as an IEEE defined 64-bit extended unique identifier EUI-64. CXL 2.0 section 8.1.12.2 Memory Device PCIe Capabilities and Extended Capabilities requires this to be used to uniquely identify CXL memory devices. Signed-off-by: Jonathan Cameron Message-Id: <20220923161835.9805-1-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Ben Widawsky --- include/hw/cxl/cxl_device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/cxl') diff --git a/include/hw/cxl/cxl_device.h b/include/hw/cxl/cxl_device.h index 1e141b6621..e4d221cdb3 100644 --- a/include/hw/cxl/cxl_device.h +++ b/include/hw/cxl/cxl_device.h @@ -237,6 +237,7 @@ struct CXLType3Dev { /* Properties */ HostMemoryBackend *hostmem; HostMemoryBackend *lsa; + uint64_t sn; /* State */ AddressSpace hostmem_as; -- cgit v1.2.3-55-g7522