Il 19/02/2013 22:22, Michael R. Hines ha scritto: >> Yes it is basically the same :). >> you will need the QEMUFileRDMA to store the rdma context (look at >> QEMUFileSocket for example) and other specific rdma parameters. >> you will the rdma_file_ops (QEMUFileOps) to implement sending guest >> pages directly and pinning the buffer that contain the device state. >> you won't need to change qemu_put_buffer for the device state but >> implement a rdma_put_buffer ops that will pin the buffer and send it. >> As for the guest memory pages you have two options: >> update qemu_put_buffer/get_buffer >> add new QEMUFileOps just for rdma and call it instead of >> qemu_put_buffer for guest pages. > > Understood.... I have some code reading to do with these pointers, then. > Will have to teach myself everything you just said =)
Look at my migration-thread-20130115 branch (git://github.com/bonzini/qemu.git). It's much simpler than the current code, and should be easier to understand and extend. Paolo