]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/cxl: factor out calculation of sanitize duration from cmd_santize_overwrite
authorVinayak Holikatti <vinayak.kh@samsung.com>
Wed, 5 Mar 2025 09:24:55 +0000 (09:24 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 May 2025 09:39:14 +0000 (05:39 -0400)
commit484df0704ea592ebd5993c15d63ea38f309ec6e0
tree4160f813ef2e9c61bab3494bb79db8bda0b4459b
parent77a8e9fe0ecb71b260d17f43221df5b18769b359
hw/cxl: factor out calculation of sanitize duration from cmd_santize_overwrite

Move the code of calculation of sanitize duration into function
for usability by other sanitize routines

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: Vinayak Holikatti <vinayak.kh@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20250305092501.191929-5-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