1. 16 1月, 2020 1 次提交
  2. 14 1月, 2020 4 次提交
  3. 13 1月, 2020 8 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/usb-20200113-pull-request' into staging · 3c8a6575
      Peter Maydell 提交于
      usb: bugfixes for xhci, usb pass-through and usb redirection.
      
      # gpg: Signature made Mon 13 Jan 2020 13:06:35 GMT
      # gpg:                using RSA key 4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full]
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>" [full]
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full]
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/usb-20200113-pull-request:
        xhci: recheck slot status
        xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS
        usbredir: Prevent recursion in usbredir_write
        usb-redir: remove 'remote wakeup' flag from configuration descriptor
        usb-host: remove 'remote wakeup' flag from configuration descriptor
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3c8a6575
    • P
      Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-01-12' into staging · 981c9b88
      Peter Maydell 提交于
      * Move qtests into a separate directory
      * Build index.html for docs
      
      # gpg: Signature made Sun 12 Jan 2020 11:21:41 GMT
      # gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
      # gpg:                issuer "thuth@redhat.com"
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/huth-gitlab/tags/pull-request-2020-01-12:
        docs: build an index page for the HTML docs
        tests/libqos: Move the libqos files under tests/qtest/
        tests/Makefile: Move qtest-related settings to a separate Makefile.include
        test: Move qtests to a separate directory
        tests/Makefile: Separate unit test dependencies from qtest dependencies
        tests/Makefile: Remove 'tests/' and '$(EXESUF)' from the check-qtest variables
        tests/ptimer: Remove unnecessary inclusion of libqtest.h
        tests/Makefile: test-char does not need libqtest
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      981c9b88
    • G
      xhci: recheck slot status · 236846a0
      Gerd Hoffmann 提交于
      Factor out slot status check into a helper function.  Add an additional
      check after completing transfers.  This is needed in case a guest
      queues multiple transfers in a row and a device unplug happens while
      qemu processes them.
      
      Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1786413Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-id: 20200107083606.12393-1-kraxel@redhat.com
      236846a0
    • C
      xhci: Fix memory leak in xhci_kick_epctx when poweroff GuestOS · 34b9d6a1
      Chen Qun 提交于
      start vm with libvirt, when GuestOS running, enter poweroff command using
      the xhci keyboard, then ASAN shows memory leak stack:
      
      Direct leak of 80 byte(s) in 5 object(s) allocated from:
          #0 0xfffd1e6431cb in __interceptor_malloc (/lib64/libasan.so.4+0xd31cb)
          #1 0xfffd1e107163 in g_malloc (/lib64/libglib-2.0.so.0+0x57163)
          #2 0xaaad39051367 in qemu_sglist_init /qemu/dma-helpers.c:43
          #3 0xaaad3947c407 in pci_dma_sglist_init /qemu/include/hw/pci/pci.h:842
          #4 0xaaad3947c407 in xhci_xfer_create_sgl /qemu/hw/usb/hcd-xhci.c:1446
          #5 0xaaad3947c407 in xhci_setup_packet /qemu/hw/usb/hcd-xhci.c:1618
          #6 0xaaad3948625f in xhci_submit /qemu/hw/usb/hcd-xhci.c:1827
          #7 0xaaad3948625f in xhci_fire_transfer /qemu/hw/usb/hcd-xhci.c:1839
          #8 0xaaad3948625f in xhci_kick_epctx /qemu/hw/usb/hcd-xhci.c:1991
          #9 0xaaad3948f537 in xhci_doorbell_write /qemu/hw/usb/hcd-xhci.c:3158
          #10 0xaaad38bcbfc7 in memory_region_write_accessor /qemu/memory.c:483
          #11 0xaaad38bc654f in access_with_adjusted_size /qemu/memory.c:544
          #12 0xaaad38bd1877 in memory_region_dispatch_write /qemu/memory.c:1482
          #13 0xaaad38b1c77f in flatview_write_continue /qemu/exec.c:3167
          #14 0xaaad38b1ca83 in flatview_write /qemu/exec.c:3207
          #15 0xaaad38b268db in address_space_write /qemu/exec.c:3297
          #16 0xaaad38bf909b in kvm_cpu_exec /qemu/accel/kvm/kvm-all.c:2383
          #17 0xaaad38bb063f in qemu_kvm_cpu_thread_fn /qemu/cpus.c:1246
          #18 0xaaad39821c93 in qemu_thread_start /qemu/util/qemu-thread-posix.c:519
          #19 0xfffd1c8378bb  (/lib64/libpthread.so.0+0x78bb)
          #20 0xfffd1c77616b  (/lib64/libc.so.6+0xd616b)
      Reported-by: NEuler Robot <euler.robot@huawei.com>
      Signed-off-by: NChen Qun <kuhn.chenqun@huawei.com>
      Message-id: 20200110105855.81144-1-kuhn.chenqun@huawei.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      34b9d6a1
    • 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
    • P
      Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-pull-request' into staging · abd5f8bb
      Peter Maydell 提交于
      Fix some uninitialized variable warnings,
      some memory leak warnings and update MAINTAINERS file.
      
      # gpg: Signature made Wed 08 Jan 2020 16:02:11 GMT
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/trivial-branch-pull-request:
        vl: fix memory leak in configure_accelerators
        arm/translate-a64: fix uninitialized variable warning
        nbd: fix uninitialized variable warning
        util/module: fix a memory leak
        MAINTAINERS: Update Yuval Shaia's email address
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      abd5f8bb
    • 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
  4. 12 1月, 2020 8 次提交
  5. 11 1月, 2020 2 次提交
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · b952544f
      Peter Maydell 提交于
      * Compat machines fix (Denis)
      * Command line parsing fixes (Michal, Peter, Xiaoyao)
      * Cooperlake CPU model fixes (Xiaoyao)
      * i386 gdb fix (mkdolata)
      * IOEventHandler cleanup (Philippe)
      * icount fix (Pavel)
      * RR support for random number sources (Pavel)
      * Kconfig fixes (Philippe)
      
      # gpg: Signature made Wed 08 Jan 2020 10:41:00 GMT
      # gpg:                using RSA key BFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (38 commits)
        chardev: Use QEMUChrEvent enum in IOEventHandler typedef
        chardev: use QEMUChrEvent instead of int
        chardev/char: Explicit we ignore some QEMUChrEvent in IOEventHandler
        monitor/hmp: Explicit we ignore a QEMUChrEvent in IOEventHandler
        monitor/qmp: Explicit we ignore few QEMUChrEvent in IOEventHandler
        virtio-console: Explicit we ignore some QEMUChrEvent in IOEventHandler
        vhost-user-blk: Explicit we ignore few QEMUChrEvent in IOEventHandler
        vhost-user-net: Explicit we ignore few QEMUChrEvent in IOEventHandler
        vhost-user-crypto: Explicit we ignore some QEMUChrEvent in IOEventHandler
        ccid-card-passthru: Explicit we ignore QEMUChrEvent in IOEventHandler
        hw/usb/redirect: Explicit we ignore few QEMUChrEvent in IOEventHandler
        hw/usb/dev-serial: Explicit we ignore few QEMUChrEvent in IOEventHandler
        hw/char/terminal3270: Explicit ignored QEMUChrEvent in IOEventHandler
        hw/ipmi: Explicit we ignore some QEMUChrEvent in IOEventHandler
        hw/ipmi: Remove unnecessary declarations
        target/i386: Add missed features to Cooperlake CPU model
        target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES
        target/i386: Fix handling of k_gs_base register in 32-bit mode in gdbstub
        hw/rtc/mc146818: Add missing dependency on ISA Bus
        hw/nvram/Kconfig: Restrict CHRP NVRAM to machines using OpenBIOS or SLOF
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b952544f
    • 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
  6. 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
  7. 09 1月, 2020 14 次提交
  8. 08 1月, 2020 1 次提交
    • C
      vl: fix memory leak in configure_accelerators · adb464ff
      Chen Qun 提交于
      The accel_list forgot to free, the asan output:
      
      Direct leak of 16 byte(s) in 1 object(s) allocated from:
          #0 0xffff919331cb in __interceptor_malloc (/lib64/libasan.so.4+0xd31cb)
          #1 0xffff913f7163 in g_malloc (/lib64/libglib-2.0.so.0+0x57163)
          #2 0xffff91413d9b in g_strsplit (/lib64/libglib-2.0.so.0+0x73d9b)
          #3 0xaaab42fb58e7 in configure_accelerators /qemu/vl.c:2777
          #4 0xaaab42fb58e7 in main /qemu/vl.c:4121
          #5 0xffff8f9b0b9f in __libc_start_main (/lib64/libc.so.6+0x20b9f)
          #6 0xaaab42fc1dab  (/qemu/build/aarch64-softmmu/qemu-system-aarch64+0x8b1dab)
      
      Indirect leak of 4 byte(s) in 1 object(s) allocated from:
          #0 0xffff919331cb in __interceptor_malloc (/lib64/libasan.so.4+0xd31cb)
          #1 0xffff913f7163 in g_malloc (/lib64/libglib-2.0.so.0+0x57163)
          #2 0xffff9141243b in g_strdup (/lib64/libglib-2.0.so.0+0x7243b)
          #3 0xffff91413e6f in g_strsplit (/lib64/libglib-2.0.so.0+0x73e6f)
          #4 0xaaab42fb58e7 in configure_accelerators /qemu/vl.c:2777
          #5 0xaaab42fb58e7 in main /qemu/vl.c:4121
          #6 0xffff8f9b0b9f in __libc_start_main (/lib64/libc.so.6+0x20b9f)
          #7 0xaaab42fc1dab  (/qemu/build/aarch64-softmmu/qemu-system-aarch64+0x8b1dab)
      Reported-by: NEuler Robot <euler.robot@huawei.com>
      Signed-off-by: NChen Qun <kuhn.chenqun@huawei.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-Id: <20200108114207.58084-1-kuhn.chenqun@huawei.com>
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      adb464ff