[Qemu-devel] qemu usb-linux.c

2007-10-30 Thread Andrzej Zaborowski
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Andrzej Zaborowski balrog 07/10/31 00:27:50

Modified files:
.  : usb-linux.c 

Log message:
Use a O_NONBLOCK pipe for iso completion signals for thread-safety, by 
Arnon Gilboa.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.14r2=1.15




[Qemu-devel] qemu usb-linux.c

2007-10-04 Thread Andrzej Zaborowski
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Andrzej Zaborowski balrog 07/10/04 22:55:53

Modified files:
.  : usb-linux.c 

Log message:
Quiet warnings introduced with the USB iso support.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.13r2=1.14




[Qemu-devel] qemu usb-linux.c hw/usb-uhci.c

2007-10-04 Thread Andrzej Zaborowski
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Andrzej Zaborowski balrog 07/10/04 22:47:34

Modified files:
.  : usb-linux.c 
hw : usb-uhci.c 

Log message:
USB iso transfers support for the linux redirector and for UHCI, by 
Arnon Gilboa.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.12r2=1.13
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-uhci.c?cvsroot=qemur1=1.19r2=1.20




Re: [Qemu-devel] qemu usb-linux.c vl.h hw/esp.c hw/lsi53c895a.c ...

2006-08-15 Thread Igor Kovalenko
On 8/12/06, Paul Brook [EMAIL PROTECTED] wrote:
CVSROOT:/sources/qemuModule name:qemuChanges by: Paul Brook pbrook 06/08/12 01:04:27Modified files:.: usb-linux.c vl.hhw : esp.c
 lsi53c895a.c scsi-disk.c usb-hid.c usb-hub.c usb-msd.c usb-ohci.c usb-uhci.c usb.c usb.hpc-bios: openbios-sparc32Added files:pc-bios: 
openbios-esp.diffLog message:SCSI and USB async IO support.Problem in esp.c: if request cannot be handled in one scsi device access, DMA ptr s-espdmaregs[1] will be incremented by async transfer size both in esp_do_dma() and in esp_command_complete(). Removing the one in esp_do_dma() allows me to boot aurora sparc linux with qemu-system-sparc.
--Kind Regards,Igor V. Kovalenko
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu usb-linux.c vl.h hw/esp.c hw/lsi53c895a.c ...

2006-08-12 Thread Fabrice Bellard

Hi,

OK for the SCSI async support. I am making changes to have a better low 
level handling of CDROMs (both real host CDROMs and emulated ones), but 
I don't know when it will be ready. The changes mostly consists in 
adding a method in the block devices to support packet CD commands.


About async USB, maybe some simplifications are possible. When you have 
a real USB controller, there is always a single current request and you 
don't neep to have provisions to handle several ones (of course more 
complicated host controllers could do that, but it is not useful to 
model it now). Moreover, the devices must reply to the request 
immediately so the request are asynchronous just because it takes a few 
uS to send the data, not because the device blocks (I am not sure it is 
clear for you).


So in QEMU, async USB is not needed in practise for emulated devices. 
For MSD you don't need it for example even if you are using SCSI AIO 
because the host keep polling the MSD storage device until there is an 
SCSI reply.


Async USB is only really needed in the case where QEMU speaks to a host 
device. In this case the operation to send a TD may block (ideally at 
most 1 ms) and it is interesting to hide that to the guest. In this 
case, we must make compromises to hide this fact to the guest. Your 
proposal seems good for that but USB frames will be longer than 1 ms in 
case of host devices (and I am ready to accept that as it is better than 
the previous solution !).


The more complicated implementation would be to suppress USB async as 
you did it but to export to the generic USB layers that list of TD that 
the controller maintains. Then it is possible to submit several requests 
at once to the host devices while having a consistent low level model.


Regards,

Fabrice.


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu usb-linux.c vl.h hw/esp.c hw/lsi53c895a.c ...

2006-08-12 Thread Paul Brook
[following up to record the discussion on IRC]
On Saturday 12 August 2006 13:31, Fabrice Bellard wrote:
 About async USB, maybe some simplifications are possible. When you have
 a real USB controller, there is always a single current request and you
 don't neep to have provisions to handle several ones (of course more
 complicated host controllers could do that, but it is not useful to
 model it now). Moreover, the devices must reply to the request
 immediately so the request are asynchronous just because it takes a few
 uS to send the data, not because the device blocks (I am not sure it is
 clear for you).

Right. It depends which level of the USB spec you're looking at.

At the low level (frames) USB is a bus system. Each TD is send on the bus in 
turn, and the device responds immediately (with a NAK if it is not ready to 
handle the request).

However at a higher level (endpoints) USB Bulk (and Control) transfers can be 
considered to be concurrent packet streams. This is closer to the level at 
which the current async support was intended to work.
With OHCI this matches the interface presented by the host controller. With 
UHCI a bit of guesswork is needed to recover this from the low-level 
frame/queue structures.

Paul


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu usb-linux.c vl.h hw/esp.c hw/lsi53c895a.c ...

2006-08-11 Thread Paul Brook
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Paul Brook pbrook 06/08/12 01:04:27

Modified files:
.  : usb-linux.c vl.h 
hw : esp.c lsi53c895a.c scsi-disk.c usb-hid.c 
 usb-hub.c usb-msd.c usb-ohci.c usb-uhci.c usb.c 
 usb.h 
pc-bios: openbios-sparc32 
Added files:
pc-bios: openbios-esp.diff 

Log message:
SCSI and USB async IO support.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.8r2=1.9
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemur1=1.140r2=1.141
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/esp.c?cvsroot=qemur1=1.12r2=1.13
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/lsi53c895a.c?cvsroot=qemur1=1.1r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/scsi-disk.c?cvsroot=qemur1=1.9r2=1.10
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-hid.c?cvsroot=qemur1=1.5r2=1.6
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-hub.c?cvsroot=qemur1=1.8r2=1.9
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-msd.c?cvsroot=qemur1=1.4r2=1.5
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-ohci.c?cvsroot=qemur1=1.3r2=1.4
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-uhci.c?cvsroot=qemur1=1.11r2=1.12
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb.c?cvsroot=qemur1=1.8r2=1.9
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb.h?cvsroot=qemur1=1.9r2=1.10
http://cvs.savannah.gnu.org/viewcvs/qemu/pc-bios/openbios-sparc32?cvsroot=qemurev=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/pc-bios/openbios-esp.diff?cvsroot=qemurev=1.1


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu usb-linux.c

2006-07-19 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard bellard   06/07/19 17:54:57

Modified files:
.  : usb-linux.c 

Log message:
Linux compilation fix

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.6r2=1.7


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu usb-linux.c vl.c hw/usb-hid.c hw/usb-hub.c...

2006-07-19 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard bellard   06/07/19 18:06:16

Modified files:
.  : usb-linux.c vl.c 
hw : usb-hid.c usb-hub.c usb-msd.c usb.c usb.h 

Log message:
usb destroy API change (Lonnie Mendez)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.7r2=1.8
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemur1=1.201r2=1.202
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-hid.c?cvsroot=qemur1=1.4r2=1.5
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-hub.c?cvsroot=qemur1=1.7r2=1.8
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-msd.c?cvsroot=qemur1=1.3r2=1.4
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb.c?cvsroot=qemur1=1.7r2=1.8
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb.h?cvsroot=qemur1=1.8r2=1.9


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu usb-linux.c vl.c hw/usb-hid.c hw/usb-hub.c...

2006-06-26 Thread Fabrice Bellard
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard bellard   06/06/26 21:00:51

Modified files:
.  : usb-linux.c vl.c 
hw : usb-hid.c usb-hub.c usb-msd.c usb.h 

Log message:
display device identifier string for user with info usb (Lonnie Mendez)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/usb-linux.c?cvsroot=qemur1=1.5r2=1.6
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemur1=1.195r2=1.196
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-hid.c?cvsroot=qemur1=1.3r2=1.4
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-hub.c?cvsroot=qemur1=1.6r2=1.7
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-msd.c?cvsroot=qemur1=1.2r2=1.3
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb.h?cvsroot=qemur1=1.7r2=1.8


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu ./usb-linux.c hw/usb-uhci.c

2006-03-11 Thread Paul Brook
CVSROOT:/sources/qemu
Module name:qemu
Branch: 
Changes by: Paul Brook [EMAIL PROTECTED]  06/03/11 18:03:38

Modified files:
.  : usb-linux.c 
hw : usb-uhci.c 

Log message:
Tweak UHCI device settings.  Ignore host root hubs.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu/usb-linux.c.diff?tr1=1.3tr2=1.4r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu/hw/usb-uhci.c.diff?tr1=1.4tr2=1.5r1=textr2=text


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel