Skip to content
Snippets Groups Projects
  1. Sep 15, 2022
  2. Jul 20, 2022
    • Hyman Huang's avatar
      softmmu/dirtylimit: Implement dirty page rate limit · f3b2e38c
      Hyman Huang authored
      
      Implement dirtyrate calculation periodically basing on
      dirty-ring and throttle virtual CPU until it reachs the quota
      dirty page rate given by user.
      
      Introduce qmp commands "set-vcpu-dirty-limit",
      "cancel-vcpu-dirty-limit", "query-vcpu-dirty-limit"
      to enable, disable, query dirty page limit for virtual CPU.
      
      Meanwhile, introduce corresponding hmp commands
      "set_vcpu_dirty_limit", "cancel_vcpu_dirty_limit",
      "info vcpu_dirty_limit" so the feature can be more usable.
      
      "query-vcpu-dirty-limit" success depends on enabling dirty
      page rate limit, so just add it to the list of skipped
      command to ensure qmp-cmd-test run successfully.
      
      Signed-off-by: default avatarHyman Huang(黄勇) <huangy81@chinatelecom.cn>
      Acked-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Message-Id: <4143f26706d413dd29db0b672fe58b3d3fbe34bc.1656177590.git.huangy81@chinatelecom.cn>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      f3b2e38c
  3. Jun 14, 2022
  4. May 17, 2022
  5. Apr 27, 2022
  6. Apr 25, 2022
  7. Apr 22, 2022
  8. Mar 02, 2022
  9. Nov 09, 2021
  10. Nov 01, 2021
  11. Sep 27, 2021
  12. Jun 11, 2021
  13. Jun 08, 2021
  14. May 26, 2021
  15. May 25, 2021
  16. Mar 23, 2021
  17. Mar 19, 2021
  18. Mar 18, 2021
  19. 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
  20. Dec 18, 2020
  21. Dec 15, 2020
  22. Dec 09, 2020
  23. Nov 04, 2020
  24. 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
  25. Oct 06, 2020
  26. Sep 29, 2020
  27. Sep 17, 2020
  28. 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
  29. Jun 01, 2020
  30. Mar 12, 2020
  31. Mar 09, 2020
  32. Mar 06, 2020
  33. 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
  34. Aug 21, 2019
  35. Jul 02, 2019
Loading