1. 21 8月, 2014 4 次提交
    • L
      b2e87c36
    • J
      Perform disk config validity checking for attach-device config · 33188c9f
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1078126
      
      Using 'virsh attach-device --config' (or --persistent) to attach a
      file backed lun device will succeed; however, subsequent domain restarts
      will result in failure because the configuration of a file backed lun
      is not supported.
      
      Although allowing 'illegal configurations' is something that can be
      allowed, it may not be practical in this case. Generally, when attaching
      a device to a domain means the domain must be running. A way around
      this is using the --config (or --persistent) option. When an attach
      is done to a running domain, a temporary configuration is modified
      first followed by the live update. The live update will make a number
      of disk validity checks when building the qemu command to attach the
      disk. If any fail, then change is rejected.
      
      Rather than allow a potentially illegal combination, adjust the code
      in the configuration path to make the same checks as the running path
      will make with respect to disk validity checks. This way we avoid
      having the potential for some subsequent start/reboot to fail because
      an illegal combination was allowed.
      
      NB: The live path still checks the configuration since it is possible
      to just do --live guest modification...
      33188c9f
    • P
      virsh: Don't print extra '-'s in error message for -k and -K options · b470a38f
      Peter Krempa 提交于
      The error message contains one extra dash.
      b470a38f
    • M
      hvsupport: Adapt to vbox driver rewrite · cf389258
      Michal Privoznik 提交于
      Since vbox driver rewrite the virDriver structure init moved from
      vbox_tmpl.c into vbox_common.c. However, our hvsupport.pl script
      doesn't count with that. It still parses vbox_tmp.c and looks for
      virDriver structure which is not found there anymore. As a result,
      at hvsupport page is seems like vbox driver doesn't support
      anything.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      cf389258
  2. 20 8月, 2014 27 次提交
  3. 19 8月, 2014 9 次提交
    • L
      virsh: Fix comment for net-undefine · 48da6187
      Li Yang 提交于
      net-undefine doesn't only undefine an inactive network,
      but also an active network(persistent), it just cannot
      undefine a transient network.
      Signed-off-by: NLi Yang <liyang.fnst@cn.fujitsu.com>
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      48da6187
    • P
      driver: Move virDrvNetworkGetDHCPLeases to the appropriate section · 2b748fb6
      Peter Krempa 提交于
      The prototype was along with domain API prototypes instead of network
      API ones.
      2b748fb6
    • P
      man: virsh: add missing auto-converge option for 'migrate' · 338ae9e2
      Pradipta Kr. Banerjee 提交于
        * tools/virsh.pod (migrate): Add --auto-converge flag
      Signed-off-by: NPradipta Kr. Banerjee <bpradip@in.ibm.com>
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      338ae9e2
    • M
      qemu: allow device block I/O tuning in session mode · 7d9def2e
      Martin Kletzander 提交于
      In commit 45ad1adb I added a nicer message for tunings that need
      cgroups when unavailable (unprivileged), but I added this check for
      I/O tuning of block devices, which doesn't need cgroups, because it is
      done by QEMU, so let's fix that.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      7d9def2e
    • J
      docs: nwfilter: add missing dscp attribute · 08567572
      Jianwei Hu 提交于
      Added attribute dscp to below supported protocols table in nwfilter docs.
      IPV4 (ip)
      TCP/UDP/SCTP (tcp/udp/sctp)
      ICMP (icmp)
      IGMP,ESP,AH,UDPLITE,'ALL' (igmp,esp,ah,udplite,all)
      TCP/UDP/SCTP over IPV6 (tcp-ipv6,udp-ipv6,sctp-ipv6)
      ICMPV6 (icmpv6)
      IGMP,ESP,AH,UDPLITE,'ALL' over IPv6 (igmp-ipv6,esp-ipv6,ah-ipv6,udplite-ipv6,all-ipv6)
      
      Here is a simple example:
      [root@localhost ~]# virsh nwfilter-dumpxml myself
      <filter name='myself' chain='root'>
        <uuid>7192ef51-cd50-4f14-ad7b-fa5c69ea19e3</uuid>
        <rule action='accept' direction='in' priority='500'>
          <ip dscp='1'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <tcp dscp='1'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <tcp-ipv6 dscp='2'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <icmp dscp='55'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <icmpv6 dscp='55'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <udp dscp='3'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <udp-ipv6 dscp='4'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <udplite dscp='5'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <udplite-ipv6 dscp='6'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <esp dscp='7'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <esp-ipv6 dscp='8'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <ah dscp='9'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <ah-ipv6 dscp='10'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <sctp dscp='11'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <sctp-ipv6 dscp='55'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <igmp dscp='55'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <all-ipv6 dscp='55'/>
        </rule>
        <rule action='accept' direction='in' priority='500'>
          <all dscp='55'/>
        </rule>
      </filter>
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      08567572
    • C
      cmdMigrate: move vshConnect before vshWatchJob · 7eabd550
      Chunyan Liu 提交于
      A possible fix to issue:
      http://www.redhat.com/archives/libvir-list/2014-August/thread.html#00227
      
      While doing migration on KVM host, found problem sometimes:
      VM is already running on the target host and disappears from source
      host, but 'virsh migrate' command line hangs, cannot exit normally.
      If pressing "ENTER" key, it will exit.
      
      The code hangs at tools/virsh-domain.c: cmdMigrate
      ->vshWatchJob->poll():
      poll() is trying to select pipe_fd, which is used to receive message
      from doMigrate thread. In debugging, found that doMigrate finishes
      and at the end it does call safewrite() to write the retval ('0' or
      '1') to pipe_fd, and the write is completed. But cmdMigrate poll()
      cannot get the event. If pressing "ENTER" key, poll() can get the
      event and select pipe_fd, then command line can exit.
      
      In current code, authentication thread which is called by vshConnect
      will use stdin, and at the same time, in cmdMigrate main process,
      poll() is listening to stdin, that probably affect poll() to get
      pipe_fd event. Better to move authentication before vshWatchJob. With
      this change, above problem does not exist.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      7eabd550
    • J
      src/xenconfig: move common parsing/formatting to xen_common · 337a1362
      Jim Fehlig 提交于
      XM and XL config are very similar.  Disks are specified differently
      in XL, but the old XM disk config is still supported by XL.  XL also
      supports new config like spice that was never supported by XM.
      
      This patch moves all the common parsing and formatting functions to
      the new file xen_common.c and adapts the XM parser/formatter accordingly.
      This restructuring paves way for introducing an XL parser/formatter in
      the future.
      
      While moving the code, fixup whitespace, comments, and style issues.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      337a1362
    • K
      src/xenconfig: wrap common formatting code · f67bf6e9
      Kiarie Kahurani 提交于
      Wrap formatting code common to xm and xl in xenFormatConfigCommon
      and export it.
      Signed-off-by: NKiarie Kahurani <davidkiarie4@gmail.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      f67bf6e9
    • K
      src/xenconfig: wrap common parsing code · 512f6738
      Kiarie Kahurani 提交于
      Wrap parsing code common to xm and xl in xenParseConfigCommon
      and export it.
      Signed-off-by: NKiarie Kahurani <davidkiarie4@gmail.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      512f6738