hw/pci-bridge/cxl-upstream: Add a CDAT table access DOE
commit882877fc359d24e1563065c5c3887096317ca1ae
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 14 Oct 2022 15:10:45 +0000 (14 16:10 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Nov 2022 18:12:19 +0000 (7 13:12 -0500)
treecba48a286dfddb04603fa3e0d4e6beabd13b79b5
parentf5ee7413d5928930604f73675fe89f21fbabc8b3
hw/pci-bridge/cxl-upstream: Add a CDAT table access DOE

This Data Object Exchange Mailbox allows software to query the
latency and bandwidth between ports on the switch. For now
only provide information on routes between the upstream port and
each downstream port (not p2p).

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
--
Changes since v8: Mostly to match the type 3 equivalent
 - Move enum out of function and give it a more descriptive namespace.
Message-Id: <20221014151045.24781-6-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/cxl_upstream.c
include/hw/cxl/cxl_cdat.h