1

I am trying to setup an RDMA channel between two instances of KVM. I want to send a simple string between the two instances using RDMA (Infiniband) Verbs API from inside the hypervisor. I don't want to do anything on the user-space - purely kernel space should be involved.

I have come across sample code for the Verbs API but that is only relevant to the user-space. Can someone please point me to some sample code for this?

(Ideally I would want to do this from inside the page fault handler, but the sample code will probably not be specific to where it is being inserted in the hypervisor so this is just an extra bit of information.)

gohar94
  • 138
  • 1
  • 3
  • 11

1 Answers1

0

There are modules in the kernel that use RDMA under drivers/infiniband/ulp, although since they are production code and not a sample they might be more complex than what you want.

haggai_e
  • 4,689
  • 1
  • 24
  • 37