]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/mem/cxl-type3: Add CXL CDAT Data Object Exchange
authorHuai-Cheng Kuo <hchkuo@avery-design.com.tw>
Fri, 14 Oct 2022 15:10:44 +0000 (16:10 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Nov 2022 18:12:19 +0000 (13:12 -0500)
commitf5ee7413d5928930604f73675fe89f21fbabc8b3
treea229d4a597fab532155b5b89c5b064f0c552c578
parentaba578bdace5303a441f8a37aad781b5cb06f38c
hw/mem/cxl-type3: Add CXL CDAT Data Object Exchange

The CDAT can be specified in two ways. One is to add ",cdat=<filename>"
in "-device cxl-type3"'s command option. The file is required to provide
the whole CDAT table in binary mode. The other is to use the default
that provides some 'reasonable' numbers based on type of memory and
size.

The DOE capability supporting CDAT is added to hw/mem/cxl_type3.c with
capability offset 0x190. The config read/write to this capability range
can be generated in the OS to request the CDAT data.

Signed-off-by: Huai-Cheng Kuo <hchkuo@avery-design.com.tw>
Signed-off-by: Chris Browy <cbrowy@avery-design.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20221014151045.24781-5-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/cxl_type3.c