1. 30 7月, 2013 1 次提交
  2. 27 7月, 2013 1 次提交
  3. 10 7月, 2013 2 次提交
    • M
      qemu-option: Fix qemu_opts_set_defaults() for corner cases · 6d4cd408
      Markus Armbruster 提交于
      Commit 4f6dd9af changed the initialization of opts in opts_parse() to
      this:
      
          if (defaults) {
              if (!id && !QTAILQ_EMPTY(&list->head)) {
                  opts = qemu_opts_find(list, NULL);
              } else {
                  opts = qemu_opts_create(list, id, 0);
              }
          } else {
              opts = qemu_opts_create(list, id, 1);
          }
      
      Same as before for !defaults.
      
      If defaults is true, and params has no ID, and options exist, we use
      the first assignment.  It sets opts to null if all options have an ID.
      opts_parse() then returns null.  qemu_opts_set_defaults() asserts the
      value is non-null.  It's the only caller that passes true for
      defaults.
      
      To reproduce, try "-M xenpv -machine id=foo" (yes, "id=foo" is silly,
      but it shouldn't crash).
      
      I believe the function attempts to do the following:
      
          If options don't yet exist, create new options
          Else, if defaults, modify the existing options
          Else, if list->merge_lists, modify the existing options
          Else, fail
      
      A straightforward call of qemu_opts_create() does exactly that.
      
      Cc: Jan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1372943363-24081-3-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6d4cd408
    • M
      qemu-option: Fix qemu_opts_find() for null id arguments · 96bc97eb
      Markus Armbruster 提交于
      Crashes when the first list member has an ID.  Admittedly nonsensical
      reproducer:
      
      $ qemu-system-x86_64 -nodefaults -machine id=foo -machine ""
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1372943363-24081-2-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      96bc97eb
  4. 20 6月, 2013 1 次提交
  5. 15 3月, 2013 1 次提交
  6. 11 2月, 2013 1 次提交
    • M
      qemu-option: Disable two helpful messages that got broken recently · 7216ae3d
      Markus Armbruster 提交于
      commit 8be7e7e4 and commit ec7b2ccb messed up the ordering of error
      message and the helpful explanation that should follow it, like this:
      
          $ qemu-system-x86_64 --nodefaults -S --vnc :0 --chardev null,id=,
          Identifiers consist of letters, digits, '-', '.', '_', starting with a letter.
          qemu-system-x86_64: -chardev null,id=,: Parameter 'id' expects an identifier
      
          $ qemu-system-x86_64 --nodefaults -S --vnc :0 --machine kvm_shadow_mem=dunno
          You may use k, M, G or T suffixes for kilobytes, megabytes, gigabytes and terabytes.
          qemu-system-x86_64: -machine kvm_shadow_mem=dunno: Parameter 'kvm_shadow_mem' expects a size
      
      Pity.  Disable them for now.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1360354939-10994-5-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      7216ae3d
  7. 30 1月, 2013 1 次提交
  8. 13 1月, 2013 1 次提交
  9. 19 12月, 2012 2 次提交
  10. 11 12月, 2012 5 次提交
  11. 03 8月, 2012 1 次提交
    • P
      Support 'help' as a synonym for '?' in command line options · c8057f95
      Peter Maydell 提交于
      For command line options which permit '?' meaning 'please list the
      permitted values', add support for 'help' as a synonym, by abstracting
      the check out into a helper function.
      
      This change means that in some cases where we were being lazy in
      our string parsing, "?junk" will now be rejected as an invalid option
      rather than being (undocumentedly) treated the same way as "?".
      
      Update the documentation to use 'help' rather than '?', since '?'
      is a shell metacharacter and thus prone to fail confusingly if there
      is a single character filename in the current working directory and
      the '?' has not been escaped. It's therefore better to steer users
      towards 'help', though '?' is retained for backwards compatibility.
      
      We do not, however, update the output of the system emulator's -help
      (or any documentation autogenerated from the qemu-options.hx which
      is the source of the -help text) because libvirt parses our -help
      output and will break. At a later date when QEMU provides a better
      interface so libvirt can avoid having to do this, we can update the
      -help text too.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c8057f95
  12. 23 7月, 2012 1 次提交
  13. 05 6月, 2012 9 次提交
  14. 17 2月, 2012 1 次提交
  15. 02 2月, 2012 1 次提交
  16. 13 1月, 2012 1 次提交
  17. 02 12月, 2011 1 次提交
  18. 31 10月, 2011 1 次提交
  19. 21 8月, 2011 1 次提交
  20. 14 12月, 2010 2 次提交
  21. 06 7月, 2010 1 次提交
  22. 02 7月, 2010 1 次提交
  23. 15 6月, 2010 2 次提交
  24. 28 5月, 2010 1 次提交