summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme.h
diff options
context:
space:
mode:
authorNaveen Nagar2020-11-13 06:30:05 +0100
committerKlaus Jensen2021-02-08 21:15:53 +0100
commit7ec9f2eef979e51891d99667e01d6c0e789a52b2 (patch)
tree1dccbd6bd589dede784041c81a4247b3775a57d1 /hw/block/nvme.h
parenthw/block/nvme: disable PMR at boot up (diff)
downloadqemu-7ec9f2eef979e51891d99667e01d6c0e789a52b2.tar.gz
qemu-7ec9f2eef979e51891d99667e01d6c0e789a52b2.tar.xz
qemu-7ec9f2eef979e51891d99667e01d6c0e789a52b2.zip
hw/block/nvme: add PMR RDS/WDS support
Add support for the PMRMSCL and PMRMSCU MMIO registers. This allows adding RDS/WDS support for PMR as well. Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Naveen Nagar <naveen.n1@samsung.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block/nvme.h')
-rw-r--r--hw/block/nvme.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/block/nvme.h b/hw/block/nvme.h
index 1cdb360bc5..b7702e937e 100644
--- a/hw/block/nvme.h
+++ b/hw/block/nvme.h
@@ -151,7 +151,11 @@ typedef struct NvmeCtrl {
uint16_t temperature;
uint8_t smart_critical_warning;
- HostMemoryBackend *pmrdev;
+ struct {
+ HostMemoryBackend *dev;
+ bool cmse;
+ hwaddr cba;
+ } pmr;
uint8_t aer_mask;
NvmeRequest **aer_reqs;