mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
7d65874ba0
commit
89b5cfcc31
2 changed files with 86 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue