1. 28 4月, 2012 7 次提交
  2. 27 4月, 2012 30 次提交
  3. 26 4月, 2012 3 次提交
    • K
      nbd: Fix uninitialised use of s->sock · b3adf53a
      Kevin Wolf 提交于
      s->sock is assigned only afterwards, so we're really registering an
      aio_fd_handler for file descriptor 0 here. Not exactly what we intended.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b3adf53a
    • G
      usb-uhci: update irq line on reset · aba1f242
      Gerd Hoffmann 提交于
      uhci_reset() clears irq mask and irq status registers, but doesn't
      update the irq line.  Which may result in suspious IRQs after uhci
      reset.  Fix it.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      aba1f242
    • G
      usb: add serial number generator · 9d55d1ad
      Gerd Hoffmann 提交于
      This patch adds a function which creates unique serial numbers for usb
      devices and puts it into use.  Windows guests tend to become unhappy if
      they find two identical usb devices in the system.  Effects range from
      non-functional devices (with yellow exclamation mark in device manager)
      to BSODs.  Handing out unique serial numbers to devices fixes this.
      
      With this patch applied almost all emulated devices get a generated,
      unique serial number.  There are two exceptions:
      
       * usb-storage devices will prefer a user-specified serial number
         and will only get a generated number in case the serial property
         is unset.
       * usb-hid devices keep the fixed serial number "42" as it is used
         to signal "remote wakeup actually works".
         See commit 7b074a22Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      9d55d1ad