1. 02 5月, 2016 3 次提交
  2. 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
  3. 14 4月, 2016 2 次提交
  4. 13 4月, 2016 1 次提交
    • P
      qemu: monitor: Add support for ACPI_DEVICE_OST event handling · 650e8d2c
      Peter Krempa 提交于
      The event is emitted on ACPI OSPM Status Indication events.
      
      ACPI standard documentation describes the method as:
      
      This object is an optional control method that is invoked by OSPM to
      indicate processing status to the platform. During device ejection,
      device hot add, or other event processing, OSPM may need to perform
      specific handshaking with the platform. OSPM may also need to indicate
      to the platform its inability to complete a requested operation; for
      example, when a user presses an ejection button for a device that is
      currently in use or is otherwise currently incapable of being ejected.
      In this case, the processing of the ACPI Eject Request notification by
      OSPM fails. OSPM may indicate this failure to the platform through the
      invocation of the _OST control method. As a result of the status
      notification indicating ejection failure, the platform may take certain
      action including reissuing the notification or perhaps turning on an
      appropriate indicator light to signal the failure to the user.
      650e8d2c
  5. 29 3月, 2016 1 次提交
  6. 21 3月, 2016 2 次提交
  7. 01 3月, 2016 1 次提交
  8. 19 2月, 2016 1 次提交
  9. 18 2月, 2016 1 次提交
  10. 17 2月, 2016 2 次提交
  11. 21 1月, 2016 1 次提交
  12. 09 1月, 2016 4 次提交
  13. 26 11月, 2015 2 次提交
    • D
      qemu: convert monitor to use qemuDomainLogContextPtr indirectly · a48539c0
      Daniel P. Berrange 提交于
      Currently the QEMU monitor is given an FD to the logfile. This
      won't work in the future with virtlogd, so it needs to use the
      qemuDomainLogContextPtr instead, but it shouldn't directly
      access that object either. So define a callback that the
      monitor can use for reporting errors from the log file.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a48539c0
    • D
      qemu: unify code for reporting errors from QEMU log files · 69b09921
      Daniel P. Berrange 提交于
      There are two pretty similar functions qemuProcessReadLog and
      qemuProcessReadChildErrors. Both read from the QEMU log file
      and try to strip out libvirt messages. The latter then reports
      an error, while the former lets the callers report an error.
      
      Re-write qemuProcessReadLog so that it uses a single read
      into a dynamically allocated buffer. Then introduce a new
      qemuProcessReportLogError that calls qemuProcessReadLog
      and reports an error.
      
      Convert all callers to use qemuProcessReportLogError.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      69b09921
  14. 19 11月, 2015 1 次提交
  15. 26 9月, 2015 1 次提交
  16. 24 7月, 2015 1 次提交
  17. 21 7月, 2015 1 次提交
    • P
      qemu: Update state of block job to READY only if it actually is ready · eae59247
      Peter Krempa 提交于
      Few parts of the code looked at the current progress of and assumed that
      a two phase blockjob is in the _READY state as soon as the progress
      reached 100% (info.cur == info.end). In current versions of qemu this
      assumption is invalid and qemu exposes a new flag 'ready' in the
      query-block-jobs output that is set to true if the job is actually
      finished.
      
      This patch adds internal data handling for reading the 'ready' flag and
      acting appropriately as long as the flag is present.
      
      While this still doesn't fix the virsh client problem with two phase
      block jobs and the --pivot option, it at least improves the error
      message:
      
      $ virsh blockcommit  --wait --verbose vm vda  --base vda[1] --active --pivot
      Block commit: [100 %]error: failed to pivot job for disk vda
      error: internal error: unable to execute QEMU command 'block-job-complete': The active block job for device 'drive-virtio-disk0' cannot be completed
      
      to
      
      $ virsh blockcommit  --wait --verbose VM vda  --base vda[1] --active --pivot
      Block commit: [100 %]error: failed to pivot job for disk vda
      error: block copy still active: disk 'vda' not ready for pivot yet
      eae59247
  18. 10 7月, 2015 3 次提交
  19. 26 6月, 2015 2 次提交
    • P
      qemu: monitor: Remove qemuMonitorGetBlockExtent · 78aefb52
      Peter Krempa 提交于
      Now that qemuMonitorGetAllBlockStatsInfo collects also wr_highest_offset
      the whole function can be killed.
      78aefb52
    • P
      qemu: monitor: Open-code retrieval of wr_highest_offset · 0d130a01
      Peter Krempa 提交于
      Instead of using qemuMonitorJSONDevGetBlockExtent (which I plan to
      remove later) extract the data in place.
      
      Additionally add a flag that will be set when the wr_highest_offset was
      extracted correctly so that callers can act according to that.
      
      The test case addition should help make sure that everything works.
      0d130a01
  20. 19 6月, 2015 3 次提交
  21. 03 6月, 2015 1 次提交
  22. 28 4月, 2015 3 次提交
  23. 16 4月, 2015 1 次提交
    • P
      qemu: monitor: Refactor and fix monitor checking · c4410852
      Peter Krempa 提交于
      Among all the monitor APIs some where checking if mon is NULL and some
      were not. Since it's possible to have mon equal to NULL in case a second
      call is attempted once entered the monitor. This requires that every
      single API checks for the monitor.
      
      This patch adds a macro that helps checking the state of the monitor and
      either refactors existing checking code to use the macro or adds it in
      case it was missing.
      c4410852
  24. 15 4月, 2015 1 次提交