[SeaBIOS] [PATCH] nvme: Clean up nvme_cmd_readwrite()

2020-10-30 Thread David Woodhouse
From: David woodhouse This ended up with an odd mix of recursion (albeit *mostly* tail-recursion) and interation that could have been prettier. Make it prettier by making nvme_build_prpl() return the number of blocks it consumes, and just looping. If nvme_build_prpl() doesn't want to play, just

[SeaBIOS] Re: [PATCH v3 4/4] nvme: Split requests by maximum allowed size

2020-10-30 Thread Kevin O'Connor
On Thu, Oct 29, 2020 at 05:21:04PM +, David Woodhouse wrote: > On Wed, 2020-10-07 at 12:13 -0400, Kevin O'Connor wrote: > > > > > --- a/src/hw/nvme.c > > > > > +++ b/src/hw/nvme.c > > > > > @@ -727,6 +727,22 @@ nvme_cmd_readwrite(struct nvme_namespace *ns, > > > > > struct disk_op_s *op, int