1. 05 10月, 2017 1 次提交
  2. 29 9月, 2017 3 次提交
    • F
      usb: Use angle brackets for cacard include directive · 13787d59
      Fam Zheng 提交于
      This is a library header, so angle brackets are more appropriate; also
      move the line to before QEMU headers, as is recommended in HACKING.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 20170920085952.3872-1-famz@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      13787d59
    • G
      usb: fix libusb config variable name. · 275d477a
      Gerd Hoffmann 提交于
      Cc: Jan Kiszka <jan.kiszka@siemens.com>
      Fixes: 4e5ee5b2Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Tested-by: NJan Kiszka <jan.kiszka@siemens.com>
      Message-id: 20170926063820.30773-1-kraxel@redhat.com
      275d477a
    • T
      hw/usb/bus: Remove bad object_unparent() from usb_try_create_simple() · f3b2bea3
      Thomas Huth 提交于
      Valgrind detects an invalid read operation when hot-plugging of an
      USB device fails:
      
      $ valgrind x86_64-softmmu/qemu-system-x86_64 -device usb-ehci -nographic -S
      ==30598== Memcheck, a memory error detector
      ==30598== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
      ==30598== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
      ==30598== Command: x86_64-softmmu/qemu-system-x86_64 -device usb-ehci -nographic -S
      ==30598==
      QEMU 2.10.50 monitor - type 'help' for more information
      (qemu) device_add usb-tablet
      (qemu) device_add usb-tablet
      (qemu) device_add usb-tablet
      (qemu) device_add usb-tablet
      (qemu) device_add usb-tablet
      (qemu) device_add usb-tablet
      ==30598== Invalid read of size 8
      ==30598==    at 0x60EF50: object_unparent (object.c:445)
      ==30598==    by 0x580F0D: usb_try_create_simple (bus.c:346)
      ==30598==    by 0x581BEB: usb_claim_port (bus.c:451)
      ==30598==    by 0x582310: usb_qdev_realize (bus.c:257)
      ==30598==    by 0x4CB399: device_set_realized (qdev.c:914)
      ==30598==    by 0x60E26D: property_set_bool (object.c:1886)
      ==30598==    by 0x61235E: object_property_set_qobject (qom-qobject.c:27)
      ==30598==    by 0x61000F: object_property_set_bool (object.c:1162)
      ==30598==    by 0x4567C3: qdev_device_add (qdev-monitor.c:630)
      ==30598==    by 0x456D52: qmp_device_add (qdev-monitor.c:807)
      ==30598==    by 0x470A99: hmp_device_add (hmp.c:1933)
      ==30598==    by 0x3679C3: handle_hmp_command (monitor.c:3123)
      
      The object_unparent() here is not necessary anymore since commit
      69382d8b ("qdev: Fix object reference leak in case device.realize()
      fails"), so let's remove it now.
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-id: 1506526106-30971-1-git-send-email-thuth@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f3b2bea3
  3. 28 9月, 2017 2 次提交
    • P
      Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20170927a' into staging · ab161529
      Peter Maydell 提交于
      Migration pull 2017-09-27
      
      # gpg: Signature made Wed 27 Sep 2017 14:56:23 BST
      # gpg:                using RSA key 0x0516331EBC5BFDE7
      # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A  9FA9 0516 331E BC5B FDE7
      
      * remotes/dgilbert/tags/pull-migration-20170927a:
        migration: Route more error paths
        migration: Route errors up through vmstate_save
        migration: wire vmstate_save_state errors up to vmstate_subsection_save
        migration: Check field save returns
        migration: check pre_save return in vmstate_save_state
        migration: pre_save return int
        migration: disable auto-converge during bulk block migration
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ab161529
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.11-20170927' into staging · 1d893440
      Peter Maydell 提交于
      ppc patch queue 2017-09-27
      
      Contains
       * a number of Mac machine type fixes
       * a number of embedded machine type fixes (preliminary to adding the
         Sam460ex board)
       * a important fix for handling of migration with KVM PR
       * assorted other minor fixes and cleanups
      
      # gpg: Signature made Wed 27 Sep 2017 08:40:48 BST
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.11-20170927: (26 commits)
        macio: use object link between MACIO_IDE and MAC_DBDMA object
        macio: pass channel into MACIOIDEState via qdev property
        mac_dbdma: remove DBDMA_init() function
        mac_dbdma: QOMify
        mac_dbdma: remove unused IO fields from DBDMAState
        spapr: fix the value of SDR1 in kvmppc_put_books_sregs()
        ppc/pnv: check for OPAL firmware file presence
        ppc: remove all unused CPU definitions
        ppc: remove unused CPU definitions
        spapr_pci: make index property mandatory
        macio: convert pmac_ide_ops from old_mmio
        ppc/pnv: Improve macro parenthesization
        spapr: introduce helpers to migrate HPT chunks and the end marker
        ppc/kvm: generalize the use of kvmppc_get_htab_fd()
        ppc/kvm: change kvmppc_get_htab_fd() to return -errno on error
        ppc: Fix OpenPIC model
        ppc/ide/macio: Add missing registers
        ppc/mac: More rework of the DBDMA emulation
        ppc/mac: Advertise a high clock frequency for NewWorld Macs
        ppc: QOMify g3beige machine
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1d893440
  4. 27 9月, 2017 34 次提交