hw/nvme: save reftag when generating pi
commit0ca5c3ccac72ce58a11f97b74f304934df72e90a
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 17 Jun 2021 19:06:50 +0000 (17 21:06 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (29 07:16 +0200)
tree2adc1f020a269b6657630539170e41eb013aa609
parentd7d1474fd85d6c3fce46fa2edd051a6ff3f17cd1
hw/nvme: save reftag when generating pi

Prepare nvme_dif_pract_generate_dif() and nvme_dif_check() to be
callable in smaller increments by making the reftag a pointer parameter
updated by the function.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
hw/nvme/ctrl.c
hw/nvme/dif.c
hw/nvme/nvme.h