linux/drivers/vhost
Jason Wang ddd89d0a05 vhost_vdpa: support doorbell mapping via mmap
Currently the doorbell is relayed via eventfd which may have
significant overhead because of the cost of vmexits or syscall. This
patch introduces mmap() based doorbell mapping which can eliminate the
overhead caused by vmexit or syscall.

To ease the userspace modeling of the doorbell layout (usually
virtio-pci), this patch starts from a doorbell per page
model. Vhost-vdpa only support the hardware doorbell that sit at the
boundary of a page and does not share the page with other registers.

Doorbell of each virtqueue must be mapped separately, pgoff is the
index of the virtqueue. This allows userspace to map a subset of the
doorbell which may be useful for the implementation of software
assisted virtqueue (control vq) in the future.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200529080303.15449-5-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-06-04 15:36:51 -04:00
..
iotlb.c vhost: factor out IOTLB 2020-04-01 12:06:26 -04:00
Kconfig vhost: revert "vhost: disable for OABI" 2020-06-02 02:45:13 -04:00
Makefile vhost: introduce vDPA-based backend 2020-04-02 10:41:40 -04:00
net.c vhost: allow device that does not depend on vhost worker 2020-06-04 15:36:51 -04:00
scsi.c vhost: allow device that does not depend on vhost worker 2020-06-04 15:36:51 -04:00
test.c virtio/test: fix up after IOTLB changes 2020-04-16 18:31:08 -04:00
test.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdpa.c vhost_vdpa: support doorbell mapping via mmap 2020-06-04 15:36:51 -04:00
vhost.c vhost: use mmgrab() instead of mmget() for non worker device 2020-06-04 15:36:51 -04:00
vhost.h vhost: allow device that does not depend on vhost worker 2020-06-04 15:36:51 -04:00
vringh.c virtio: force spec specified alignment on types 2020-06-02 02:45:13 -04:00
vsock.c vhost: allow device that does not depend on vhost worker 2020-06-04 15:36:51 -04:00