1. 07 6月, 2017 2 次提交
  2. 10 5月, 2017 1 次提交
  3. 28 4月, 2017 2 次提交
  4. 27 3月, 2017 1 次提交
  5. 17 3月, 2017 1 次提交
  6. 14 3月, 2017 1 次提交
  7. 16 11月, 2016 1 次提交
  8. 15 11月, 2016 1 次提交
    • J
      cpu: Avoid adding <vendor> to custom CPUs · 98b7c37d
      Jiri Denemark 提交于
      Guest CPU definitions with mode='custom' and missing <vendor> are
      expected to run on a host CPU from any vendor as long as the required
      CPU model can be used as a guest CPU on the host. But even though no CPU
      vendor was explicitly requested we would sometimes force it due to a bug
      in virCPUUpdate and virCPUTranslate.
      
      The bug would effectively forbid cross vendor migrations even if they
      were previously working just fine.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      98b7c37d
  9. 22 9月, 2016 3 次提交
  10. 22 6月, 2016 2 次提交
  11. 12 5月, 2015 1 次提交
  12. 13 4月, 2015 1 次提交
  13. 25 2月, 2015 2 次提交
  14. 21 2月, 2015 7 次提交
    • P
      conf: Move all NUMA configuration to virDomainNuma · 181742d4
      Peter Krempa 提交于
      For historical reasons data regarding NUMA configuration were split
      between the CPU definition and numatune. We cannot do anything about the
      XML still being split, but we certainly can at least store the relevant
      data in one place.
      
      This patch moves the NUMA stuff to the right place.
      181742d4
    • P
      conf: numa: Recalculate rather than remember total NUMA cpu count · 6b616632
      Peter Krempa 提交于
      It's easier to recalculate the number in the one place it's used as
      having a separate variable to track it. It will also help with moving
      the NUMA code to the separate module.
      6b616632
    • P
      conf: Move enum virMemAccess to the NUMA code and rename it · a3673b22
      Peter Krempa 提交于
      Name it virNumaMemAccess and add it to conf/numa_conf.[ch]
      
      Note that to avoid a circular dependency the type of the NUMA cell
      memAccess variable was changed to int. It will be turned back later
      after the circular dependency will not exist.
      a3673b22
    • P
      conf: Move NUMA cell formatter to numa_conf · 456268d4
      Peter Krempa 提交于
      Move the code that formats the /domain/cpu/numa element to numa_conf as
      it belongs there.
      456268d4
    • P
      conf: numa: Don't duplicate NUMA cell cpumask · 2562141f
      Peter Krempa 提交于
      The mask was stored both as a bitmap and as a string. The string is used
      for XML output only. Remove the string, as it can be reconstructed from
      the bitmap.
      
      The test change is necessary as the bitmap formatter doesn't "optimize"
      using the '^' operator.
      2562141f
    • P
      conf: Refactor virDomainNumaDefCPUParseXML · 34a1dd73
      Peter Krempa 提交于
      Rewrite the function to save a few local variables and reorder the code
      to make more sense.
      
      Additionally the ncells_max member of the virCPUDef structure is used
      only for tracking allocation when parsing the numa definition, which can
      be avoided by switching to VIR_ALLOC_N as the array is not resized
      after initial allocation.
      34a1dd73
    • P
      conf: Move NUMA cell parsing code from cpu conf to numa conf · 5bba61fd
      Peter Krempa 提交于
      For weird historical reasons NUMA cells are added as a subelement of
      <cpu> while the actual configuration is done in <numatune>.
      
      This patch splits out the cell parser code from cpu config to NUMA
      config. Note that the changes to the code are minimal just to make it
      work and the function will be refactored in the next patch.
      5bba61fd
  15. 19 1月, 2015 1 次提交
  16. 14 1月, 2015 1 次提交
    • D
      Decouple CPU XML formatting from domain XML public API flags · e34473c1
      Daniel P. Berrange 提交于
      The virCPUDefFormat* methods were relying on the VIR_DOMAIN_XML_*
      flag definitions. It is not desirable for low level internal
      functions to be coupled to flags for the public API, since they
      may need to be called from several different contexts where the
      flags would not be appropriate.
      e34473c1
  17. 13 1月, 2015 1 次提交
  18. 11 12月, 2014 2 次提交
  19. 10 11月, 2014 1 次提交
  20. 07 11月, 2014 1 次提交
  21. 05 11月, 2014 1 次提交
  22. 26 9月, 2014 1 次提交
  23. 23 9月, 2014 1 次提交
  24. 22 9月, 2014 1 次提交
  25. 17 9月, 2014 1 次提交
  26. 17 7月, 2014 1 次提交
    • M
      conf, schema: add 'id' field for cells · 992000e6
      Martin Kletzander 提交于
      In XML format, by definition, order of fields should not matter, so
      order of parsing the elements doesn't affect the end result.  When
      specifying guest NUMA cells, we depend only on the order of the 'cell'
      elements.  With this patch all older domain XMLs are parsed as before,
      but with the 'id' attribute they are parsed and formatted according to
      that field.  This will be useful when we have tuning settings for
      particular guest NUMA node.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      992000e6
  27. 03 7月, 2014 1 次提交
    • J
      Use virBufferCheckError everywhere we report OOM error · 92a8e72f
      Ján Tomko 提交于
      Replace:
      if (virBufferError(&buf)) {
          virBufferFreeAndReset(&buf);
          virReportOOMError();
          ...
      }
      
      with:
      if (virBufferCheckError(&buf) < 0)
          ...
      
      This should not be a functional change (unless some callers
      misused the virBuffer APIs - a different error would be reported
      then)
      92a8e72f