qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2 v2] Break down the MTP write operation
@ 2019-01-11  8:20 Bandan Das
  2019-01-11  8:20 ` [Qemu-devel] [PATCH 1/2 v2] usb-mtp: Reallocate buffer in multiples of MTP_WRITE_BUF_SZ Bandan Das
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bandan Das @ 2019-01-11  8:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel

v2:
  Rebased on top of master and retested

For larger files, not only do we keep reallocating to increase the mtp buffer
size, the write also happens in one go. This does two things:

Write to file upto a certain data size we have received so far and second,
reuse the buffer again instead of reallocating to a larger buffer size.

Tested with different file sizes on a Linux guest.

Bandan Das (2):
  usb-mtp: Reallocate buffer in multiples of MTP_WRITE_BUF_SZ
  usb-mtp: breakup MTP write into smaller chunks

 hw/usb/dev-mtp.c | 154 ++++++++++++++++++++++++++++++-----------------
 1 file changed, 100 insertions(+), 54 deletions(-)

-- 
2.19.2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-01-14 10:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11  8:20 [Qemu-devel] [PATCH 0/2 v2] Break down the MTP write operation Bandan Das
2019-01-11  8:20 ` [Qemu-devel] [PATCH 1/2 v2] usb-mtp: Reallocate buffer in multiples of MTP_WRITE_BUF_SZ Bandan Das
2019-01-11 15:39   ` Eric Blake
2019-01-13  5:37     ` Bandan Das
2019-01-11  8:20 ` [Qemu-devel] [PATCH 2/2 v2] usb-mtp: breakup MTP write into smaller chunks Bandan Das
2019-01-11 10:44 ` [Qemu-devel] [PATCH 0/2 v2] Break down the MTP write operation Gerd Hoffmann
2019-01-14 10:47   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).