block/nvme: Map doorbells pages write-only
commitf68453237b9c97f7d1948236a359524c45d7e2d8
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 22 Sep 2020 08:38:17 +0000 (22 10:38 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 5 Oct 2020 08:35:52 +0000 (5 09:35 +0100)
treeed1db47dfd9a2c48942ea2eb68b39a2f1dea1b2a
parentb02c01a513a17e03e2245feff19b3dcc8c408859
block/nvme: Map doorbells pages write-only

Per the datasheet sections 3.1.13/3.1.14:
  "The host should not read the doorbell registers."

As we don't need read access, map the doorbells with write-only
permission. We keep a reference to this mapped address in the
BDRVNVMeState structure.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200922083821.578519-3-philmd@redhat.com>
block/nvme.c