> The solution seems OK in improving the performance, I just wondering if it > is possible to put it in lower level component, not qemu? It will make qemu > block layer more complicate,
Not that I am aware off - it just add a few lines to block.c, and only uses existing functionality already used inside qemu. > and since it can ignore the format so it is more > likely a storage dedicated function, so could u check if it can be offloaded > from qemu? The whole trick is to do it inside qemu, to be independent of storage type.