usb-storage: cancel I/O on reset
When resetting the usb-storage device we'll have to carefully canceland clear any requests which might be in flight, otherwise we'll confusethe state machine.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-ohci: td.cbp incorrectly updated near page end
The current code that updates the cbp value after a transfer looks like this:td.cbp += ret;if ((td.cbp & 0xfff) + ret > 0xfff) { <handle page overflow>because the 'ret' value is effectively added twice the check may fire too early...
Merge remote-tracking branch 'qemu-kvm/memory/page_desc' into staging
vhost: avoid cpu_get_physical_page_desc()
This reaches into the innards of the memory core, which are beingchanged. Switch to a memory API version.
Signed-off-by: Avi Kivity <avi@redhat.com>
virtio-balloon: avoid cpu_get_physical_page_desc()
Merge remote-tracking branch 'aneesh/for-upstream' into staging
Set numa topology for max_cpus
qemu-kvm passes numa/SRAT topology information for smp_cpus to SeaBIOS. HoweverSeaBIOS always expects to setup max_cpus number of SRAT cpu entries(MaxCountCPUs variable in build_srat function of Seabios). When qemu-kvm runs...
virtio-console: Check if chardev backends available before calling into them
For the callback functions invoked by the virtio-serial-bus code, checkif we have chardev backends registered before we call into the chardevfunctions.
Signed-off-by: Amit Shah <amit.shah@redhat.com>...
virtio-console: Properly initialise class methods
The earlier code really was a hack: initialising class methods in anobject init function as noted by Anthony.
The motivation for that was to not have the virtio-serial-bus call intothe callback functions if there was no chardev backend registered....
virtio-serial-bus: Ports are expected to implement 'have_data' callback
There's no need to check if ports can accept any incoming data from theguest each time the guest sends data. Check if the port implements suchfunctionality during port initialisation....
View revisions
Also available in: Atom