littlekernel / lk

LK embedded kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[virtio-block] bug in non VM path

travisg opened this issue · comments

#if WITH_KERNEL_VM

The above code has an issue where in the non VM path it doesn't subtract from the len variable, this the code returns non zero, which causes the block based virtio wrappers to return an error.

Really, the function should return the total number of queued bytes and the wrapper should pass back non zero, but both the VM and non VM path need to be cleaned up and fixed.