1. 22 2月, 2016 33 次提交
  2. 20 2月, 2016 7 次提交
    • E
    • P
      Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20160219.1' into staging · 586d1a99
      Peter Maydell 提交于
      VFIO updates 2016-02-19
      
       - AER pre-enable and misc fixes (Cao jin and Chen Fan)
       - PCI_CAP_LIST_NEXT & PCI_MSIX_FLAGS cleanup (Wei Yang)
       - AMD XGBE KVM platform passthrough (Eric Auger)
      
      # gpg: Signature made Fri 19 Feb 2016 17:28:36 GMT using RSA key ID 3BB08B22
      # gpg: Good signature from "Alex Williamson <alex.williamson@redhat.com>"
      # gpg:                 aka "Alex Williamson <alex@shazbot.org>"
      # gpg:                 aka "Alex Williamson <alwillia@redhat.com>"
      # gpg:                 aka "Alex Williamson <alex.l.williamson@gmail.com>"
      
      * remotes/awilliam/tags/vfio-update-20160219.1:
        vfio/pci: use PCI_MSIX_FLAGS on retrieving the MSIX entries
        hw/arm/sysbus-fdt: remove qemu_fdt_setprop returned value check
        hw/arm/sysbus-fdt: enable amd-xgbe dynamic instantiation
        hw/arm/sysbus-fdt: helpers for clock node generation
        device_tree: qemu_fdt_getprop_cell converted to use the error API
        device_tree: qemu_fdt_getprop converted to use the error API
        device_tree: introduce qemu_fdt_node_path
        device_tree: introduce load_device_tree_from_sysfs
        hw/vfio/platform: amd-xgbe device
        vfio/pci: replace 1 with PCI_CAP_LIST_NEXT to make code self-explain
        pcie_aer: expose pcie_aer_msg() interface
        aer: impove pcie_aer_init to support vfio device
        vfio: make the 4 bytes aligned for capability size
        pcie: modify the capability size assert
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      586d1a99
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-softfloat-20160219' into staging · 3ba32c10
      Peter Maydell 提交于
      softfloat queue:
       * update MAINTAINERS with a section for softfloat
       * drop all the uses of int_fast*_t types
      
      # gpg: Signature made Fri 19 Feb 2016 16:34:35 GMT using RSA key ID 14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
      
      * remotes/pmaydell/tags/pull-softfloat-20160219:
        MAINTAINERS: Add section for FPU emulation
        osdep.h: Remove int_fast*_t Solaris compatibility code
        fpu: Use plain 'int' rather than 'int_fast16_t' for exponents
        fpu: Use plain 'int' rather than 'int_fast16_t' for shift counts
        fpu: Remove use of int_fast16_t in conversions to int16
        target-mips: Stop using uint_fast*_t types in r4k_tlb_t struct
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3ba32c10
    • W
      vfio/pci: use PCI_MSIX_FLAGS on retrieving the MSIX entries · b58b17f7
      Wei Yang 提交于
      Even PCI_CAP_FLAGS has the same value as PCI_MSIX_FLAGS, the later one is
      the more proper on retrieving MSIX entries.
      
      This patch uses PCI_MSIX_FLAGS to retrieve the MSIX entries.
      Signed-off-by: NWei Yang <richard.weiyang@gmail.com>
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      b58b17f7
    • E
      hw/arm/sysbus-fdt: remove qemu_fdt_setprop returned value check · c89e91a7
      Eric Auger 提交于
      qemu_fdt_setprop asserts in case of error hence no need to check
      the returned value.
      Signed-off-by: NEric Auger <eric.auger@linaro.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      c89e91a7
    • E
      hw/arm/sysbus-fdt: enable amd-xgbe dynamic instantiation · cf5a13e3
      Eric Auger 提交于
      This patch allows the instantiation of the vfio-amd-xgbe device
      from the QEMU command line (-device vfio-amd-xgbe,host="<device>").
      
      The guest is exposed with a device tree node that combines the description
      of both XGBE and PHY (representation supported from 4.2 onwards kernel):
      Documentation/devicetree/bindings/net/amd-xgbe.txt.
      
      There are 5 register regions, 6 interrupts including 4 optional
      edge-sensitive per-channel interrupts.
      
      Some property values are inherited from host device tree. Host device tree
      must feature a combined XGBE/PHY representation (>= 4.2 host kernel).
      
      2 clock nodes (dma and ptp) also are created. It is checked those clocks
      are fixed on host side.
      
      AMD XGBE node creation function has a dependency on vfio Linux header and
      more generally node creation function for VFIO platform devices only make
      sense with CONFIG_LINUX so let's protect this code with #ifdef CONFIG_LINUX.
      Signed-off-by: NEric Auger <eric.auger@linaro.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      cf5a13e3
    • E
      hw/arm/sysbus-fdt: helpers for clock node generation · 9481cf2e
      Eric Auger 提交于
      Some passthrough'ed devices depend on clock nodes. Those need to be
      generated in the guest device tree. This patch introduces some helpers
      to build a clock node from information retrieved in the host device tree.
      
      - copy_properties_from_host copies properties from a host device tree
        node to a guest device tree node
      - fdt_build_clock_node builds a guest clock node and checks the host
        fellow clock is a fixed one.
      
      fdt_build_clock_node will become static as soon as it gets used. A
      dummy pre-declaration is needed for compilation of this patch.
      Signed-off-by: NEric Auger <eric.auger@linaro.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      9481cf2e