libvirt/docs/schemas
Michal Privoznik 02129b7c0e virCaps: expose pages info
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: Michal Privoznik <mprivozn@redhat.com>
2014-06-19 15:10:49 +02:00
..
basictypes.rng virInterface: Expose link state & speed 2014-06-11 09:13:32 +02:00
capability.rng virCaps: expose pages info 2014-06-19 15:10:49 +02:00
domain.rng conf: set up for per-grammar overrides in schemas 2014-04-15 21:07:59 +02:00
domaincommon.rng blockjob: don't remove older-style mirror XML 2014-06-16 13:48:00 -06:00
domainsnapshot.rng conf: split <disk> schema into more pieces 2014-04-16 10:45:55 +02:00
interface.rng virInterface: Expose link state & speed 2014-06-11 09:13:32 +02:00
Makefile.am conf: create common storage RNG grammar file 2014-04-14 07:07:01 -06:00
network.rng
networkcommon.rng
nodedev.rng nodedev: Introduce <pci-express/> to PCI devices 2014-06-16 17:40:49 +02:00
nwfilter.rng
secret.rng
storagecommon.rng conf: set up for per-grammar overrides in schemas 2014-04-15 21:07:59 +02:00
storagepool.rng
storagevol.rng conf: move storage formats to common RNG file 2014-04-15 13:15:11 +02:00