Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/testing/cxl: Require cache invalidation bypass

The typical environment where cxl_test is run, QEMU, does not support
cpu_cache_invalidate_memregion(). Add the 'test' bypass symbols to the
configuration check.

Reported-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/167026948179.3527561.4535373655515827457.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

+2
+2
tools/testing/cxl/config_check.c
··· 10 10 BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS)); 11 11 BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI)); 12 12 BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM)); 13 + BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)); 14 + BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST)); 13 15 }