On Wed, Dec 13, 2017 at 10:59:10PM +0200, Michael S. Tsirkin wrote:
* VHOST_USER_SET_VRING_KICK
Set up vring kick doorbell (unless bit 8 is set) before sending
VHOST_USER_SET_VRING_KICK to the guest.
But guest can't use it, now can it?
What guest needs is a mapping to interrupts.
...
* VHOST_USER_SET_VRING_CALL
Set up the vring call doorbell (unless bit 8 is set) before sending
VHOST_USER_SET_VRING_CALL to the guest.
Same here. what guest needs is mapping from io to notifications,
right?
The PCI device should contain a BAR with doorbell registers. I don't
think a fancy mapping is necessary, instead the device spec should
define the BAR layout.
When the guest vhost-user slave receives this message it knows it can
now begin using the doorbell register.