1. 19 4月, 2010 1 次提交
  2. 19 3月, 2010 1 次提交
  3. 17 3月, 2010 2 次提交
    • M
      qemu-option: Move the implied first name into QemuOptsList · 8212c64f
      Markus Armbruster 提交于
      We sometimes permit omitting the first option name, for example
      -device foo is short for -device driver=foo.  The name to use
      ("driver" in the example) is passed as argument to qemu_opts_parse().
      For each QemuOptsList, we use at most one such name.
      
      Move the name into QemuOptsList, and pass whether to permit the
      abbreviation.  This ensures continued consistency, and simplifies the
      commit after next in this series.
      8212c64f
    • M
      qemu-option: Functions to convert to/from QDict · 01e7f188
      Markus Armbruster 提交于
      The functions are somewhat restricted.  Good enough for the job at
      hand.  We'll extend them when we need more.
      01e7f188
  4. 16 3月, 2010 1 次提交
    • M
      error: Infrastructure to track locations for error reporting · 827b0813
      Markus Armbruster 提交于
      New struct Location holds a location.  So far, the only location is
      LOC_NONE, so this doesn't do anything useful yet.
      
      Passing the current location all over the place would be too
      cumbersome.  Hide it away in static cur_loc instead, and provide
      accessors.  Print it in error_report().
      
      Store it in QError, and print it in qerror_print().
      
      Store it in QemuOpt, for use by qemu_opts_foreach().  This makes
      error_report() do the right thing when it runs within
      qemu_opts_foreach().
      
      We may still have to store it in other data structures holding user
      input for better error messages.  Left for another day.
      827b0813
  5. 22 2月, 2010 1 次提交
  6. 04 2月, 2010 1 次提交
  7. 12 12月, 2009 1 次提交
  8. 04 12月, 2009 1 次提交
  9. 07 10月, 2009 4 次提交
  10. 27 9月, 2009 1 次提交
  11. 26 9月, 2009 1 次提交
    • M
      Fix coding style issue · 3df04ac3
      Mark McLoughlin 提交于
      Replace:
      
        if (-1 == foo())
      
      with:
      
        if (foo() == -1)
      
      While this coding style is not in direct contravention of our currently
      ratified CODING_STYLE treaty, it could be argued that the Article 3 of
      the European Convention on Human Rights (prohibiting torture and "inhuman
      or degrading treatment") reads on the matter.
      
      [This commit message was brought to you without humour, as is evidenced
      by the absence of any emoticons]
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      Cc: Avi Kivity <avi@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      3df04ac3
  12. 12 9月, 2009 1 次提交
    • B
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl 提交于
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
  13. 11 9月, 2009 1 次提交
  14. 10 9月, 2009 1 次提交
  15. 11 8月, 2009 2 次提交
  16. 30 7月, 2009 1 次提交
  17. 28 7月, 2009 4 次提交
  18. 06 6月, 2009 1 次提交
  19. 22 5月, 2009 1 次提交
    • K
      Create qemu-option.h · d3f24367
      Kevin Wolf 提交于
      This patch creates a new header file and the corresponding implementation file
      for parsing of parameter strings for options (like used in -drive). Part of
      this is code moved from vl.c (so qemu-img can use it later).
      
      The idea is to have a data structure describing all accepted parameters. When
      parsing a parameter string, the structure is copied and filled with the
      parameter values.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d3f24367