diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2024-07-05 13:06:43 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-07-21 14:31:59 -0400 |
commit | 89b5cfcc31e655a40919698a7f95a9208d6f12a3 (patch) | |
tree | c2eb3b63291b76ca86638d182906531807720372 /include/hw/cxl | |
parent | 7d65874ba0ea8cdb2a5ac51c397d721d7d49d828 (diff) | |
download | qemu-89b5cfcc31e655a40919698a7f95a9208d6f12a3.zip qemu-89b5cfcc31e655a40919698a7f95a9208d6f12a3.tar.gz qemu-89b5cfcc31e655a40919698a7f95a9208d6f12a3.tar.bz2 |
hw/cxl: Add get scan media results cmd support
Iterate over the list keeping the output payload size into account,
returning the results from a previous scan media operation. The
scan media operation does not fail prematurely due to device being
out of storage, so this implementation does not deal with the
retry/restart functionality.
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://lore.kernel.org/r/20230908073152.4386-5-dave@stgolabs.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240705120643.959422-5-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/cxl')
-rw-r--r-- | include/hw/cxl/cxl_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/cxl/cxl_device.h b/include/hw/cxl/cxl_device.h index 0509d96..cc98553 100644 --- a/include/hw/cxl/cxl_device.h +++ b/include/hw/cxl/cxl_device.h @@ -499,6 +499,7 @@ struct CXLType3Dev { /* Poison Injection - backup */ CXLPoisonList poison_list_bkp; CXLPoisonList scan_media_results; + bool scan_media_hasrun; struct dynamic_capacity { HostMemoryBackend *host_dc; |