]> xenbits.xensource.com Git - seabios.git/commit
nvme: Only allocate one dma bounce buffer for all nvme drives
authorKevin O'Connor <kevin@koconnor.net>
Wed, 19 Jan 2022 19:08:05 +0000 (14:08 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 27 Jan 2022 16:26:11 +0000 (11:26 -0500)
commit6d462830e7cf9ce7689986327be3a317f1f990da
treeba4d59fafbf6ee2e6debe1c2c8b4c1a86d799e43
parentf13b650015eba78725ceaf992b5ad6858fd77769
nvme: Only allocate one dma bounce buffer for all nvme drives

There is no need to create multiple dma bounce buffers as the BIOS
disk code isn't reentrant capable.

Also, verify that the allocation succeeds.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Reviewed-by: Alexander Graf <graf@amazon.com>
src/hw/nvme-int.h
src/hw/nvme.c