qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 0/1] uhci: Use an intermediate buffer for usb pac


From: Hans de Goede
Subject: [Qemu-devel] [PATCH v2 0/1] uhci: Use an intermediate buffer for usb packet data
Date: Mon, 6 May 2013 10:48:56 +0200

Hi,

Due to various unfortunate reasons we cannot reliable detect a guest
cancelling a packet as soon as it happens, instead we detect cancels
with some delay.

When packets are handled async, and we directly pass the guest memory for
the packet to the usb-device as iovec, this means that the usb-device can
write to guest-memory which the guest has already re-used for other purposes
-> not good!

This patch fixes this by adding an intermediate buffer and writing back not
only the result, but also the data, of async completed packets when scanning
the schedule.

Changes in v2: Use usb_packet_addbuf instead of directly calling iovec_add

Signed-off-by: Hans de Goede <address@hidden>

Regards,

Hans



reply via email to

[Prev in Thread] Current Thread [Next in Thread]