aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/slavio_misc.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-08-21 21:53:54 +0200
committerKevin Wolf <kwolf@redhat.com>2020-09-07 12:31:30 +0200
commit38e1f8186fc40054ae12b9b5e21f051c2f59cb9c (patch)
tree49e7a9f9150ef7cb0663b4b9f391ee0458c9d663 /hw/misc/slavio_misc.c
parent2ed846930df76bb5c708cbbfbae714607c4d7e12 (diff)
downloadqemu-38e1f8186fc40054ae12b9b5e21f051c2f59cb9c.zip
qemu-38e1f8186fc40054ae12b9b5e21f051c2f59cb9c.tar.gz
qemu-38e1f8186fc40054ae12b9b5e21f051c2f59cb9c.tar.bz2
block/nvme: Replace qemu_try_blockalign(bs) by qemu_try_memalign(pg_sz)
qemu_try_blockalign() is a generic API that call back to the block driver to return its page alignment. As we call from within the very same driver, we already know to page alignment stored in our state. Remove indirections and use the value from BDRVNVMeState. This change is required to later remove the BlockDriverState argument, to make nvme_init_queue() per hardware, and not per block driver. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200821195359.1285345-11-philmd@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/misc/slavio_misc.c')
0 files changed, 0 insertions, 0 deletions