hw/block/nvme: verify validity of prp lists in the cmb
authorKlaus Jensen <k.jensen@samsung.com>
Sun, 23 Feb 2020 15:12:12 +0000 (16:12 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 2 Sep 2020 06:48:50 +0000 (08:48 +0200)
commit076c816f4e62824714427a9d193f31ccb693d404
treede275ba99d6ff70bbfa7abcd849f7065706563b0
parent6d1257f973e2be5c98650147f6cc89a5a05699e3
hw/block/nvme: verify validity of prp lists in the cmb

Before this patch the device already supported PRP lists in the CMB, but
it did not check for the validity of it nor announced the support in the
Identify Controller data structure LISTS field.

If some of the PRPs in a PRP list are in the CMB, then ALL entries must
be there. This patch makes sure that requirement is verified as well as
properly announcing support for PRP lists in the CMB.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
hw/block/nvme.c