1. 22 8月, 2014 3 次提交
  2. 21 8月, 2014 5 次提交
    • P
      conf: net: Correctly switch how to format address fields · 4cf1c3fa
      Peter Krempa 提交于
      When formatting the forward mode addresses or interfaces the switch was
      done based on the type of the network rather than of the type of the
      individual <interface>/<address> element. In case a user would specify
      an incorrect network type ("passhtrough") with <address> elements,
      libvirtd would crash as it would attempt to format an <interface>.
      
      Use the type of the individual element to format the XML.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1132347
      4cf1c3fa
    • 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
  3. 20 8月, 2014 27 次提交
  4. 19 8月, 2014 5 次提交
    • 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