aboutsummaryrefslogtreecommitdiff
path: root/hw/block/nvme.h
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2020-07-06 08:13:01 +0200
committerKlaus Jensen <k.jensen@samsung.com>2020-09-02 08:48:50 +0200
commit9e7ecdca26c34ffc5bda3d1d49e90bbb6b4f4422 (patch)
tree3c1abcccfdee565fb0bed6f9f36f16b9a2fb06df /hw/block/nvme.h
parent38a58e7ce38cf73f25e5242f5f1abcfcbd250a6d (diff)
downloadqemu-9e7ecdca26c34ffc5bda3d1d49e90bbb6b4f4422.zip
qemu-9e7ecdca26c34ffc5bda3d1d49e90bbb6b4f4422.tar.gz
qemu-9e7ecdca26c34ffc5bda3d1d49e90bbb6b4f4422.tar.bz2
hw/block/nvme: enforce valid queue creation sequence
Support returning Command Sequence Error if Set Features on Number of Queues is called after queues have been created. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Message-Id: <20200706061303.246057-17-its@irrelevant.dk>
Diffstat (limited to 'hw/block/nvme.h')
-rw-r--r--hw/block/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme.h b/hw/block/nvme.h
index b93067c..0b6a8ae 100644
--- a/hw/block/nvme.h
+++ b/hw/block/nvme.h
@@ -95,6 +95,7 @@ typedef struct NvmeCtrl {
BlockConf conf;
NvmeParams params;
+ bool qs_created;
uint32_t page_size;
uint16_t page_bits;
uint16_t max_prp_ents;