virtio len fixes for qemu.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | virtio: make it clear that "len" for a used descriptor is len written.hw/ include/ | +14 | 0 replies | |
| 2/2 | virtio-blk: fix length calculations for write operations.hw/ | +9 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/2] virtio len fixes for qemu.
The virtio 'used' ring describes descriptors which have been used. It also says how many bytes have been written to the ring. For some cases, this value is ignored by Linux guests, thus errors have not been noticed. I was working on increasing the checking in Linux when I noticed this behaviour.
The first patch changes the 'len' formal parameter name to 'len_written' to make the API clearer, and adds an assert(). The second fixes block writes.
Cheers,
Rusty.
PS. It's based on MST's virtio-1.0 tree, but should be easily ported.
Rusty Russell (2):
virtio: make it clear that "len" for a used descriptor is len written.
virtio-blk: fix length calculations for write operations.
hw/block/virtio-blk.c | 9 ++++++++- hw/virtio/virtio.c | 19 ++++++++++++------- include/hw/virtio/virtio.h | 4 ++-- 3 files changed, 22 insertions(+), 10 deletions(-)
Signature · 1 line
2.1.0