hw/block/nvme: refactor nvme_addr_read
commitb4529c5c3af69189b65b22906a35b09a7fe17960
authorKlaus Jensen <k.jensen@samsung.com>
Tue, 9 Jun 2020 19:03:17 +0000 (9 21:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 17 Jun 2020 12:53:40 +0000 (17 14:53 +0200)
tree6ecda42aebaef4635592ff20ebf7732b46d92fe8
parent3e829fd438033cdf8646ec22bcc869555b100212
hw/block/nvme: refactor nvme_addr_read

Pull the controller memory buffer check to its own function. The check
will be used on its own in later patches.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Message-Id: <20200609190333.59390-7-its@irrelevant.dk>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c