> A bit unrelated to CONFIG_SYSFS, but rather for rare use-cases in general. > What will happen in the following scenario: > > * The system has crc32c HW acceleration > * KSM chooses crc32c > * KSM runs with crc32c > * user removes crc32c HW acceleration module > > If I understand correctly, we'll then fall back to pure SW crc32c > calculations, right? Yes, we fallback to the SW crc32c, which is slower compared to hw optimized, but we won't change hash function once it is set. I do not think it makes sense to add any extra logic into ksm for that, even after every page is unmerged and ksm thread is stopped. Pavel