1. 21 1月, 2019 32 次提交
  2. 19 1月, 2019 1 次提交
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190118' into staging · a8d2b068
      Peter Maydell 提交于
      s390x updates:
      - clang compilation fixes
      - fixes in zpci hotplug code
      - handle unimplemented diag 308 subcodes correctly
      - add common fmb in zpci
      
      # gpg: Signature made Fri 18 Jan 2019 12:13:26 GMT
      # gpg:                using RSA key DECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>"
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>"
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20190118:
        s390x/pci: add common function measurement block
        s390x/pci: Ignore the unplug call if we already have a release_timer
        s390x/pci: Always delete and free the release_timer
        s390x/pci: Move some hotplug checks to the pre_plug handler
        s390x/pci: Use hotplug_dev instead of looking up the host bridge
        s390x/pci: Set the iommu region size mpcifc request
        s390x/pci: Send correct event on hotplug
        configure: Only build the s390-ccw bios if the compiler supports -march=z900
        s390x: Return specification exception for unimplemented diag 308 subcodes
        pc-bios/s390-ccw: Use proper register names for Clang
        s390: avoid potential null dereference in s390_pcihost_unplug()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a8d2b068
  3. 18 1月, 2019 7 次提交
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/python-next-pull-request' into staging · 9bd641b1
      Peter Maydell 提交于
      Python queue, 2019-01-17
      
      Fixes:
      * Actually test different Python versions on Travis CI
      * Fix qemu.py error message when qemu dies from signal
      
      Cleanups:
      * Track Python version on config-host.mak
      * Remove fixed crashes from scripts/device-crash-test
      * Acceptance tests: Linux initrd checking test
      * Fix utf-8 mangling at scripts/replay-dump.py
      * Remove unused python imports from multiple scripts
      
      # gpg: Signature made Thu 17 Jan 2019 20:16:41 GMT
      # gpg:                using RSA key 2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/python-next-pull-request:
        scripts/replay-dump.py: fix utf-8 mangling
        qemu.py: Fix error message when qemu dies from signal
        Acceptance tests: add Linux initrd checking test
        check-help: visual and content improvements
        Travis CI: make specified Python versions usable on jobs
        check-venv: use recorded Python version
        configure: keep track of Python version
        scripts: Remove unused python imports
        scripts/device-crash-test: Remove known crashes
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9bd641b1
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 51c1c135
      Peter Maydell 提交于
      pci, pc, virtio: fixes, features
      
      tpm physical presence interface
      rsc support in virtio net
      ivshmem is removed
      misc cleanups and fixes all over the place
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Fri 18 Jan 2019 02:11:11 GMT
      # gpg:                using RSA key 281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream: (49 commits)
        migration: Use strnlen() for fixed-size string
        migration: Fix stringop-truncation warning
        hw/acpi: Use QEMU_NONSTRING for non NUL-terminated arrays
        block/sheepdog: Use QEMU_NONSTRING for non NUL-terminated arrays
        qemu/compiler: Define QEMU_NONSTRING
        acpi: update expected files
        hw: acpi: Fix memory hotplug AML generation error
        tpm: clear RAM when "memory overwrite" requested
        acpi: add ACPI memory clear interface
        acpi: build TPM Physical Presence interface
        acpi: expose TPM/PPI configuration parameters to firmware via fw_cfg
        tpm: allocate/map buffer for TPM Physical Presence interface
        tpm: add a "ppi" boolean property
        hw/misc/edu: add msi_uninit() for pci_edu_uninit()
        virtio: Make disable-legacy/disable-modern compat properties optional
        globals: Allow global properties to be optional
        virtio: virtio 9p really requires CONFIG_VIRTFS to work
        virtio: split virtio crypto bits from virtio-pci.h
        virtio: split virtio gpu bits from virtio-pci.h
        virtio: split virtio serial bits from virtio-pci
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      51c1c135
    • Y
      s390x/pci: add common function measurement block · 6e92c70c
      Yi Min Zhao 提交于
      Common function measurement block is used to report zPCI internal
      counters of successful pcilg/stg/stb and rpcit instructions to
      a memory location provided by the program.
      
      This patch introduces a new ZpciFmb structure and schedules a timer
      callback to copy the zPCI measures to the FMB in the guest memory
      at an interval time set to 4s.
      
      An error while attemping to update the FMB, would generate an error
      event to the guest.
      
      The pcilg/stg/stb and rpcit interception handlers increase the
      related counter on a successful call.
      The guest shall pass a null FMBA (FMB address) in the FIB (Function
      Information Block) when it issues a Modify PCI Function Control
      instruction to switch off FMB and stop the corresponding timer.
      Signed-off-by: NYi Min Zhao <zyimin@linux.ibm.com>
      Signed-off-by: NPierre Morel <pmorel@linux.ibm.com>
      Message-Id: <1546969050-8884-2-git-send-email-pmorel@linux.ibm.com>
      Acked-by: NDavid Hildenbrand <david@redhat.com>
      Reviewed-by: NCollin Walling <walling@linux.ibm.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      6e92c70c
    • D
      s390x/pci: Ignore the unplug call if we already have a release_timer · 3549f8c9
      David Hildenbrand 提交于
      ... otherwise two successive calls to qdev_unplug() (e.g. by an impatient
      user) will effectively overwrite pbdev->release_timer, resulting in a
      memory leak. We are already processing the unplug.
      
      If there is already a release_timer, the unplug will be performed after
      the timeout.
      
      Can be easily triggered by
      (hmp) device_add virtio-mouse-pci,id=test
      (hmp) stop
      (hmp) device_del test
      (hmp) device_del test
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20190114103110.10909-5-david@redhat.com>
      Reviewed-by: NCollin Walling <walling@linux.ibm.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      3549f8c9
    • D
      s390x/pci: Always delete and free the release_timer · d648a3e6
      David Hildenbrand 提交于
      We should always get rid of it. I don't see a reason to keep the timer
      alive if the devices are going away. This looks like a memory leak.
      
      (hmp) device_add virtio-mouse-pci,id=test
      (hmp) device_del test
      -> guest notified, timer pending.
      -> guest does not react for some reason (e.g. crash)
      -> s390_pcihost_timer_cb(). Timer not pending anymore. qmp_unplug().
      
      -> Device deleted. Timer expired (not pending) but not freed.
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20190114103110.10909-4-david@redhat.com>
      Reviewed-by: NCollin Walling <walling@linux.ibm.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      d648a3e6
    • D
      s390x/pci: Move some hotplug checks to the pre_plug handler · 6069bcde
      David Hildenbrand 提交于
      Let's move most of the checks to the new pre_plug handler. As a PCI
      bridge is just a PCI device, we can simplify the code.
      
      Notes: We cannot yet move the MSIX check or device ID creation +
      zPCI device creation to the pre_plug handler as both parts are not
      fixed before actual device realization (and therefore after pre_plug and
      before plug). Once that part is factored out, we can move these parts to
      the pre_plug handler, too and therefore remove all possible errors from
      the plug handler.
      Reviewed-by: NCollin Walling <walling@linux.ibm.com>
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20190114103110.10909-3-david@redhat.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      6069bcde
    • D
      s390x/pci: Use hotplug_dev instead of looking up the host bridge · 19375e9b
      David Hildenbrand 提交于
      We directly have it in our hands.
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20190114103110.10909-2-david@redhat.com>
      Reviewed-by: NCollin Walling <walling@linux.ibm.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      19375e9b