1. 13 11月, 2017 2 次提交
    • 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
  2. 10 11月, 2017 4 次提交
    • M
      qemuBuildDriveDevStr: Prefer default aliases for IDE bus · 9324f67a
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1434451
      
      When testing user aliases it was discovered that for 440fx
      machine type which has default IDE bus builtin, domain cannot
      start if IDE controller has the user provided alias. This is
      because for 440fx we don't put the IDE controller onto the
      command line (since it is builtin) and therefore any device that
      is plugged onto the bus must use the default alias.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      9324f67a
    • V
      numa: avoid failure in nodememstats on non-NUMA systems · 010f88d5
      Viktor Mihajlovski 提交于
      libvirt reports a fake NUMA topology in virConnectGetCapabilities
      even if built without numactl support. The fake NUMA topology consists
      of a single cell representing the host's cpu and memory resources.
      Currently this is the case for ARM and s390[x] RPM builds.
      
      A client iterating over NUMA cells obtained via virConnectGetCapabilities
      and invoking virNodeGetMemoryStats on them will see an internal failure
      "NUMA isn't available on this host" from virNumaGetMaxNode. An example
      for such a client is VDSM.
      
      Since the intention seems to be that libvirt always reports at least
      a single cell it is necessary to return "fake" node memory statistics
      matching the previously reported fake cell in case NUMA isn't supported
      on the system.
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      010f88d5
    • D
      vbox: Add support for 5.2.x · 0eda09f4
      Dawid Zamirski 提交于
      Simply add the 5.2 SDK header to the existing unified framework. No
      other special handling is needed as there's no API break between
      existing 5.1 and the just added 5.2.
      0eda09f4
    • D
      vbox: Add vbox 5.2 CAPI header file. · 8f1c88d9
      Dawid Zamirski 提交于
      Extracted from 5.2 SDK and reindented with cppi
      8f1c88d9
  3. 09 11月, 2017 2 次提交
  4. 08 11月, 2017 26 次提交
  5. 07 11月, 2017 6 次提交