> > So if I want to use the code from nbd.c, I need to write a specialized > > BlockDriver for the vma format (to pass that to nbd_export_new())? > > Yes. But I believe that would be a good thing to do anyway. For one thing, > it > gives you "automatic" coverage via qemu-iotests.
But the only thing I can do with vma is sequential writes with 64K block size. So using qemu-iotests will not work anyways. I thought I can simply impl. a callback which gets called instead of using a BlockDriver?