nvdimm: check -object memory-backend-file, readonly=on option
commitdbd730e8598701e11b2fb7aee1704f4ec1787e86
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 4 Jan 2021 17:13:20 +0000 (4 17:13 +0000)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 1 Feb 2021 22:07:34 +0000 (1 17:07 -0500)
tree0a940c61f53c86ed01a859edcbe6652f28898cf5
parent86635aa4e9d627d5142b81c57a33dd1f36627d07
nvdimm: check -object memory-backend-file, readonly=on option

Check that -device nvdimm,unarmed=on is used when -object
memory-backend-file,readonly=on and document that -device
nvdimm,unarmed=on|off controls whether the NVDIMM appears read-only to
the guest.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20210104171320.575838-4-stefanha@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
docs/nvdimm.txt
hw/mem/nvdimm.c