On Wed, 30 Nov 2022, Dave Jiang wrote:
Bypass cpu_cache_invalidate_memregion() and checks when doing testing using CONFIG_NVDIMM_SECURITY_TEST flag. The bypass allows testing on QEMU where cpu_cache_has_invalidate_memregion() fails. Usage of cpu_cache_invalidate_memregion() is not needed for cxl_test security testing.
We'll also want something similar for the non-pmem specific security bits by extending these wrappers with CONFIG_CXL_SECURITY_TEST. I think the current naming is very generic but the functionality is too tied to pmem. So I would either rename these to 'cxl_pmem...' or make them more generic by placing them in cxlmem.h and taking the dev pointer directly as well as the iores. Thanks, Davidlohr