nvme: Add support for Controller Memory Buffers
authorStephen Bates <sbates@raithlin.com>
Tue, 16 May 2017 19:10:59 +0000 (13:10 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 26 May 2017 14:48:21 +0000 (16:48 +0200)
commita896f7f26a1a0417322463439825073c1a917e41
tree8a60ac3ded6cc5b5c2b78a4b76aaa699d9db6a52
parentcf1cd117e2b38f1b5d28e435b4b527a32055e133
nvme: Add support for Controller Memory Buffers

Implement NVMe Controller Memory Buffers (CMBs) which were added in
version 1.2 of the NVMe Specification. This patch adds an optional
argument (cmb_size_mb) which indicates the size of the CMB (in
MB). Currently only the Submission Queue Support (SQS) is enabled
which aligns with the current Linux driver for NVMe.

Signed-off-by: Stephen Bates <sbates@raithlin.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c
hw/block/nvme.h