Skip to content
Snippets Groups Projects
  1. May 17, 2022
  2. Apr 27, 2022
  3. Apr 25, 2022
  4. Apr 22, 2022
  5. Mar 02, 2022
  6. Nov 09, 2021
  7. Nov 01, 2021
  8. Sep 27, 2021
  9. Jun 11, 2021
  10. Jun 08, 2021
  11. May 26, 2021
  12. May 25, 2021
  13. Mar 23, 2021
  14. Mar 19, 2021
  15. Mar 18, 2021
  16. Jan 23, 2021
    • Paolo Bonzini's avatar
      hmp: remove "change vnc TARGET" command · cfb5387a
      Paolo Bonzini authored
      
      The HMP command \"change vnc TARGET\" is messy:
      
      - it takes an ugly shortcut to determine if the option has an "id",
      with incorrect results if "id=" is not preceded by an unescaped
      comma.
      
      - it deletes the existing QemuOpts and does not try to rollback
      if the parsing fails (which is not causing problems, but only due to
      how VNC options are parsed)
      
      - because it uses the same parsing function as "-vnc", it forces
      the latter to not support "-vnc help".
      
      On top of this, it uses a deprecated QMP command, thus getting in
      the way of removing the QMP command.  Since the usecase for the
      command is not clear, just remove it and send "change vnc password"
      directly to the QMP "change-vnc-password" command.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Reviewed-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Message-Id: <20210120144235.345983-2-pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      cfb5387a
  17. Dec 18, 2020
  18. Dec 15, 2020
  19. Dec 09, 2020
  20. Nov 04, 2020
  21. Oct 09, 2020
    • Kevin Wolf's avatar
      block: Convert 'block_resize' to coroutine · eb94b81a
      Kevin Wolf authored
      
      block_resize performs some I/O that could potentially take quite some
      time, so use it as an example for the new 'coroutine': true annotation
      in the QAPI schema.
      
      bdrv_truncate() requires that we're already in the right AioContext for
      the BlockDriverState if called in coroutine context. So instead of just
      taking the AioContext lock, move the QMP handler coroutine to the
      context.
      
      Call blk_unref() only after switching back because blk_unref() may only
      be called in the main thread.
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Message-Id: <20201005155855.256490-15-kwolf@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      eb94b81a
  22. Oct 06, 2020
  23. Sep 29, 2020
  24. Sep 17, 2020
  25. Jun 17, 2020
    • David Hildenbrand's avatar
      hmp: Make json format optional for qom-set · 2d9e3dd9
      David Hildenbrand authored
      
      Commit 7d2ef6dc ("hmp: Simplify qom-set") switched to the json
      parser, making it possible to specify complex types. However, with this
      change it is no longer possible to specify proper sizes (e.g., 2G, 128M),
      turning the interface harder to use for properties that consume sizes.
      
      Let's switch back to the previous handling and allow to specify passing
      json via the "-j" parameter.
      
      Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: "Daniel P. Berrangé" <berrange@redhat.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
      Message-Id: <20200610075153.33892-1-david@redhat.com>
      Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      2d9e3dd9
  26. Jun 01, 2020
  27. Mar 12, 2020
  28. Mar 09, 2020
  29. Mar 06, 2020
  30. Dec 19, 2019
    • Kevin Wolf's avatar
      hmp: Allow using qdev ID for qemu-io command · 89b6fc45
      Kevin Wolf authored
      
      In order to issue requests on an existing BlockBackend with the
      'qemu-io' HMP command, allow specifying the BlockBackend not only with a
      BlockBackend name, but also with a qdev ID/QOM path for a device that
      owns the (possibly anonymous) BlockBackend.
      
      Because qdev names could be conflicting with BlockBackend and node
      names, introduce a -d option to explicitly address a device. If the
      option is not given, a BlockBackend or a node is addressed.
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      89b6fc45
  31. Aug 21, 2019
  32. Jul 02, 2019
  33. Jun 17, 2019
  34. May 01, 2019
    • Dr. David Alan Gilbert's avatar
      hmp: gva2gpa debug command · 574d9693
      Dr. David Alan Gilbert authored
      
      Add a gva2gpa command purely for debug which performs
      address translation on the gva, the existing gpa2hva
      command can then also be used to find it in the qemu
      userspace; e.g.
      
      (qemu) info registers
      .... RSP=ffffffff81c03e98
      ....
      (qemu) gva2gpa 0xffffffff81c03e98
      gpa: 0x1c03e98
      (qemu) gpa2hva 0x1c03e98
      Host virtual address for 0x1c03e98 (pc.ram) is 0x7f0599a03e98
      (qemu) x/10x 0xffffffff81c03e98
      ffffffff81c03e98: 0x81c03eb8 0xffffffff 0x8101ea3f 0xffffffff
      ffffffff81c03ea8: 0x81d27b00 0xffffffff 0x00000000 0x00000000
      ffffffff81c03eb8: 0x81c03ec8 0xffffffff
      
      gdb -p ...qemu...
      (gdb) x/10x 0x7f0599a03e98
      0x7f0599a03e98:	0x81c03eb8	0xffffffff	0x8101ea3f	0xffffffff
      0x7f0599a03ea8:	0x81d27b00	0xffffffff	0x00000000	0x00000000
      0x7f0599a03eb8:	0x81c03ec8	0xffffffff
      
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-Id: <20190412152652.827-1-dgilbert@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      574d9693
Loading