1. 08 3月, 2016 1 次提交
    • J
      Introduce job completed event · f2893001
      Jiri Denemark 提交于
      The VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event will be triggered once a job
      (such as migration) finishes and it will contain statistics for the job
      as one would get by calling virDomainGetJobStats. Thanks to this event
      it is now possible to get statistics of a completed migration of a
      transient domain on the source host.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      f2893001
  2. 26 2月, 2016 1 次提交
  3. 22 2月, 2016 1 次提交
  4. 19 2月, 2016 2 次提交
  5. 18 2月, 2016 1 次提交
    • P
      virsh: Remove <backingStore> when changing cdrom media source · 3ad5186e
      Peter Krempa 提交于
      Since the code is changing the source image path by modifying the
      existing XML snippet the <backingStore> stays in place.
      
      As <backingStore> is relevant to the <source> part of the image, the
      update of that part makes the element invalid.
      
      CD/floppy images usually don't have a backing chain and the element is
      currently ignored though but it might start being used in the future so
      let's start behaving correctly.
      
      Drop the <backingStore> subtree once we want to update the XML.
      
      Before this patch, you'd get:
      $ virsh change-media --eject --print-xml 10 hdc
      <disk type="file" device="cdrom">
            <driver name="qemu" type="qcow2"/>
      
            <backingStore type="file" index="1">
              <format type="qcow2"/>
              <source file="/var/lib/libvirt/images/vm.1436949097"/>
              <backingStore/>
            </backingStore>
            <target dev="hdc" bus="ide"/>
            ...
          </disk>
      
      After:
      
       $ virsh change-media --eject --print-xml 10 hdc
      <disk type="file" device="cdrom">
            <driver name="qemu" type="qcow2"/>
      
            <target dev="hdc" bus="ide"/>
            ...
          </disk>
      3ad5186e
  6. 15 2月, 2016 1 次提交
    • P
      vsh: Replace vshPrint macro with function · 27fa42b2
      Peter Krempa 提交于
      The macro would eat the first parameter. In some cases the format string
      for vshPrint was eaten. In other cases the calls referenced variables
      which did not exist in the given context. Avoid errors by doing compile
      time checking.
      27fa42b2
  7. 02 2月, 2016 4 次提交
  8. 26 1月, 2016 3 次提交
  9. 25 1月, 2016 1 次提交
  10. 21 1月, 2016 1 次提交
  11. 14 1月, 2016 1 次提交
  12. 12 1月, 2016 6 次提交
    • J
      virsh: Create macro for common "file" option · febf69b5
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr for the less common help string for each
      command option.  Note that only file options using "OT_DATA" and
      "OFLAG_REQ" will be replace - others are left as is.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      febf69b5
    • J
      virsh: Create macro for common "current" option · 5b42dbed
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which for many options in virsh-domain.c
      is simply "affect current domain". So, create a second macro within that
      file in order to define the more common use as a revector to the
      common macro with the common _helpstr.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      5b42dbed
    • J
      virsh: Create macro for common "live" option · 8e4108f0
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which for many options in virsh-domain.c
      is simply "affect running domain". So, create a second macro within that
      file in order to define the more common use as a revector to the
      common macro with the common _helpstr.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      8e4108f0
    • J
      virsh: Create macro for common "config" option · 0dbac60b
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which for many options in virsh-domain.c
      is simply "affect next boot". So, create a second macro within that
      file in order to define the more common use as a revector to the
      common macro with the common _helpstr.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      0dbac60b
    • J
      virsh: Create macro for common "persistent" option · c7ccd8b2
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically.  Note that not all
      '{.name = "persistent",' entries are replaced, just those that have the
      common .help string of "make live change persistent".
      
      Non replaced instances are unique to the command.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      c7ccd8b2
    • J
      virsh: Create macro for common "domain" option · b6fb1e24
      John Ferlan 提交于
      Rather than continually cut-n-paste the strings into each command,
      create a common macro to be used generically. The macro will take a
      single argument _helpstr which will be used to pass the translatable
      helpstr since not all domain options can take the same string.
      
      The majority of the options take 'N_("domain name, id or uuid")', so
      create a separate macro with a _FULL suffix while those that do not
      take the same string will use the VIRSH_COMMON_OPT_DOMAIN macro.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      b6fb1e24
  13. 11 1月, 2016 1 次提交
    • A
      virsh: Add timestamps to QEMU monitor events · 75a96e0c
      Andrea Bolognani 提交于
      Implement a --timestamp option for 'virsh qemu-monitor-event', similar
      to the one for 'virsh event'.
      
      When the option is used, the human-readable timestamp will be printed
      before the message, and the timing information provided by QEMU will
      not be displayed.
      75a96e0c
  14. 09 1月, 2016 1 次提交
  15. 08 1月, 2016 2 次提交
  16. 18 12月, 2015 1 次提交
    • J
      virsh: Add --delete-snapshots flag for undefine and vol-delete · 2eba5c56
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1281710
      
      Commit id '3c7590e0' added the flag to the rbd backend, but provided
      no means via virsh to use the flag.  This patch adds a '--delete-snapshots'
      option to both the "undefine" and "vol-delete" commands.
      
      For "undefine", the flag is combined with the "--remove-all-storage" flag
      in order to add the appropriate flag for the virStorageVolDelete call;
      whereas, for the "vol-delete" command, just the flag is sufficient since
      it's only operating on one volume.
      
      Currently only supported for rbd backends.
      2eba5c56
  17. 09 12月, 2015 1 次提交
  18. 03 12月, 2015 2 次提交
  19. 26 11月, 2015 1 次提交
  20. 11 11月, 2015 1 次提交
  21. 27 10月, 2015 1 次提交
    • P
      virsh-domain: use correct base for virStrToLong_ui · 8eddc307
      Pavel Hrdina 提交于
      While parsing device addresses we should use correct base and don't
      count on auto-detect.  For example, PCI address uses hex numbers, but
      each number starting with 0 will be auto-detected as octal number and
      that's wrong.  Another wrong use-case is for PCI address if for example
      bus is 10, than it's incorrectly parsed as decimal number.
      
      PCI and CCW addresses have all values as hex numbers, IDE and SCSI
      addresses are in decimal numbers.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      8eddc307
  22. 22 10月, 2015 1 次提交
  23. 16 10月, 2015 1 次提交
  24. 29 9月, 2015 1 次提交
  25. 23 9月, 2015 1 次提交
  26. 16 9月, 2015 1 次提交
  27. 02 9月, 2015 1 次提交
    • J
      qemu: add udp interface support · 5c668a78
      Jonathan Toppins 提交于
      Adds a new interface type using UDP sockets, this seems only applicable
      to QEMU but have edited tree-wide to support the new interface type.
      
      The interface type required the addition of a "localaddr" (local
      address), this then maps into the following xml and qemu call.
      
      <interface type='udp'>
        <mac address='52:54:00:5c:67:56'/>
        <source address='127.0.0.1' port='11112'>
          <local address='127.0.0.1' port='22222'/>
        </source>
        <model type='virtio'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
      </interface>
      
      QEMU call:
      	-net socket,udp=127.0.0.1:11112,localaddr=127.0.0.1:22222
      
      Notice the xml "local" entry becomes the "localaddr" for the qemu call.
      
      reference:
      http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg00629.htmlSigned-off-by: NJonathan Toppins <jtoppins@cumulusnetworks.com>
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      5c668a78