hw/cxl: Add support for device sanitation
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 23 Oct 2023 16:08:02 +0000 (17:08 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (03:39 -0500)
commit25a52959f99d6860a186175bda898e3bdb605f91
treeef115cf4b8019c2d451ce098a5f7621f5ff84302
parent43efb0bfad2b81b32fc19da442cbea2835cf38d4
hw/cxl: Add support for device sanitation

Make use of the background operations through the sanitize command, per CXL
3.0 specs. Traditionally run times can be rather long, depending on the
size of the media.

Estimate times based on:
 https://pmem.io/documents/NVDIMM_DSM_Interface-V1.8.pdf

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20231023160806.13206-14-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-mailbox-utils.c
hw/mem/cxl_type3.c
include/hw/cxl/cxl_device.h