1. 23 11月, 2017 2 次提交
  2. 20 11月, 2017 1 次提交
  3. 18 11月, 2017 3 次提交
  4. 16 11月, 2017 1 次提交
  5. 14 11月, 2017 1 次提交
  6. 13 11月, 2017 5 次提交
    • P
      conf: Fix message when maximum vCPU count is less than current · 50712e14
      Peter Krempa 提交于
      Reword the message and drop the numbers (which were reversed) from it
      so that it actually makes sense.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1509151
      50712e14
    • P
      conf: Properly parse <backingStore/> · 19448a25
      Peter Krempa 提交于
      The terminator would not be parsed properly since the XPath selector was
      looking for an populated element, and also the code did not bother
      assigning the terminating virStorageSourcePtr to the backingStore
      property of the parent.
      
      Some tests would catch it if there wasn't bigger fallout from the change
      to backing store termination in a693fdba. Fix them properly now.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1509110
      19448a25
    • M
      Revert "virNetDevSupportBandwidth: Enable QoS for vhostuser" · 676768ed
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1497410
      
      This reverts commit bc8a99ef.
      
      The vhostuser is not a TAP. Therefore our QoS code is not able to
      set any bandwidth. I don't really understand what I was thinking.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      676768ed
    • W
      xenconfig: add domxml conversions for xen-xl · 03d0959a
      Wim ten Have 提交于
      This patch converts NUMA configurations between the Xen libxl
      configuration file format and libvirt's XML format.
      
      XML HVM domain on a 4 node (2 cores/socket) configuration:
      
        <cpu>
          <numa>
            <cell id='0' cpus='0-1' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='10'/>
                <sibling id='1' value='21'/>
                <sibling id='2' value='31'/>
                <sibling id='3' value='21'/>
              </distances>
            </cell>
            <cell id='1' cpus='2-3' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='21'/>
                <sibling id='1' value='10'/>
                <sibling id='2' value='21'/>
                <sibling id='3' value='31'/>
              </distances>
            </cell>
            <cell id='2' cpus='3-4' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='31'/>
                <sibling id='1' value='21'/>
                <sibling id='2' value='10'/>
                <sibling id='3' value='21'/>
              </distances>
            </cell>
            <cell id='3' cpus='5-6' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='21'/>
                <sibling id='1' value='31'/>
                <sibling id='2' value='21'/>
                <sibling id='3' value='10'/>
              </distances>
            </cell>
          </numa>
        </cpu>
      
      Xen xl.cfg domain configuration:
      
        vnuma = [["pnode=0","size=2048","vcpus=0-1","vdistances=10,21,31,21"],
                 ["pnode=1","size=2048","vcpus=2-3","vdistances=21,10,21,31"],
                 ["pnode=2","size=2048","vcpus=4-5","vdistances=31,21,10,21"],
                 ["pnode=3","size=2048","vcpus=6-7","vdistances=21,31,21,10"]]
      
      If there is no XML <distances> description amongst the <cell> data the
      conversion schema from xml to native will generate 10 for local and 20
      for all remote instances.
      Signed-off-by: NWim ten Have <wim.ten.have@oracle.com>
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      03d0959a
    • W
      numa: describe siblings distances within cells · 74119a03
      Wim ten Have 提交于
      Add support for describing NUMA distances in a domain's <numa> <cell>
      XML description.
      
      Below is an example of a 4 node setup:
      
        <cpu>
          <numa>
            <cell id='0' cpus='0-3' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='10'/>
                <sibling id='1' value='21'/>
                <sibling id='2' value='31'/>
                <sibling id='3' value='21'/>
              </distances>
            </cell>
            <cell id='1' cpus='4-7' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='21'/>
                <sibling id='1' value='10'/>
                <sibling id='2' value='21'/>
                <sibling id='3' value='31'/>
              </distances>
            </cell>
            <cell id='2' cpus='8-11' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='31'/>
                <sibling id='1' value='21'/>
                <sibling id='2' value='10'/>
                <sibling id='3' value='21'/>
              </distances>
            <cell id='3' cpus='12-15' memory='2097152' unit='KiB'>
              <distances>
                <sibling id='0' value='21'/>
                <sibling id='1' value='31'/>
                <sibling id='2' value='21'/>
                <sibling id='3' value='10'/>
              </distances>
            </cell>
          </numa>
        </cpu>
      
      A <cell> defines a NUMA node. <distances> describes the NUMA distance
      from the <cell> to the other NUMA nodes (the <sibling>s).  For example,
      in above XML description, the distance between NUMA node0 <cell id='0'
      ...> and NUMA node2 <sibling id='2' ...> is 31.
      
      Valid distance values are '10 <= value <= 255'.  A distance value of 10
      represents the distance to the node itself.  A distance value of 20
      represents the default value for remote nodes but other values are
      possible depending on the physical topology of the system.
      
      When distances are not fully described, any missing sibling distance
      values will default to 10 for local nodes and 20 for remote nodes.
      
      If distance is given for A -> B, then we default B -> A to the same
      value instead of 20.
      Signed-off-by: NWim ten Have <wim.ten.have@oracle.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      74119a03
  7. 09 11月, 2017 1 次提交
  8. 08 11月, 2017 1 次提交
  9. 07 11月, 2017 3 次提交
  10. 06 11月, 2017 1 次提交
    • J
      conf: Don't inline virDomainNetTypeSharesHostView · bce925da
      Jiri Denemark 提交于
      When coverage build is enabled, gcc complains about it:
      
      In file included from qemu/qemu_agent.h:29:0,
                       from qemu/qemu_driver.c:47:
      qemu/qemu_driver.c: In function 'qemuDomainSetInterfaceParameters':
      ./conf/domain_conf.h:3397:1: error: inlining failed in call to
      'virDomainNetTypeSharesHostView': call is unlikely and code size would
      grow [-Werror=inline]
       virDomainNetTypeSharesHostView(const virDomainNetDef *net)
       ^
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      bce925da
  11. 04 11月, 2017 1 次提交
  12. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  13. 27 10月, 2017 1 次提交
  14. 26 10月, 2017 1 次提交
  15. 23 10月, 2017 2 次提交
  16. 22 10月, 2017 1 次提交
    • M
      conf: Parse user supplied aliases · c14f1ed2
      Michal Privoznik 提交于
      If driver that is calling the parse supports user supplied
      aliases, they can be parsed even for inactive XMLs. However, to
      avoid any clashes with aliases that libvirt generates, the user
      ones have to have "ua-" prefix.
      
      Note, that some drivers don't have notion of device aliases at
      all. Also, in order to support user supplied aliases some extra
      checks need to be done (e.g. during hotplug). Therefore we can't
      just enable this feature for all the drivers. Thus we need a flag
      that drivers set to tell parsing code that they can handle user
      supplied device aliases.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c14f1ed2
  17. 21 10月, 2017 1 次提交
  18. 20 10月, 2017 5 次提交
    • P
      conf: duplicate interface name instead of MAC provided to lookup the interface · 727238de
      Pavel Hrdina 提交于
      Introduced by 6094d6ec.
      Found by running libvirt-perl tests.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      727238de
    • J
      interfaces: Convert virInterfaceObjList to virObjectRWLockable · 6094d6ec
      John Ferlan 提交于
      Rather than a forward linked list, let's use the virHashTable in
      order to manage the objsName data.
      
      Requires numerous changes from List to Object management similar to
      many other drivers/vir*obj.c modules
      6094d6ec
    • J
      interface: Make _virInterfaceObjList virObjectRWLockable · 4102e228
      John Ferlan 提交于
      Modify the allocation to be a real RWLockable object and add the
      various RWLock{Read|Write} and RWUnlock calls to process the list
      of interfaces.
      4102e228
    • J
      conf: Add/Allow parsing the encryption in the disk source · 37537a7c
      John Ferlan 提交于
      Since the virStorageEncryptionPtr encryption; is a member of
       _virStorageSource it really should be allowed to be a subelement
      of the disk <source> for various disk formats:
      
         Source{File|Dir|Block|Volume}
         SourceProtocol{RBD|ISCSI|NBD|Gluster|Simple|HTTP}
      
      NB: Simple includes sheepdog, ftp, ftps, tftp
      
      That way we can set up to allow the <encryption> element to be
      formatted within the disk source, but we still need to be wary
      from whence the element was read - see keep track and when it
      comes to format the data, ensure it's written in the correct place.
      
      Modify the qemuxml2argvtest to add a parse failure when there is an
      <encryption> as a child of <disk> *and* an <encryption> as a child
      of <source>.
      
      The virschematest will read the new test files and validate from a
      RNG viewpoint things are fine.
      37537a7c
    • J
      conf: Add/Allow parsing the auth in the disk source · 8002d3cb
      John Ferlan 提交于
      Since the virStorageAuthDefPtr auth; is a member of _virStorageSource
      it really should be allowed to be a subelement of the disk <source>
      for the RBD and iSCSI prototcols. That way we can set up to allow
      the <auth> element to be formatted within the disk source.
      
      Since we've allowed the <auth> to be a child of <disk>, we'll need
      to keep track of how it was read so that when writing out we'll know
      whether to format as child of <disk> or <source>. For the argv2xml
      parsing, let's format under <source> as a preference. Do not allow
      <auth> to be both a child of <disk> and <source>.
      
      Modify the qemuxml2argvtest to add a parse failure when there is an
      <auth> as a child of <disk> *and* an <auth> as a child of <source>.
      
      Add tests to validate that if the <auth> was found in <source>, then
      the resulting xml2xml and xml2arg works just fine.  The two new .args
      file are exact copies of the non "-source" version of the file.
      
      The virschematest will read the new test files and validate from a
      RNG viewpoint things are fine
      
      Update the virstoragefile, virstoragetest, and args2xml file to show
      the "preference" to place <auth> as a child of <source>.
      8002d3cb
  19. 19 10月, 2017 8 次提交