1. 12 10月, 2016 1 次提交
  2. 20 7月, 2016 1 次提交
  3. 07 6月, 2016 1 次提交
  4. 23 3月, 2016 1 次提交
    • M
      include/qemu/osdep.h: Don't include qapi/error.h · da34e65c
      Markus Armbruster 提交于
      Commit 57cb38b3 included qapi/error.h into qemu/osdep.h to get the
      Error typedef.  Since then, we've moved to include qemu/osdep.h
      everywhere.  Its file comment explains: "To avoid getting into
      possible circular include dependencies, this file should not include
      any other QEMU headers, with the exceptions of config-host.h,
      compiler.h, os-posix.h and os-win32.h, all of which are doing a
      similar job to this file and are under similar constraints."
      qapi/error.h doesn't do a similar job, and it doesn't adhere to
      similar constraints: it includes qapi-types.h.  That's in excess of
      100KiB of crap most .c files don't actually need.
      
      Add the typedef to qemu/typedefs.h, and include that instead of
      qapi/error.h.  Include qapi/error.h in .c files that need it and don't
      get it now.  Include qapi-types.h in qom/object.h for uint16List.
      
      Update scripts/clean-includes accordingly.  Update it further to match
      reality: replace config.h by config-target.h, add sysemu/os-posix.h,
      sysemu/os-win32.h.  Update the list of includes in the qemu/osdep.h
      comment quoted above similarly.
      
      This reduces the number of objects depending on qapi/error.h from "all
      of them" to less than a third.  Unfortunately, the number depending on
      qapi-types.h shrinks only a little.  More work is needed for that one.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      [Fix compilation without the spice devel packages. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da34e65c
  5. 18 3月, 2016 1 次提交
  6. 29 2月, 2016 1 次提交
  7. 29 1月, 2016 1 次提交
    • P
      usb: Clean up includes · e532b2e0
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1453832250-766-20-git-send-email-peter.maydell@linaro.org
      e532b2e0
  8. 06 11月, 2015 1 次提交
  9. 11 9月, 2015 2 次提交
  10. 23 6月, 2015 4 次提交
  11. 12 6月, 2015 1 次提交
    • J
      migration: Use normal VMStateDescriptions for Subsections · 5cd8cada
      Juan Quintela 提交于
      We create optional sections with this patch.  But we already have
      optional subsections.  Instead of having two mechanism that do the
      same, we can just generalize it.
      
      For subsections we just change:
      
      - Add a needed function to VMStateDescription
      - Remove VMStateSubsection (after removal of the needed function
        it is just a VMStateDescription)
      - Adjust the whole tree, moving the needed function to the corresponding
        VMStateDescription
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      5cd8cada
  12. 08 5月, 2015 1 次提交
  13. 18 2月, 2015 1 次提交
  14. 26 1月, 2015 1 次提交
  15. 15 10月, 2014 2 次提交
  16. 23 9月, 2014 2 次提交
  17. 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
  18. 26 5月, 2014 1 次提交
  19. 23 8月, 2013 1 次提交
  20. 22 8月, 2013 1 次提交
  21. 01 8月, 2013 1 次提交
  22. 29 7月, 2013 1 次提交
  23. 16 4月, 2013 1 次提交
  24. 03 4月, 2013 2 次提交
  25. 27 3月, 2013 2 次提交
  26. 22 2月, 2013 1 次提交
  27. 19 2月, 2013 1 次提交
  28. 11 1月, 2013 1 次提交
    • A
      Make all static TypeInfos const · 8c43a6f0
      Andreas Färber 提交于
      Since 39bffca2 (qdev: register all
      types natively through QEMU Object Model), TypeInfo as used in
      the common, non-iterative pattern is no longer amended with information
      and should therefore be const.
      
      Fix the documented QOM examples:
      
       sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h
      
      Since frequently the wrong examples are being copied by contributors of
      new devices, fix all types in the tree:
      
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c
      
      This also avoids to piggy-back these changes onto real functional
      changes or other refactorings.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8c43a6f0
  29. 08 1月, 2013 1 次提交
    • H
      usbredir: Add support for buffered bulk input (v2) · b2d1fe67
      Hans de Goede 提交于
      Buffered bulk mode is intended for bulk *input* endpoints, where the data is
      of a streaming nature (not part of a command-response protocol). These
      endpoints' input buffer may overflow if data is not read quickly enough.
      So in buffered bulk mode the usb-host takes care of the submitting and
      re-submitting of bulk transfers.
      
      Buffered bulk mode is necessary for reliable operation with the bulk in
      endpoints of usb to serial convertors. Unfortunatelty buffered bulk input
      mode will only work with certain devices, therefor this patch also adds a
      usb-id table to enable it for devices which need it, while leaving the
      bulk ep handling for other devices unmodified.
      
      Note that the bumping of the required usbredir from 0.5.3 to 0.6 does
      not mean that we will now need a newer usbredir release then qemu-1.3,
      .pc files reporting 0.5.3 have only ever existed in usbredir builds directly
      from git, so qemu-1.3 needs the 0.6 release too.
      
      Changes in v2:
      -Split of quirk handling into quirks.c
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      b2d1fe67
  30. 07 1月, 2013 3 次提交