OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [Qemu-devel] [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

On 12/14/2017 11:06 PM, Stefan Hajnoczi wrote:
On Wed, Dec 13, 2017 at 10:59:10PM +0200, Michael S. Tsirkin wrote:

    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.

    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,
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.

Not really. A doorbell will cause an interrupt to be injected to the master device driver, which is not ready to work at that time. The slave driver isn't expected to use the doorbell until the master is ready by sending the last message VHOST_USER_SET_VHOST_PCI to link UP the slave device.

So I think passing the fd msg to guest doesn't have a value in terms of functionality.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]