mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/cxl/device: Timestamp implementation (8.2.9.3)
Errata F4 to CXL 2.0 clarified the meaning of the timer as the sum of the value set with the timestamp set command and the number of nano seconds since it was last set. Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220429144110.25167-10-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
57c02b355f
commit
557a79c83e
2 changed files with 48 additions and 0 deletions
|
@ -111,6 +111,12 @@ typedef struct cxl_device_state {
|
|||
size_t cel_size;
|
||||
};
|
||||
|
||||
struct {
|
||||
bool set;
|
||||
uint64_t last_set;
|
||||
uint64_t host_set;
|
||||
} timestamp;
|
||||
|
||||
/* memory region for persistent memory, HDM */
|
||||
uint64_t pmem_size;
|
||||
} CXLDeviceState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue