1. 23 9月, 2014 2 次提交
  2. 22 9月, 2014 1 次提交
    • M
      usb-storage: Fix how legacy init handles option ID clash · 31376776
      Markus Armbruster 提交于
      usb_msd_init() calls qemu_opts_create() with a made-up ID and false
      fail_if_exists.  If the ID already exists, it happily messes up those
      options, then fails drive_new(), because the BlockDriverState with
      that ID already exists, too.
      
      Reproducer: -drive if=none,id=usb0,format=raw -usbdevice disk:tmp.qcow2
      
      Pass true fail_if_exists to qemu_opts_create(), and if it fails, try
      the next made-up ID.
      
      The reproducer now succeeds, and creates an usb-storage device with ID
      usb1.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      31376776
  3. 10 9月, 2014 1 次提交
    • D
      xhci PCIe endpoint migration compatibility fix · e6043e92
      Dr. David Alan Gilbert 提交于
      Add back the PCIe config capabilities on XHCI cards in non-PCIe slots,
      but only for machine types before 2.1.
      
      This fixes a migration incompatibility in the XHCI PCI devices
      caused by:
         058fdcf5 - xhci: add endpoint cap on express bus only
      
      Note that in fixing it for compatibility with older QEMUs, it breaks
      compatibility with existing QEMU 2.1's on older machine types.
      
      The status before this patch was (if it used an XHCI adapter):
         machine type | source qemu
           any           pre-2.1     - FAIL
           any           2.1...      - PASS
      
      With this patch:
         machine type | source qemu
           any           pre-2.1    - PASS
           pre-2.1       2.1...     - FAIL
           2.1           2.1...     - PASS
      
      A test to trigger it is to add '-device nec-usb-xhci,id=xhci,addr=0x12'
      to the command line.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      e6043e92
  4. 29 8月, 2014 14 次提交
  5. 18 8月, 2014 1 次提交
  6. 15 8月, 2014 1 次提交
  7. 23 7月, 2014 2 次提交
    • G
      usb: mtp: tag root property as experimental · cf679caf
      Gerd Hoffmann 提交于
      Reason: we don't want commit to that interface yet.  Possibly
      the implementation will be switched over to use fsdev.
      Suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      cf679caf
    • L
      vmstate_xhci_event: fix unterminated field list · 3afca1d6
      Laszlo Ersek 提交于
      "vmstate_xhci_event" was introduced in commit 37352df3 ("xhci: add live
      migration support"), and first released in v1.6.0. The field list in this
      VMSD is not terminated with the VMSTATE_END_OF_LIST() macro.
      
      During normal use (ie. migration), the issue is practically invisible,
      because the "vmstate_xhci_event" object (with the unterminated field list)
      is only ever referenced -- via "vmstate_xhci_intr" -- if xhci_er_full()
      returns true, for the "ev_buffer" test. Since that field_exists() check
      (apparently) almost always returns false, we almost never traverse
      "vmstate_xhci_event" during migration, which hides the bug.
      
      However, Amit's vmstate checker forces recursion into this VMSD as well,
      and the lack of VMSTATE_END_OF_LIST() breaks the field list terminator
      check (field->name != NULL) in dump_vmstate_vmsd(). The result is
      undefined behavior, which in my case translates to infinite recursion
      (because the loop happens to overflow into "vmstate_xhci_intr", which then
      links back to "vmstate_xhci_event").
      
      Add the missing terminator.
      Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NAmit Shah <amit.shah@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3afca1d6
  8. 18 7月, 2014 1 次提交
  9. 11 7月, 2014 1 次提交
    • G
      mtp: linux guest detection fix. · 13d54125
      Gerd Hoffmann 提交于
      Attach a name to the MTP interface (android phones have this too).
      
      With this patch recent linux guests such as fedora 20 happily detect and
      use the device.  It shows up in nautilus file manager automatically, and
      simple-mtpfs can mount it.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      13d54125
  10. 01 7月, 2014 3 次提交
  11. 30 6月, 2014 1 次提交
    • R
      serial: poll the serial console with G_IO_HUP · e02bc6de
      Roger Pau Monne 提交于
      On FreeBSD polling a master pty while the other end is not connected
      with G_IO_OUT only results in an endless wait. This is different from
      the Linux behaviour, that returns immediately. In order to demonstrate
      this, I have the following example code:
      
      http://xenbits.xen.org/people/royger/test_poll.c
      
      When executed on Linux:
      
      $ ./test_poll
      In callback
      
      On FreeBSD instead, the callback never gets called:
      
      $ ./test_poll
      
      So, in order to workaround this, poll the source with G_IO_HUP (which
      makes the code behave the same way on both Linux and FreeBSD).
      Signed-off-by: NRoger Pau Monné <roger.pau@citrix.com>
      Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
      Cc: Michael Tokarev <mjt@tls.msk.ru>
      Cc: "Andreas Färber" <afaerber@suse.de>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: xen-devel@lists.xenproject.org
      [Add hw/char/cadence_uart.c too. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e02bc6de
  12. 24 6月, 2014 1 次提交
  13. 16 6月, 2014 1 次提交
  14. 13 6月, 2014 1 次提交
  15. 02 6月, 2014 7 次提交
  16. 26 5月, 2014 2 次提交