1. 09 12月, 2015 1 次提交
  2. 03 12月, 2015 2 次提交
  3. 26 11月, 2015 1 次提交
  4. 11 11月, 2015 1 次提交
  5. 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
  6. 22 10月, 2015 1 次提交
  7. 16 10月, 2015 1 次提交
  8. 29 9月, 2015 1 次提交
  9. 23 9月, 2015 1 次提交
  10. 16 9月, 2015 1 次提交
  11. 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
  12. 18 8月, 2015 2 次提交
  13. 14 8月, 2015 3 次提交
    • E
      tools: Introduce new client generic module vsh · 834c5720
      Erik Skultety 提交于
      In order to share as much virsh' logic as possible with upcomming
      virt-admin client we need to split virsh logic into virsh specific and
      client generic features.
      
      Since majority of virsh methods should be generic enough to be used by
      other clients, it's much easier to rename virsh specific data to virshX
      than doing this vice versa. It moved generic virsh commands (including info
      and opts structures) to generic module vsh.c.
      
      Besides renaming methods and structures, this patch also involves introduction
      of a client specific control structure being referenced as private data in the
      original control structure, introduction of a new global vsh Initializer,
      which currently doesn't do much, but there is a potential for added
      functionality in the future.
      Lastly it introduced client hooks which are especially necessary during
      client connecting phase.
      834c5720
    • T
      Introduce new VIR_DOMAIN_EVENT_DEFINED_RENAMED event · 9877d840
      Tomas Meszaros 提交于
      This should be emitted whenever a domain is renamed.
      Signed-off-by: NTomas Meszaros <exo@tty.sk>
      9877d840
    • T
      virsh: Implement "domrename" command · ff486e0d
      Tomas Meszaros 提交于
      This patch implements new virsh command, domrename.
      
      Using domrename, it will be possible to rename domain from the virsh shell by
      calling virRenameDomain API.
      
      It takes two arguments, current domain name and new domain name.
      
      Example:
      
      virsh # list --all
       Id    Name                           State
       ----------------------------------------------------
        -     bar                            shut off
      
      virsh # domrename bar foo
      Domain successfully renamed
      
      virsh # list --all
       Id    Name                           State
       ----------------------------------------------------
        -     foo                            shut off
      
      virsh #
      Signed-off-by: NTomas Meszaros <exo@tty.sk>
      ff486e0d
  14. 12 8月, 2015 2 次提交
    • M
      cmdAttachInterface: Fully implement @floor support · 68b2405c
      Michal Privoznik 提交于
      In my previous commit d7f5c889 I tried to introduce support
      for inbound.floor. But the code change was incomplete. This is
      the change needed to fully enable the feature.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      68b2405c
    • P
      virsh: Refactor parseRateStr to avoid false-positive uninitialized variable · 73ca6f98
      Peter Krempa 提交于
      Commit 6983d6d2 tried to improve parseRateStr but broke the build
      instead for compilers that were not able to properly introspect the for
      loop indexed by the enum resulting into the following error:
      
      virsh-domain.c: In function 'parseRateStr':
      virsh-domain.c:916:13: error: 'field_name' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                   vshError(ctl, _("malformed %s field"), field_name);
                   ^
      virsh-domain.c:915:13: error: 'tmp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
               if (virStrToLong_ullp(token, NULL, 10, tmp) < 0) {
                   ^
      Rather than trying to fix the code, refactor the function again by
      reusing virStringSplit.
      73ca6f98
  15. 11 8月, 2015 2 次提交
    • M
      virsh: Implement VIR_DOMAIN_BANDWIDTH_IN_FLOOR · d7f5c889
      Michal Privoznik 提交于
      We have a function parseRateStr() that parses --inbound and
      --outbound arguments to both attach-interface and domiftune.
      Now that we have all virTypedParams macros needed for QoS,
      lets parse even floor attribute. The extended format for the
      arguments looks like this then:
      
        --inbound average[,peak[,burst[,floor]]]
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      d7f5c889
    • M
      virsh: Rework parseRateStr · 6983d6d2
      Michal Privoznik 提交于
      The function is used to parse a tuple delimited by commas into
      virNetDevBandwidth structure. So far only three out of fore
      fields are supported: average, peak and burst. The single missing
      field is floor. Well, the parsing works, but I think we can do
      better. Especially when we will need to parse floor too in very
      close future.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6983d6d2
  16. 05 8月, 2015 1 次提交
  17. 21 7月, 2015 12 次提交
  18. 15 7月, 2015 1 次提交
    • M
      cmdVcpuPin: Remove dead code · 416d0e94
      Michal Privoznik 提交于
      There's this condition:
      
      flags & VIR_DOMAIN_AFFECT_CURRENT && virDomainIsActive(dom)
      
      which can never be true since VIR_DOMAIN_AFFECT_CURRENT has hardcoded
      value of zero. Therefore virDomainIsActive() is a dead code. However,
      the condition could make sense if it is rewritten as the following:
      
      !(flags & VIR_DOMAIN_AFFECT_CONFIG) && virDomainIsActive(dom)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      416d0e94
  19. 02 7月, 2015 1 次提交
    • L
      virsh: report error if vcpu number exceed the guest maxvcpu number · 848ab685
      Luyao Huang 提交于
      Commit id '81dd81e4' caused a regression when attempting to print a
      specific vcpuid that is out of the range of the maximum vcpus for
      the guest, such as:
      
       $ virsh vcpupin $dom 1000
       VCPU: CPU Affinity
       ----------------------------------
      
       $
      
      Rather than just recover the old message, let's adjust the message based
      on what would be displayed for a similar failure in the set path, such as:
      
       $ virsh vcpupin $dom 1000
       error: vcpu 1000 is out of range of persistent cpu count 2
      
       $ virsh vcpupin $dom 1000 --live
       error: vcpu 1000 is out of range of live cpu count 2
      
       $
      Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      848ab685
  20. 24 6月, 2015 1 次提交
  21. 23 6月, 2015 3 次提交