[PATCH v2 08/13] lib: add support for device coherent type in test_hmm