I think this driver is at entirely the wrong level.If you want to expose pmem to a guest with flushing assist do itas pmem, and not a block driver.