1. 13 1月, 2020 3 次提交
    • D
      usbredir: Prevent recursion in usbredir_write · 394642a8
      Dr. David Alan Gilbert 提交于
      I've got a case where usbredir_write manages to call back into itself
      via spice; this patch causes the recursion to fail (0 bytes) the write;
      this seems to avoid the deadlock I was previously seeing.
      
      I can't say I fully understand the interaction of usbredir and spice;
      but there are a few similar guards in spice and usbredir
      to catch other cases especially onces also related to spice_server_char_device_wakeup
      
      This case seems to be triggered by repeated migration+repeated
      reconnection of the viewer; but my debugging suggests the migration
      finished before this hits.
      
      The backtrace of the hang looks like:
        reds_handle_ticket
        reds_handle_other_links
        reds_channel_do_link
        red_channel_connect
        spicevmc_connect
        usbredir_create_parser
        usbredirparser_do_write
        usbredir_write
        qemu_chr_fe_write
        qemu_chr_write
        qemu_chr_write_buffer
        spice_chr_write
        spice_server_char_device_wakeup
        red_char_device_wakeup
        red_char_device_write_to_device
        vmc_write
        usbredirparser_do_write
        usbredir_write
        qemu_chr_fe_write
        qemu_chr_write
        qemu_chr_write_buffer
        qemu_mutex_lock_impl
      
      and we fail as we lang through qemu_chr_write_buffer's lock
      twice.
      
      Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1752320Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-Id: <20191218113012.13331-1-dgilbert@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      394642a8
    • Y
      usb-redir: remove 'remote wakeup' flag from configuration descriptor · 32187f3d
      Yuri Benditovich 提交于
      If the redirected device has this capability, Windows guest may
      place the device into D2 and expect it to wake when the device
      becomes active, but this will never happen. For example, when
      internal Bluetooth adapter is redirected, keyboards and mice
      connected to it do not work. Current commit removes this
      capability (starting from machine 5.0)
      Set 'usb-redir.suppress-remote-wake' property to 'off' to keep
      'remote wake' as is or to 'on' to remove 'remote wake' on
      4.2 or earlier.
      Signed-off-by: NYuri Benditovich <yuri.benditovich@daynix.com>
      Message-id: 20200108091044.18055-3-yuri.benditovich@daynix.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      32187f3d
    • Y
      usb-host: remove 'remote wakeup' flag from configuration descriptor · 7bacaf5f
      Yuri Benditovich 提交于
      If the redirected device has this capability, Windows guest may
      place the device into D2 and expect it to wake when the device
      becomes active, but this will never happen. For example, when
      internal Bluetooth adapter is redirected, keyboards and mice
      connected to it do not work. Current commit removes this
      capability (starting from machine 5.0)
      Set 'usb-host.suppress-remote-wake' property to 'off' to keep
      'remote wake' as is or to 'on' to remove 'remote wake' on
      4.2 or earlier.
      Signed-off-by: NYuri Benditovich <yuri.benditovich@daynix.com>
      Message-id: 20200108091044.18055-2-yuri.benditovich@daynix.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      7bacaf5f
  2. 11 1月, 2020 1 次提交
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-5.0-20200108' into staging · dc65a5bd
      Peter Maydell 提交于
      ppc patch queue 2020-01-08
      
      Here's another pull request for qemu-5.0 of ppc related changes.
      Highlights are:
       * First parts of support for POWER Secure VMs
       * Rework to clean up how we pass context information to the various
         components of the pnv machine (reduces usage of qdev_get_machine())
       * Assorted cleanups and bugfixes
      
      # gpg: Signature made Wed 08 Jan 2020 05:22:08 GMT
      # gpg:                using RSA key 75F46586AE61A66CC44E87DC6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>" [full]
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>" [full]
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>" [full]
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>" [unknown]
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-5.0-20200108: (26 commits)
        ppc/pnv: fix check on return value of blk_getlength()
        ppc/pnv: check return value of blk_pwrite()
        pnv/psi: Consolidate some duplicated code in pnv_psi_realize()
        pnv/psi: Add device reset hook
        pnv/xive: Deduce the PnvXive pointer from XiveTCTX::xptr
        spapr/xive: Deduce the SpaprXive pointer from XiveTCTX::xptr
        xive: Add a "presenter" link property to the TCTX object
        ppc/pnv: Add a "pnor" const link property to the BMC internal simulator
        ppc/pnv: Add an "nr-threads" property to the base chip class
        xive: Use the XIVE fabric link under the XIVE router
        spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router
        pnv/xive: Use device_class_set_parent_realize()
        ppc/pnv: Introduce a "xics" property under the POWER8 chip
        ppc/pnv: Introduce a "xics" property alias under the PSI model
        spapr/xive: remove redundant check in spapr_match_nvt()
        ppc/pnv: Drop "num-chips" machine property
        ppc440_bamboo.c: remove label from bamboo_load_device_tree()
        spapr.c: remove 'out' label in spapr_dt_cas_updates()
        ppc/spapr: Don't call KVM_SVM_OFF ioctl on TCG
        spapr/xive: Use device_class_set_parent_realize()
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      dc65a5bd
  3. 10 1月, 2020 2 次提交
    • P
      Merge remote-tracking branch... · f38a71b0
      Peter Maydell 提交于
      Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-and-semihosting-090120-2' into staging
      
      Testing fixes and semiconsole support:
      
        - build fix (missing x86-iommu stubs)
        - python fixes for freebsd and OSX
        - nicer reporting of acceptance failures
        - fix build nesting of fp-test (breaks bsds)
        - semihosting clean-ups
        - support for blocking semihosting console
      
      # gpg: Signature made Thu 09 Jan 2020 11:42:51 GMT
      # gpg:                using RSA key 6685AE99E75167BCAFC8DF35FBD0DB095A9E2A44
      # gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>" [full]
      # Primary key fingerprint: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44
      
      * remotes/stsquad/tags/pull-testing-and-semihosting-090120-2:
        tests/tcg: add user version of dumb-as-bricks semiconsole test
        tests/tcg: extract __semi_call into a header and expand
        tests/tcg: add a dumb-as-bricks semihosting console test
        semihosting: add qemu_semihosting_console_inc for SYS_READC
        target/arm: only update pc after semihosting completes
        target/arm: remove unused EXCP_SEMIHOST leg
        testing: don't nest build for fp-test
        travis.yml: install homebrew python for OS X
        travis.yml: duplicate before_script for MacOSX
        travis.yml: Detach build and test steps
        travis.yml: avocado: Print logs of non-pass tests only
        freebsd: use python37
        tests/vm: update openbsd to release 6.6
        hw/i386/x86-iommu: Add missing stubs
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f38a71b0
    • M
      configure: check for gdbus-codegen presence · 0dba4897
      Marc-André Lureau 提交于
      Some distros ship gdbus-codegen separately for gio headers/pc...
      Reported-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20200110112725.689401-1-marcandre.lureau@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      0dba4897
  4. 09 1月, 2020 14 次提交
  5. 08 1月, 2020 20 次提交