- Jun 03, 2011
-
-
Aurelien Jarno authored
target-mips has been switched to softfloat only long ago, but a #ifndef CONFIG_SOFTFLOAT has been forgotten. Remove it. Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Aurelien Jarno authored
target-ppc has been switched to softfloat only long ago, but a few #ifdef CONFIG_SOFTFLOAT have been forgotten. Remove them. Cc: Alexander Graf <agraf@suse.de> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
- May 31, 2011
-
-
Juha Riihimäki authored
Fix an integer overflow that can happen for signed 32 bit types when using FLOAT_MIXENG. (Note that at the moment this is only true when using the MacOSX coreaudio audio driver.) Signed-off-by:
Juha Riihim?ki <juha.riihimaki@nokia.com> [Peter Maydell: Removed unnecessary casts] Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
malc <av1474@comtv.ru>
-
Anthony Liguori authored
-
Anthony Liguori authored
-
Anthony Liguori authored
Conflicts: hw/usb-msd.c
-
Anthony Liguori authored
-
- May 29, 2011
-
-
Stefan Weil authored
Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
Stefan Weil authored
Thanks to Tobias Hoffmann <th55@gmx.de> for this patch. Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
- May 28, 2011
-
-
Marcus Comstedt authored
After NACKing a read operation, a raising SCL should not trigger a new read from the slave. Introduce a new state which just waits for a stop or start condition after NACK. Signed-off-by:
Marcus Comstedt <marcus@mc.pp.se> Signed-off-by:
Andrzej Zaborowski <andrew.zaborowski@intel.com>
-
Blue Swirl authored
Simplify cpu-exec.c by refactoring. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
Blue Swirl authored
There is little in common with user and softmmu versions of cpu_resume_signal(), split them. Fix coding style for the user emulator part. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- May 27, 2011
-
-
Markus Armbruster authored
Signed-off-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
Markus Armbruster authored
Signed-off-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
Markus Armbruster authored
All you could ever achieve with it is break stuff, so removing it should be safe. Signed-off-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
Markus Armbruster authored
virtio-serial-bus needs to treat "virtconsole" devices specially. It uses VirtIOSerialPort member is_console to recognize them. It gets its value via property initialization. Cute hack, except it lets users mess with it: "-device virtconsole,is_console=0" isn't plugged into port 0 as it should. Move the flag to VirtIOSerialPortInfo. Keep the property for backward compatibility; its value has no effect. Signed-off-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
Markus Armbruster authored
virtio_serial_init() allocates the VirtIOSerialBus dynamically, but virtio_serial_exit() doesn't free it. Fix by getting rid of the allocation. Signed-off-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
Alon Levy authored
Instead of calling flush_queued_data when unthrottling, schedule a bh. That way we can return immediately to the caller, and the flush uses the same call path as a have_data for callbackee. No migration change is required because bh are called from vm_stop. Signed-off-by:
Alon Levy <alevy@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com>
-
- May 26, 2011
-
-
Paolo Bonzini authored
The LUN field in the CDB is a historical relic. Ignore it as reserved, which is what modern SCSI specifications actually say. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
This mirrors the LSI patch that was recently committed. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
The sg driver currently has a hardcoded limit of commands it can handle simultaneously. When this limit is reached the driver will return -EDOM. So we need to capture this to enable proper return values here. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
The return value is unused anyway. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Hannes Reinecke authored
scsi_req_parse() already provides for a data direction setting, so we should be using it to check for correct direction. And we should return the sense code 'INVALID FIELD IN CDB' in these cases. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Hannes Reinecke authored
The get_sense callback copies existing sense information into the provided buffer. This is required if sense information should be transferred together with the command response. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
... and remove some SCSIDevice variables or fields that now become unused. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Hannes Reinecke authored
The SCSI spec has a quite detailed list of sense codes available. It even mandates the use of specific ones for some failure cases. The current implementation just has one type of generic error which is actually a violation of the spec in certain cases. This patch introduces various predefined sense codes to have the sense code reporting more in line with the spec. On top of Hannes's patch I fixed the reply to REQUEST SENSE commands with DESC=0 and a small (<18) length. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
This is for when the request must be dropped in the void, but still memory should be freed. To this end, the devices register a second callback in SCSIBusOps. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
This covers the case of canceling a request's I/O and still completing it. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
The code for canceling requests upon reset is already the same. Clean it up and move it to scsi-bus.c. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Hannes Reinecke authored
Currently the SCSIRequest structure is abstracted away and cannot accessed directly from the driver. This requires the handler to do a lookup on an abstract 'tag' which identifies the SCSIRequest structure. With this patch the SCSIRequest structure is exposed to the driver. This allows use to use it directly as an argument to the SCSIDeviceInfo callback functions and remove the lookup. A new callback function 'alloc_req' is introduced matching 'free req'; unref'ing to free up resources after use is moved into the scsi_command_complete callbacks. This temporarily introduces a leak of requests that are cancelled, when they are removed from the queue and not from the driver. This is fixed later by introducing scsi_req_cancel. That patch in turn depends on this one, because the argument to scsi_req_cancel is a SCSIRequest. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
With the next patch, a device may hold SCSIRequest for an indefinite time. Split a rather big patch, and protect against access errors, by reference counting them. There is some ugliness in scsi_send_command implementation due to the need to unref the request when it fails. This will go away with the next patches, which move the unref'ing to the devices. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
If a request is canceled after it has been completed, scsi_cancel_io would pass a stale aiocb to bdrv_aio_cancel. Avoid this. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-
Paolo Bonzini authored
There are more operations than a SCSI bus can handle, besides completing commands. One example, which this series will introduce, is cleaning up after a request is cancelled. More long term, a "SCSI bus" can represent the LUNs attached to a target; in this case, while all commands will ultimately reach a logical unit, it is the target who is in charge of answering REPORT LUNs. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
-