1. 02 8月, 2016 3 次提交
    • J
      qemu: Make QEMU_DRIVE_HOST_PREFIX more private · dd0dbe1d
      John Ferlan 提交于
      Move QEMU_DRIVE_HOST_PREFIX into the qemu_alias.c to dissuade future
      callers from using it. Create qemuAliasDiskDriveSkipPrefix in order
      to handle the current consumers that desire to check if an alias has
      the drive- prefix and "get beyond it" in order to get the disk alias.
      dd0dbe1d
    • J
      qemu: Use qemuAliasFromDisk instead of qemuDeviceDriveHostAlias · 13effcaf
      John Ferlan 提交于
      Since we already have a function that will generate the drivestr from
      the alias, let's use it and remove the qemuDeviceDriveHostAlias.
      
      Move the QEMU_DRIVE_HOST_PREFIX definition into qemu_alias.h
      
      Also alter qemuAliasFromDisk to use the QEMU_DRIVE_HOST_PREFIX instead
      of "drive-%s".
      13effcaf
    • J
      qemu: Remove generation of drive alias from qcow passphrase backends · f8d49d5b
      John Ferlan 提交于
      Rather than pass the disks[i]->info.alias to qemuMonitorSetDrivePassphrase
      and then generate the "drive-%s" alias from that, let's use qemuAliasFromDisk
      prior to the call to generate the drive alias and then pass that along
      thus removing the need to generate the alias from the monitor code.
      f8d49d5b
  2. 26 7月, 2016 2 次提交
  3. 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
  4. 22 6月, 2016 5 次提交
  5. 10 6月, 2016 1 次提交
  6. 09 6月, 2016 4 次提交
  7. 01 6月, 2016 1 次提交
  8. 25 5月, 2016 2 次提交
  9. 20 5月, 2016 1 次提交
  10. 17 5月, 2016 1 次提交
    • J
      qemu: More qemu_monitor_json cleanups · 52760707
      John Ferlan 提交于
      Recent adjustments to the code produced a litany of coverity false
      positives, but only because the "standard" procedure of setting a
      variable to NULL after it was assigned to something else and keeping
      the *Free/*FREE call in the cleanup path wasn't kept. So this patch
      makes those adjustments (assign variable to NULL and remove the if
      'ret < 0' condition to clean it up).
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      52760707
  11. 09 5月, 2016 1 次提交
  12. 05 5月, 2016 1 次提交
  13. 03 5月, 2016 4 次提交
  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. 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
  18. 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
  19. 22 3月, 2016 1 次提交
    • P
      qemu-hotplug: fix eject media · 0f4d3172
      Pavel Hrdina 提交于
      QEMU changed the error message to:
      
              "Tray of device 'drive-sata0-0-1' is not open"
      
      and they may change the error massage in the future.
      
      This updates the code to not depend on the text from the error message
      but only on error itself.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      0f4d3172
  20. 21 3月, 2016 2 次提交
  21. 01 3月, 2016 1 次提交
  22. 11 2月, 2016 1 次提交
    • J
      qemu: Split the command parsing routines into own module · d860b2f5
      John Ferlan 提交于
      Extract out the qemuParseCommandLine{String|Pid} into their own
      separate module - taking with it all the various static functions.
      
      Causes a ripple effect with a few other modules to include the
      new qemu_parse_command.h.
      
      Narrowed down the list of #include's in the split out module to
      those that are necessary for build.
      d860b2f5
  23. 21 1月, 2016 1 次提交
  24. 09 1月, 2016 1 次提交