numam-spdk/lib/vhost
Daniel Verkamp 130307862b vhost/nvme: fix doorbell buffer size calculation
The existing code was using sizeof() on a calculation that already
returned the right size, so this would originally just memset() 4 bytes
instead of the whole region.

The spec requires the doorbell buffer to be exactly one physical memory
page, and our controller emulation chooses MPS so that only 4096-byte
pages are supported, so just zero out the page and drop the calculation
entirely.

Change-Id: I71db1bebf0a4d5dbe55fd411786e19a8d6802c20
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/408730
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-04-25 02:38:30 +00:00
..
rte_vhost vhost/nvme: remove cmd and cqe magic numbers 2018-04-25 02:38:30 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00
vhost_internal.h vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00
vhost_nvme.c vhost/nvme: fix doorbell buffer size calculation 2018-04-25 02:38:30 +00:00
vhost_rpc.c rpc/vhost_nvme: add rpc support for vhost-nvme target 2018-04-20 15:24:50 -04:00
vhost_scsi.c vhost/scsi: handle spdk_vhost_gpa_to_vva() failure 2018-04-24 16:02:58 +00:00
vhost.c vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00