vhost: add device op when notification to guest is sent
authorEelco Chaudron <echaudro@redhat.com>
Wed, 28 Aug 2019 14:49:39 +0000 (10:49 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit039253166a57ee660dd2fbe92ca77fa65154751c
treed801fe0c059472ae09d50c8005ac3b9b22c662a8
parent52b5a707e6ca37e42997df592d1fd8f64438c053
vhost: add device op when notification to guest is sent

This patch adds an operation callback which gets called every time
the library is waking up the guest trough an eventfd_write() call.

This can be used by 3rd party application, like OVS, to track the
number of times interrupts where generated. This might be of
interest to find out system-call were called in the fast path.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/vhost.h