If you’re using LLVM then the in vm instructions should work.
Meanwhile, it’d be more usual to create a sparse zvol in this situation.