1. 05 7月, 2016 1 次提交
  2. 17 6月, 2016 2 次提交
  3. 18 5月, 2016 1 次提交
  4. 11 3月, 2016 1 次提交
  5. 07 2月, 2016 1 次提交
    • S
      fix MSI injection on Xen · 428c3ece
      Stefano Stabellini 提交于
      On Xen MSIs can be remapped into pirqs, which are a type of event
      channels. It's mostly for the benefit of PCI passthrough devices, to
      avoid the overhead of interacting with the emulated lapic.
      
      However remapping interrupts and MSIs is also supported for emulated
      devices, such as the e1000 and virtio-net.
      
      When an interrupt or an MSI is remapped into a pirq, masking and
      unmasking is done by masking and unmasking the event channel. The
      masking bit on the PCI config space or MSI-X table should be ignored,
      but it isn't at the moment.
      
      As a consequence emulated devices which use MSI or MSI-X, such as
      virtio-net, don't work properly (the guest doesn't receive any
      notifications). The mechanism was working properly when xen_apic was
      introduced, but I haven't narrowed down which commit in particular is
      causing the regression.
      
      Fix the issue by ignoring the masking bit for MSI and MSI-X which have
      been remapped into pirqs.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      428c3ece
  6. 29 1月, 2016 1 次提交
    • P
      pci: Clean up includes · 97d5408f
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1453832250-766-23-git-send-email-peter.maydell@linaro.org
      97d5408f
  7. 19 10月, 2015 1 次提交
  8. 02 6月, 2015 1 次提交
  9. 01 6月, 2015 1 次提交
  10. 28 4月, 2015 1 次提交
    • S
      Convert (ffs(val) - 1) to ctz32(val) · 786a4ea8
      Stefan Hajnoczi 提交于
      This commit was generated mechanically by coccinelle from the following
      semantic patch:
      
      @@
      expression val;
      @@
      - (ffs(val) - 1)
      + ctz32(val)
      
      The call sites have been audited to ensure the ffs(0) - 1 == -1 case
      never occurs (due to input validation, asserts, etc).  Therefore we
      don't need to worry about the fact that ctz32(0) == 32.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1427124571-28598-5-git-send-email-stefanha@redhat.com
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      786a4ea8
  11. 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
  12. 14 8月, 2014 1 次提交
  13. 11 2月, 2014 1 次提交
  14. 19 12月, 2012 1 次提交
  15. 17 12月, 2012 2 次提交
  16. 29 10月, 2012 1 次提交
  17. 19 7月, 2012 1 次提交
  18. 07 6月, 2012 4 次提交
  19. 19 1月, 2012 1 次提交
  20. 13 7月, 2011 1 次提交
  21. 12 6月, 2011 1 次提交
  22. 06 5月, 2011 1 次提交
  23. 05 5月, 2011 1 次提交
  24. 20 1月, 2011 1 次提交
  25. 28 10月, 2010 3 次提交
  26. 19 10月, 2010 1 次提交