1. 21 9月, 2018 1 次提交
    • W
      conf: Introduce RDT monitor host capability · 6af84174
      Wang Huaqiang 提交于
      This patch is introducing cache monitor(CMT) to cache and
      memory bandwidth monitor(MBM) for monitoring CPU memory
      bandwidth.
      
      The host capability of the two monitors is also introduced
      in this patch.
      
      For CMT, the host capability is shown like:
        <host>
        ...
          <cache>
            <bank id='0' level='3' type='both' size='15' unit='MiB' cpus='0-5'>
              <control granularity='768' min='1536' unit='KiB' type='both' maxAllocs='4'/>
            </bank>
            <monitor level='3' 'reuseThreshold'='270336' maxMonitors='176'>
              <feature name='llc_occupancy'/>
            </monitor>
          </cache>
          ...
        </host>
      
      For MBM, the capability is shown like this:
        <host>
          ...
          <memory_bandwidth>
            <node id='1' cpus='6-11'>
              <control granularity='10' min ='10' maxAllocs='4'/>
            </node>
            <monitor maxMonitors='176'>
              <feature name='mbm_total_bytes'/>
              <feature name='mbm_local_bytes'/>
            </monitor>
          </memory_bandwidth>
          ...
        </host>
      Signed-off-by: NWang Huaqiang <huaqiang.wang@intel.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      6af84174
  2. 20 9月, 2018 1 次提交
  3. 06 8月, 2018 1 次提交
  4. 22 11月, 2017 1 次提交
    • M
      build: Fix make dist · 190febdc
      Martin Kletzander 提交于
      Since we don't pack symlinks we cannot have recursive loops in them.  Since we
      need one directory to be in tests/vircaps2xmldata/linux-caches/, instead of
      creating a symlink, just move the files in that directory and adjust tests.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      190febdc
  5. 18 11月, 2017 1 次提交
  6. 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
  7. 16 6月, 2017 1 次提交
    • M
      Report more correct information for cache control · cc9f0521
      Martin Kletzander 提交于
      On some platforms the number of bits in the cbm_mask might not be
      divisible by 4 (and not even by 2), so we need to properly count the
      bits.  Similar file, min_cbm_bits, is properly parsed and used, but if
      the number is greater than one, we lose the information about
      granularity when reporting the data in capabilities.  For that matter
      always report granularity, but if it is not the same as the minimum,
      add that information in there as well.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      cc9f0521
  8. 05 6月, 2017 1 次提交
    • E
      Expose resource control capabilities for caches · 0ab409cc
      Eli Qiao 提交于
      Add cache resource control into capabilities for CAT without CDP:
      
        <cache>
          <bank id='0' level='3' type='unified' size='15360' unit='KiB' cpus='0-5'>
            <control min='768' unit='KiB' scope='both' max_allocation='4'/>
          </bank>
        </cache>
      
      and with CDP:
      
        <cache>
          <bank id='0' level='3' type='unified' size='15360' unit='KiB' cpus='0-5'>
            <control min='768' unit='KiB' scope='code' max_allocation='4'/>
            <control min='768' unit='KiB' scope='data' max_allocation='4'/>
          </bank>
        </cache>
      
      Also add new test cases for vircaps2xmltest.
      Signed-off-by: NEli Qiao <liyong.qiao@intel.com>
      0ab409cc
  9. 09 5月, 2017 4 次提交
  10. 04 4月, 2017 1 次提交
  11. 28 3月, 2017 1 次提交
  12. 27 3月, 2017 1 次提交
  13. 08 6月, 2016 2 次提交
  14. 24 4月, 2015 1 次提交
  15. 14 7月, 2014 1 次提交
    • E
      capabilities: use bool instead of int · 58156f39
      Eric Blake 提交于
      While preparing to add a capability for active commit, I noticed
      that the existing code was abusing int for boolean values.
      
      * src/conf/capabilities.h (_virCapsGuestFeature, _virCapsHost)
      (virCapabilitiesNew, virCapabilitiesAddGuestFeature): Improve
      types.
      * src/conf/capabilities.c (virCapabilitiesNew)
      (virCapabilitiesAddGuestFeature): Adjust signature.
      * src/bhyve/bhyve_capabilities.c (virBhyveCapsBuild): Update
      clients.
      * src/esx/esx_driver.c (esxCapsInit): Likewise.
      * src/libxl/libxl_conf.c (libxlMakeCapabilities): Likewise.
      * src/lxc/lxc_conf.c (virLXCDriverCapsInit): Likewise.
      * src/openvz/openvz_conf.c (openvzCapsInit): Likewise.
      * src/parallels/parallels_driver.c (parallelsBuildCapabilities):
      Likewise.
      * src/phyp/phyp_driver.c (phypCapsInit): Likewise.
      * src/qemu/qemu_capabilities.c (virQEMUCapsInit)
      (virQEMUCapsInitGuestFromBinary): Likewise.
      * src/security/virt-aa-helper.c (get_definition): Likewise.
      * src/test/test_driver.c (testBuildCapabilities): Likewise.
      * src/uml/uml_conf.c (umlCapsInit): Likewise.
      * src/vbox/vbox_tmpl.c (vboxCapsInit): Likewise.
      * src/vmware/vmware_conf.c (vmwareCapsInit): Likewise.
      * src/xen/xen_hypervisor.c (xenHypervisorBuildCapabilities):
      Likewise.
      * src/xenapi/xenapi_driver.c (getCapsObject): Likewise.
      * tests/qemucaps2xmltest.c (testGetCaps): Likewise.
      * tests/testutils.c (virTestGenericCapsInit): Likewise.
      * tests/testutilslxc.c (testLXCCapsInit): Likewise.
      * tests/testutilsqemu.c (testQemuCapsInit): Likewise.
      * tests/testutilsxen.c (testXenCapsInit): Likewise.
      * tests/vircaps2xmltest.c (buildVirCapabilities): Likewise.
      * tests/vircapstest.c (buildNUMATopology): Likewise.
      * tests/vmx2xmltest.c (testCapsInit): Likewise.
      * tests/xml2vmxtest.c (testCapsInit): Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      58156f39
  16. 03 7月, 2014 1 次提交
    • J
      Report errors in virCapabilitiesFormatXML · 28b9be24
      Ján Tomko 提交于
      So far, we only report an error if formatting the siblings bitmap
      in NUMA topology fails.
      
      Be consistent and always report error in virCapabilitiesFormatXML.
      28b9be24
  17. 19 6月, 2014 1 次提交
    • M
      virCaps: expose pages info · 02129b7c
      Michal Privoznik 提交于
      There are two places where you'll find info on page sizes. The first
      one is under <cpu/> element, where all supported pages sizes are
      listed. Then the second one is under each <cell/> element which refers
      to concrete NUMA node. At this place, the size of page's pool is
      reported. So the capabilities XML looks something like this:
      
      <capabilities>
      
        <host>
          <uuid>01281cda-f352-cb11-a9db-e905fe22010c</uuid>
          <cpu>
            <arch>x86_64</arch>
            <model>Westmere</model>
            <vendor>Intel</vendor>
            <topology sockets='1' cores='1' threads='1'/>
            ...
            <pages unit='KiB' size='4'/>
            <pages unit='KiB' size='2048'/>
            <pages unit='KiB' size='1048576'/>
          </cpu>
          ...
          <topology>
            <cells num='4'>
              <cell id='0'>
                <memory unit='KiB'>4054408</memory>
                <pages unit='KiB' size='4'>1013602</pages>
                <pages unit='KiB' size='2048'>3</pages>
                <pages unit='KiB' size='1048576'>1</pages>
                <distances/>
                <cpus num='1'>
                  <cpu id='0' socket_id='0' core_id='0' siblings='0'/>
                </cpus>
              </cell>
              <cell id='1'>
                <memory unit='KiB'>4071072</memory>
                <pages unit='KiB' size='4'>1017768</pages>
                <pages unit='KiB' size='2048'>3</pages>
                <pages unit='KiB' size='1048576'>1</pages>
                <distances/>
                <cpus num='1'>
                  <cpu id='1' socket_id='0' core_id='0' siblings='1'/>
                </cpus>
              </cell>
              ...
            </cells>
          </topology>
          ...
        </host>
      
        <guest/>
      
      </capabilities>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      02129b7c
  18. 05 6月, 2014 1 次提交