1. 06 12月, 2016 1 次提交
  2. 09 11月, 2016 1 次提交
  3. 26 10月, 2016 1 次提交
    • J
      qemu: Add length for bps/iops throttling parameters to driver · 223438a2
      John Ferlan 提交于
      Add support for a duration/length for the bps/iops and friends.
      
      Modify the API in order to add the "blkdeviotune." specific definitions
      for the iotune throttling duration/length options
      
          total_bytes_sec_max_length
          write_bytes_sec_max_length
          read_bytes_sec_max_length
          total_iops_sec_max_length
          write_iops_sec_max_length
          read_iops_sec_max_length
      223438a2
  4. 22 9月, 2016 1 次提交
  5. 25 8月, 2016 2 次提交
    • P
      qemu: monitor: Add support for calling query-hotpluggable-cpus · 1213f0f8
      Peter Krempa 提交于
      Add support for retrieving information regarding hotpluggable cpu units
      supported by qemu. Data returned by the command carries information
      needed to figure out the granularity of hotplug, the necessary cpu type
      name and the topology information.
      
      Note that qemu doesn't specify any particular order of the entries thus
      it's necessary sort them by socket_id, core_id and thread_id to the
      order libvirt expects.
      1213f0f8
    • P
      qemu: monitor: Return struct from qemuMonitor(Text|Json)QueryCPUs · b3180425
      Peter Krempa 提交于
      Prepare to extract more data by returning an array of structs rather than
      just an array of thread ids. Additionally report fatal errors separately
      from qemu not being able to produce data.
      b3180425
  6. 04 8月, 2016 2 次提交
  7. 25 7月, 2016 1 次提交
    • P
      qemu_monitor_json: add support to search QOM device path by device alias · 4a585a88
      Pavel Hrdina 提交于
      Commit ce745914 introduced detection of actual video ram sizes to fix migration
      if QEMU decide to modify the values provided by libvirt.  This works perfectly
      for domains with number of video devices up to two.
      
      If there are more than two video devices in the guest all the secondary devices
      in the XML will have the same memory values.  This is because our current code
      search for QOM device path only by the device type name and all the secondary
      video devices has the same name "qxl".
      
      This patch introduces a new search function that will try to search a QOM device
      path using also device's alias if the alias is available. After that it will
      fallback to the old recursive code if the alias search found no results.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1358728Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      4a585a88
  8. 22 6月, 2016 1 次提交
  9. 09 6月, 2016 1 次提交
    • J
      qemu: Refactor qemuMonitorJSONGetCPUx86Data · 2a8d40f4
      Jiri Denemark 提交于
      This patch splits qemuMonitorJSONGetCPUx86Data in three functions:
      
      - qemuMonitorJSONCheckCPUx86 checks if QEMU supports reporting CPUID
        features for a guest CPU
      
      - qemuMonitorJSONParseCPUx86Features parses CPUID features from a JSON
        array
      
      - qemuMonitorJSONGetCPUx86Data gets the requested guest CPU property
        from QOM and uses qemuMonitorJSONParseCPUx86Features to parse it
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      2a8d40f4
  10. 25 5月, 2016 1 次提交
  11. 20 5月, 2016 1 次提交
  12. 05 5月, 2016 1 次提交
  13. 03 5月, 2016 1 次提交
  14. 02 5月, 2016 2 次提交
  15. 20 4月, 2016 1 次提交
    • A
      qemu: Probe GIC capabilities · 12209ba5
      Andrea Bolognani 提交于
      QEMU introduced the query-gic-capabilities QMP command
      with commit 4468d4e0f383: use the command, if available,
      to probe available GIC capabilities.
      
      The information obtained is stored in a virQEMUCaps
      instance, and will be later used to fill in a
      virDomainCaps instance.
      12209ba5
  16. 14 4月, 2016 1 次提交
  17. 29 3月, 2016 1 次提交
    • P
      qemu: monitor: Remove JSON impls of drive_add and drive_del · 9f7d9891
      Peter Krempa 提交于
      qemu won't ever add those functions directly to QMP. They will be
      replaced with 'blockdev-add' and 'blockdev-del' eventually. At this time
      there's no need to keep the stubs around.
      
      Additionally the drive_del stub in JSON contained dead code in the
      attempt to report errors. (VIR_ERR_OPERATION_UNSUPPORTED was never
      reported). Since the text impl does have the same message it is reported
      anyways.
      9f7d9891
  18. 21 3月, 2016 1 次提交
  19. 01 3月, 2016 1 次提交
  20. 09 1月, 2016 1 次提交
  21. 19 11月, 2015 1 次提交
  22. 26 9月, 2015 1 次提交
  23. 26 6月, 2015 1 次提交
  24. 19 6月, 2015 1 次提交
    • J
      qemu: Refactor qemuMonitorBlockJobInfo · 3a18bd2d
      Jiri Denemark 提交于
      "query-block-jobs" QMP command returns all running block jobs at once,
      while qemuMonitorBlockJobInfo would only report one. This is not very
      nice in case we need to check several block jobs. This patch refactors
      the monitor code to always parse all block jobs and store them in a
      hash.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      3a18bd2d
  25. 05 6月, 2015 3 次提交
  26. 03 6月, 2015 1 次提交
  27. 14 4月, 2015 3 次提交
  28. 09 4月, 2015 1 次提交
  29. 26 3月, 2015 1 次提交
  30. 23 3月, 2015 1 次提交
  31. 18 3月, 2015 1 次提交
    • E
      qemu: read backing chain names from qemu · f9ea3d60
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1199182 documents that
      after a series of disk snapshots into existing destination images,
      followed by active commits of the top image, it is possible for
      qemu 2.2 and earlier to end up tracking a different name for the
      image than what it would have had when opening the chain afresh.
      That is, when starting with the chain 'a <- b <- c', the name
      associated with 'b' is how it was spelled in the metadata of 'c',
      but when starting with 'a', taking two snapshots into 'a <- b <- c',
      then committing 'c' back into 'b', the name associated with 'b' is
      now the name used when taking the first snapshot.
      
      Sadly, older qemu doesn't know how to treat different spellings of
      the same filename as identical files (it uses strcmp() instead of
      checking for the same inode), which means libvirt's attempt to
      commit an image using solely the names learned from qcow2 metadata
      fails with a cryptic:
      
      error: internal error: unable to execute QEMU command 'block-commit': Top image file /tmp/images/c/../b/b not found
      
      even though the file exists.  Trying to teach libvirt the rules on
      which name qemu will expect is not worth the effort (besides, we'd
      have to remember it across libvirtd restarts, and track whether a
      file was opened via metadata or via snapshot creation for a given
      qemu process); it is easier to just always directly ask qemu what
      string it expects to see in the first place.
      
      As a safety valve, we validate that any name returned by qemu
      still maps to the same local file as we have tracked it, so that
      a compromised qemu cannot accidentally cause us to act on an
      incorrect file.
      
      * src/qemu/qemu_monitor.h (qemuMonitorDiskNameLookup): New
      prototype.
      * src/qemu/qemu_monitor_json.h (qemuMonitorJSONDiskNameLookup):
      Likewise.
      * src/qemu/qemu_monitor.c (qemuMonitorDiskNameLookup): New function.
      * src/qemu/qemu_monitor_json.c (qemuMonitorJSONDiskNameLookup)
      (qemuMonitorJSONDiskNameLookupOne): Likewise.
      * src/qemu/qemu_driver.c (qemuDomainBlockCommit)
      (qemuDomainBlockJobImpl): Use it.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      f9ea3d60
  32. 11 3月, 2015 2 次提交