summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme.h
diff options
context:
space:
mode:
authorKlaus Jensen2020-07-20 12:44:01 +0200
committerKlaus Jensen2020-09-02 08:48:50 +0200
commit3143df3d568d45740473ef8d0cb73ae41eafad3f (patch)
tree6f3fc35bc6ecf36cd47c31aeb627cf0a498870a4 /hw/block/nvme.h
parenthw/block/nvme: be consistent about zeros vs zeroes (diff)
downloadqemu-3143df3d568d45740473ef8d0cb73ae41eafad3f.tar.gz
qemu-3143df3d568d45740473ef8d0cb73ae41eafad3f.tar.xz
qemu-3143df3d568d45740473ef8d0cb73ae41eafad3f.zip
hw/block/nvme: add ns/cmd references in NvmeRequest
Instead of passing around the NvmeNamespace and the NvmeCmd, add them as members in the NvmeRequest structure. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Diffstat (limited to 'hw/block/nvme.h')
-rw-r--r--hw/block/nvme.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/block/nvme.h b/hw/block/nvme.h
index 137cd8c2bf..52ba794f2e 100644
--- a/hw/block/nvme.h
+++ b/hw/block/nvme.h
@@ -21,9 +21,11 @@ typedef struct NvmeAsyncEvent {
typedef struct NvmeRequest {
struct NvmeSQueue *sq;
+ struct NvmeNamespace *ns;
BlockAIOCB *aiocb;
uint16_t status;
NvmeCqe cqe;
+ NvmeCmd cmd;
BlockAcctCookie acct;
QEMUSGList qsg;
QEMUIOVector iov;