1. 15 7月, 2015 1 次提交
  2. 07 7月, 2015 1 次提交
  3. 02 7月, 2015 3 次提交
  4. 30 6月, 2015 1 次提交
  5. 23 6月, 2015 2 次提交
  6. 17 6月, 2015 1 次提交
  7. 11 6月, 2015 1 次提交
  8. 04 6月, 2015 2 次提交
  9. 31 5月, 2015 7 次提交
  10. 08 5月, 2015 2 次提交
    • C
      virtio-ccw: implement ->device_plugged · fb846a09
      Cornelia Huck 提交于
      Let's move operations that are only valid after the backend has been
      realized to a ->device_plugged callback, just as virtio-pci does.
      Also reorder setting up the host feature bits to the sequence used
      by virtio-pci.
      
      While we're at it, also add a ->device_unplugged callback to stop
      ioeventfd, just to be on the safe side.
      Reviewed-by: NShannon Zhao <shannon.zhao@linaro.org>
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Message-Id: <1429627016-30656-3-git-send-email-cornelia.huck@de.ibm.com>
      fb846a09
    • C
      virtio-ccw: change realization sequence · 1fa75523
      Cornelia Huck 提交于
      virtio-ccw has an odd sequence of realizing devices: first the
      device-specific relization (net, block, ...), then the generic
      realization. It feels less odd to have the generic realization
      callback trigger the device-specific realization instead (and this
      also matches what virtio-pci does).
      
      One thing to note: We need to defer initializing the cu model in the
      sense id data until after the device-specific realization has been
      performed, as we need to refer to the virtio device's device_id.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Message-Id: <1429627016-30656-2-git-send-email-cornelia.huck@de.ibm.com>
      1fa75523
  11. 30 4月, 2015 1 次提交
  12. 28 4月, 2015 3 次提交
  13. 26 4月, 2015 1 次提交
    • P
      Switch non-CPU callers from ld/st*_phys to address_space_ld/st* · 42874d3a
      Peter Maydell 提交于
      Switch all the uses of ld/st*_phys to address_space_ld/st*,
      except for those cases where the address space is the CPU's
      (ie cs->as). This was done with the following script which
      generates a Coccinelle patch.
      
      A few over-80-columns lines in the result were rewrapped by
      hand where Coccinelle failed to do the wrapping automatically,
      as well as one location where it didn't put a line-continuation
      '\' when wrapping lines on a change made to a match inside
      a macro definition.
      
      ===begin===
      #!/bin/sh -e
      # Usage:
      # ./ldst-phys.spatch.sh > ldst-phys.spatch
      # spatch -sp_file ldst-phys.spatch -dir . | sed -e '/^+/s/\t/        /g' > out.patch
      # patch -p1 < out.patch
      
      for FN in ub uw_le uw_be l_le l_be q_le q_be uw l q; do
      cat <<EOF
      @ cpu_matches_ld_${FN} @
      expression E1,E2;
      identifier as;
      @@
      
      ld${FN}_phys(E1->as,E2)
      
      @ other_matches_ld_${FN} depends on !cpu_matches_ld_${FN} @
      expression E1,E2;
      @@
      
      -ld${FN}_phys(E1,E2)
      +address_space_ld${FN}(E1,E2, MEMTXATTRS_UNSPECIFIED, NULL)
      
      EOF
      
      done
      
      for FN in b w_le w_be l_le l_be q_le q_be w l q; do
      cat <<EOF
      @ cpu_matches_st_${FN} @
      expression E1,E2,E3;
      identifier as;
      @@
      
      st${FN}_phys(E1->as,E2,E3)
      
      @ other_matches_st_${FN} depends on !cpu_matches_st_${FN} @
      expression E1,E2,E3;
      @@
      
      -st${FN}_phys(E1,E2,E3)
      +address_space_st${FN}(E1,E2,E3, MEMTXATTRS_UNSPECIFIED, NULL)
      
      EOF
      
      done
      ===endit===
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      42874d3a
  14. 30 3月, 2015 2 次提交
  15. 16 3月, 2015 1 次提交
  16. 10 3月, 2015 1 次提交
  17. 01 3月, 2015 1 次提交
  18. 26 2月, 2015 2 次提交
  19. 30 10月, 2014 1 次提交
  20. 20 10月, 2014 1 次提交
    • M
      hw: Convert from BlockDriverState to BlockBackend, mostly · 4be74634
      Markus Armbruster 提交于
      Device models should access their block backends only through the
      block-backend.h API.  Convert them, and drop direct includes of
      inappropriate headers.
      
      Just four uses of BlockDriverState are left:
      
      * The Xen paravirtual block device backend (xen_disk.c) opens images
        itself when set up via xenbus, bypassing blockdev.c.  I figure it
        should go through qmp_blockdev_add() instead.
      
      * Device model "usb-storage" prompts for keys.  No other device model
        does, and this one probably shouldn't do it, either.
      
      * ide_issue_trim_cb() uses bdrv_aio_discard() instead of
        blk_aio_discard() because it fishes its backend out of a BlockAIOCB,
        which has only the BlockDriverState.
      
      * PC87312State has an unused BlockDriverState[] member.
      
      The next two commits take care of the latter two.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      4be74634
  21. 15 10月, 2014 3 次提交
  22. 10 10月, 2014 1 次提交
  23. 30 9月, 2014 1 次提交