1. 12 7月, 2012 4 次提交
    • G
      ehci: implement Interrupt Threshold Control support · 7efc17af
      Gerd Hoffmann 提交于
      Also reorganize and comment the irq functions while being at it.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      7efc17af
    • G
      ehci: raise irq in the frame timer · f0ad01f9
      Gerd Hoffmann 提交于
      With the async schedule being kicked from other places than the frame
      timer (commit 0f588df8) it may happen
      that we call ehci_commit_interrupt() more than once per frame.
      
      Move the call from the async schedule handler to the frame timer to
      restore old irq behavior, which is more correct.  Fixes regressions
      with some linux kernel versions.
      
      TODO: implement full Interrupt Threshold Control support.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f0ad01f9
    • G
      uhci: initialize expire_time when loading v1 vmstate · 75f151cd
      Gerd Hoffmann 提交于
      $subject says all: when loading old (v1) vmstate which doesn't contain
      expire_time initialize it with a reasonable default (current time).
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      75f151cd
    • G
      usb: add usb attached scsi emulation · 0f58f68b
      Gerd Hoffmann 提交于
      $subject says all.  First cut.
      
      It's a pure UAS (usb attached scsi) emulation, without BOT (bulk-only
      transport) compatibility.  If your guest can't handle it use usb-storage
      instead.
      
      The emulation works like any other scsi hba emulation (eps, lsi, virtio,
      megasas, ...).  It provides just the HBA where you can attach scsi
      devices as you like using '-device'.  A single scsi target with up to
      256 luns is supported.
      
      For now only usb 2.0 transport is supported.  This will change in the
      future though as I plan to use this as playground when codeing up &
      testing usb 3.0 transport and streams support in the qemu usb core and
      the xhci emulation.
      
      No migration support yet.  I'm planning to add usb 3.0 support first as
      this probably requires saving additional state.
      
      Special thanks go to Paolo for bringing the qemu scsi emulation into
      shape, so this can be added nicely without having to touch a single line
      of scsi code.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      0f58f68b
  2. 10 7月, 2012 5 次提交
    • P
      scsi: add free_request callback · 8e86b93c
      Paolo Bonzini 提交于
      Most device models have a simple lifecycle for the hba_private field
      and they can free it when a request is completed or cancelled.
      However, in some cases it may be simpler to tie the lifetime
      of hba_private to that of the included SCSIRequest.  This patch
      adds a free_request callback to SCSIBusInfo that lets an HBA
      device model do exactly that.
      
      Normally, device models use req->hba_private == NULL to flag requests
      that have been completed already.  Device models that use free_request
      will still need to track this using a flag.  This is the reason why
      "converting" existing HBAs to use free_request adds complexity and
      makes little sense.  It is simply an additional convenience that is
      provided by the SCSI layer.  USB-attached storage will be the first
      user.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      8e86b93c
    • A
      megasas: disable due to build breakage · 92336855
      Anthony Liguori 提交于
      The Buildbot has detected a new failure on builder default_i386_rhel61 while
      building qemu.
      
      Full details are available at:
       http://buildbot.b1-systems.de/qemu/builders/default_i386_rhel61/builds/304
      
      The proper fix is non-trivial so let's disable the build by default until it's
      fixed properly.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      92336855
    • A
      Merge remote-tracking branch 'mjt/mjt-iov2' into staging · 23797df3
      Anthony Liguori 提交于
      * mjt/mjt-iov2:
        rewrite iov_send_recv() and move it to iov.c
        cleanup qemu_co_sendv(), qemu_co_recvv() and friends
        export iov_send_recv() and use it in iov_send() and iov_recv()
        rename qemu_sendv to iov_send, change proto and move declarations to iov.h
        change qemu_iovec_to_buf() to match other to,from_buf functions
        consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistent
        allow qemu_iovec_from_buffer() to specify offset from which to start copying
        consolidate qemu_iovec_memset{,_skip}() into single function and use existing iov_memset()
        rewrite iov_* functions
        change iov_* function prototypes to be more appropriate
        virtio-serial-bus: use correct lengths in control_out() message
      
      Conflicts:
      	tests/Makefile
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      23797df3
    • A
      Merge remote-tracking branch 'quintela/migration-anthony-v2' into staging · 3f6e9a5f
      Anthony Liguori 提交于
      * quintela/migration-anthony-v2:
        Maintain the number of dirty pages
        dirty bitmap: abstract its use
        Exit loop if we have been there too long
        Only calculate expected_time for stage 2
        Only TCG needs TLB handling
        No need to iterate if we already are over the limit
        Add tracepoints for savevm section start/end
        Add spent time for migration
        Add migration_end function
        Add debugging infrastructure
        Add save_block_hdr function
        Add MigrationParams structure
        Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE
      3f6e9a5f
    • A
      Merge remote-tracking branch 'kiszka/queues/slirp' into staging · 537cf409
      Anthony Liguori 提交于
      * kiszka/queues/slirp:
        slirp: Improve error reporting of inaccessible smb directories
        slirp: Ensure smbd and shared directory exist when enable smb
        slirp: add 'cmd:' target for guestfwd
        slirp: Enforce host-side user of smb share
      537cf409
  3. 09 7月, 2012 31 次提交