Skip to content

virtio-serial: Trivial fixes, don't copy buffers to host

Amit Shah qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 0 repliesSuperseded
  3. v15 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Move discard logic to a separate function
- Drop while-loop-rework patch as it's now no longer necessary with the new discard logic

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4virtio-console: Factor out common init between console and generic portshw/virtio-console.c+14 -170 replies
2/4virtio-console: Remove unnecessary braceshw/virtio-console.c+1 -20 replies
3/4virtio-serial-bus: separate out discard logic in a separate functionhw/virtio-serial-bus.c+30 -170 replies
4/4virtio-serial: Don't copy over guest buffer to hosthw/virtio-serial-bus.c+8 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/4] virtio-serial: Trivial fixes, don't copy buffers to host

Hi,

This patch series converts virtio-serial-bus to use the guest buffers instead of copying over guest data to the host, as suggested by Paul.

In addition, there are some trivial fixes and code re-arrangement to the virtio-console and virtio-serial code for the upcoming flow control series.

Please apply.

v3:
- Move discard logic to a separate function
- Drop while-loop-rework patch as it's now no longer necessary with the new discard logic

v2:
- drop the erroring out patch till we decide what's to be done
- remove goto usage.

Amit Shah (4):
virtio-console: Factor out common init between console and generic
ports
virtio-console: Remove unnecessary braces
virtio-serial-bus: separate out discard logic in a separate function
virtio-serial: Don't copy over guest buffer to host

 hw/virtio-console.c    |   34 ++++++++++++++------------------
 hw/virtio-serial-bus.c |   50 ++++++++++++++++++++++++++++++-----------------
 2 files changed, 47 insertions(+), 37 deletions(-)
Signature · 1 line
1.7.3.4