summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* scsi: move sense handling to generic codePaolo Bonzini2011-08-125-112/+111
| | | | | | | | | | | | | With this patch, sense data is stored in the generic data structures for SCSI devices and requests. The SCSI layer takes care of storing sense data in the SCSIDevice for the subsequent REQUEST SENSE command. At the same time, get_sense is removed and scsi_req_get_sense can use an entirely generic implementation. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* scsi: pass status when completingPaolo Bonzini2011-08-124-31/+25
| | | | | | | | | | | A small improvement in the SCSI request API. Pass the status at the time the request is completed, so that we can assert that no request is completed twice. This would have detected the problem fixed in the previous patch. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* vscsi: always use get_sensePaolo Bonzini2011-08-121-70/+21
| | | | | | | | | | | | vscsi supports autosensing by providing sense data directly in the response. When get_sense was added, the older state machine approach that sent REQUEST SENSE commands separately was left in place. Remove it, all existing SCSIDevices do support autosensing and the next patches will make the support come for free from the SCSIBus. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* scsi-disk: no need to call scsi_req_data on a short readPaolo Bonzini2011-08-121-3/+0
| | | | | | | | | | | | | In fact, if the HBA's transfer_data callback goes on with scsi_req_continue the request will be completed successfully instead of showing a failure. It can even cause a segmentation fault. An easy way to trigger it is "eject -f cd" during installation (during media test if the installer does something like that). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pc: make vgabios exit port more usefulAnthony Liguori2011-08-121-2/+2
| | | | | | | | | | | | | | We've always listened on port 501 for vgabios panic messages. In the entire time I've worked on QEMU, I've never actually seen a vgabios panic message :-) If we change the semantics of this port a little bit, it makes it possible to use it for more interesting use-cases. I chose this approach instead of adding a new I/O port because it avoids having a guest visible change. This change allows single-byte access to port 501 and also uses the value written to construct an exit code. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Merge remote-tracking branch 'stefanha/trivial-patches' into stagingAnthony Liguori2011-08-124-4/+9
|\
| * fix QLIST usage for RAM listPaolo Bonzini2011-08-122-2/+2
| | | | | | | | | | | | | | Spotted while reviewing the migration thread patches. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * hw/qdev: Don't crash if qdev_create(NULL, ...) failsPeter Maydell2011-08-111-1/+6
| | | | | | | | | | | | | | | | | | | | If an attempt to create a qdev device on the default sysbus (by passing NULL as the bus to qdev_create) fails, print a useful error message rather than crashing trying to dereference a NULL pointer. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
| * scsi-bus: use DO_UPCASTZhi Yong Wu2011-08-111-1/+1
| | | | | | | | | | | | Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* | Merge remote-tracking branch 'aneesh/for-upstream-1' into stagingAnthony Liguori2011-08-1211-854/+1024
|\ \
| * | hw/9pfs: Update vfs_rename to use coroutinesAneesh Kumar K.V2011-08-082-89/+52
| | | | | | | | | | | | | | | | | | | | | | | | I guess TRENAME 9p operation needs an update. The 9p op should more similar renameat. Otherwise anything other than path cannot track the fid. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yeild support to rename coroutineAneesh Kumar K.V2011-08-082-0/+15
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_remove to use coroutinesVenkateswararao Jujjuri2011-08-082-43/+13
| | | | | | | | | | | | | | | Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support for removeVenkateswararao Jujjuri2011-08-082-0/+15
| | | | | | | | | | | | | | | Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update mkdir to use coroutinesVenkateswararao Jujjuri2011-08-081-71/+25
| | | | | | | | | | | | | | | Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support for mkdir coroutineVenkateswararao Jujjuri2011-08-082-0/+20
| | | | | | | | | | | | | | | Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_mknod to use coroutinesAneesh Kumar K.V2011-08-081-58/+30
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support to mknod coroutineAneesh Kumar K.V2011-08-082-0/+23
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_xattrcreate to use coroutinesAneesh Kumar K.V2011-08-082-38/+26
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_xattrwalk to coroutinesAneesh Kumar K.V2011-08-081-135/+63
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support to xattr related coroutineAneesh Kumar K.V2011-08-083-0/+54
| | | | | | | | | | | | | | | | | | This include llistxattr and lgetxattr. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_setattr to use coroutinesAneesh Kumar K.V2011-08-082-117/+54
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support to setattr related coroutinesAneesh Kumar K.V2011-08-082-0/+68
| | | | | | | | | | | | | | | | | | This include chmod, utimensat, chown and truncate. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_getattr to use coroutinesAneesh Kumar K.V2011-08-082-46/+19
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support to lstat coroutineAneesh Kumar K.V2011-08-083-1/+34
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_statfs to use coroutinesAneesh Kumar K.V2011-08-082-70/+44
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support to statfs coroutineAneesh Kumar K.V2011-08-082-0/+15
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_readdir to use coroutinesAneesh Kumar K.V2011-08-081-101/+72
| | | | | | | | | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yield support for readdir related coroutinesAneesh Kumar K.V2011-08-083-1/+72
| | | | | | | | | | | | | | | | | | This include readdir, telldir, seekdir, rewinddir. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Update v9fs_readlink to use coroutineVenkateswararao Jujjuri2011-08-082-60/+17
| | | | | | | | | | | | | | | Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | hw/9pfs: Add yeild support for readlinkVenkateswararao Jujjuri (JV)2011-08-083-1/+46
| | | | | | | | | | | | | | | Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | [virtio-9p] Change all pdu handlers to coroutines.Venkateswararao Jujjuri (JV)2011-08-083-43/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the top level handlers to coroutines and sets the base. It will be followed up with series of patches to convert all filesystem calls to threaded coroutines pushing all blocking clals in VirtFS out of vcpu threads. Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | [virtio-9p] Add infrastructure to support glib threads and coroutines.Venkateswararao Jujjuri (JV)2011-08-084-2/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is originally made by Arun Bharadwaj for glib support. Later Harsh Prateek Bora added coroutines support. This version implemented with suggestions from Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>. Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com> Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
| * | coroutine: add gthread dependencyStefan Hajnoczi2011-08-081-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | Commit 1fc7bd4a86a2bfeafcec29445871eb97469a2699 removed the gthread and gio dependency since qemu-ga did not require it. Coroutines require gthread, so add it back in. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* | | Merge remote-tracking branch 'spice/spice.v41' into stagingAnthony Liguori2011-08-122-7/+14
|\ \ \
| * | | ui/spice-core: report compiled-version in info spice/query-spiceAlon Levy2011-08-101-0/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | qxl: unbreak after memory API conversionAlon Levy2011-08-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Break is only noticable with newer spice-server library (0.8.2 release or 0.9.0 and newer on master branch). ioport_write's val was changed from uint32_t to uint64_t, this broke two printfs. Use PRId64 instead of %d. Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | qxl: allowing the command rings to be not empty when spice worker is stopped ↵Yonit Halperin2011-08-101-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RHBZ #728984 same as 8927cfbba232e28304734f7afd463c1b84134031, but for qxl_check_state, that was triggered by qxl_pre_load (which calls qxl_hard_reset, which calls qxl_soft_reset), and caused the migration target to crash. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | | | Merge remote-tracking branch 'kraxel/usb.23' into stagingAnthony Liguori2011-08-126-146/+134
|\ \ \ \
| * | | | usb-hid: remove usb_hid_datain_cbGerd Hoffmann2011-08-102-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No users left, all migrated over to hw/hid.[ch]. Yea! Zap it! Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | | milkymist-softusb: use hid code directlyMichael Walle2011-08-101-84/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the dummy USB device and use the HID code directly. Use the HID code for the mouse support, too. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | | usb-hid: use hid vmstate macroMichael Walle2011-08-101-39/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use new hid vmstate macro. Version stays the same, because there is no reordering of the fields. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | | hid: introduce hid vmstate macrosMichael Walle2011-08-102-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add VMSTATE macros to describe a HIDState. Based on usb-hid.c descriptions. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | | hid: register kbd hander in init()Michael Walle2011-08-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Register the keyboard event handler in hid's init() instead of its reset() function. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * | | | usb/hid: add hid_pointer_activate, use itGerd Hoffmann2011-08-103-4/+13
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HID reorganziation broke the usb tablet in windows xp. The reason is that xp activates idle before it starts polling, which creates a chicken-and-egg issue: We don't call hid_pointer_poll because there are no pending events. We don't get any events because the activation code in hid_pointer_poll is never executed and thus all pointer events are routed to the PS/2 mouse by qemu. Fix this by creating a hid_pointer_activate function and call it from usb-hid when the guest sets the idle state. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | | | Merge remote-tracking branch 'kraxel/seabios' into stagingAnthony Liguori2011-08-122-0/+0
|\ \ \ \ | |_|_|/ |/| | |
| * | | seabios: update to masterGerd Hoffmann2011-08-102-0/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 8e301472e324b6d6496d8b4ffc66863e99d7a505 user visible changes in seabios: * ahci is enabled by default (and thus in this build). * bootorder support for ahci. * two-pass pci allocator (orders bars by size for better packing). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* | | etrax-ser: printf -> qemu_log.Edgar E. Iglesias2011-08-111-4/+6
| | | | | | | | | | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* | | etrax: QDevify the Ethernet MAC.Edgar E. Iglesias2011-08-113-31/+67
|/ / | | | | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* | Merge remote-tracking branch 'pm-arm/for-upstream' into pmEdgar E. Iglesias2011-08-093-42/+121
|\ \
OpenPOWER on IntegriCloud