OSDN Git Service

hw/cxl: Introduce cxl_device_get_timestamp() utility function
authorIra Weiny <ira.weiny@intel.com>
Sun, 23 Apr 2023 16:20:09 +0000 (17:20 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit547a652fd1e10c2b6a2b9b91084e4c1cea8665a2
tree4986d29ce7fd11630c34381911a9f8508ed308b4
parentb6aab4597173f5d112a8aa0f3ded502cfb7042a9
hw/cxl: Introduce cxl_device_get_timestamp() utility function

There are new users of this functionality coming shortly so factor
it out from the GET_TIMESTAMP mailbox command handling.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230423162013.4535-3-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-device-utils.c
hw/cxl/cxl-mailbox-utils.c
include/hw/cxl/cxl_device.h