libvirt/tests/cputestdata
Jiri Denemark f7dd3a4e62 Add support for cpu mode attribute
The mode can be either of "custom" (default), "host-model",
"host-passthrough". The semantics of each mode is described in the
following examples:

- guest CPU is a default model with specified topology:
    <cpu>
      <topology sockets='1' cores='2' threads='1'/>
    </cpu>

- guest CPU matches selected model:
    <cpu mode='custom' match='exact'>
      <model>core2duo</model>
    </cpu>

- guest CPU should be a copy of host CPU as advertised by capabilities
  XML (this is a short cut for manually copying host CPU specification
  from capabilities to domain XML):
    <cpu mode='host-model'/>

  In case a hypervisor does not support the exact host model, libvirt
  automatically falls back to a closest supported CPU model and
  removes/adds features to match host. This behavior can be disabled by
    <cpu mode='host-model'>
      <model fallback='forbid'/>
    </cpu>

- the same as previous returned by virDomainGetXMLDesc with
  VIR_DOMAIN_XML_UPDATE_CPU flag:
    <cpu mode='host-model' match='exact'>
      <model fallback='allow'>Penryn</model>       --+
      <vendor>Intel</vendor>                         |
      <topology sockets='2' cores='4' threads='1'/>  + copied from
      <feature policy='require' name='dca'/>         | capabilities XML
      <feature policy='require' name='xtpr'/>        |
      ...                                          --+
    </cpu>

- guest CPU should be exactly the same as host CPU even in the aspects
  libvirt doesn't model (such domain cannot be migrated unless both
  hosts contain exactly the same CPUs):
    <cpu mode='host-passthrough'/>

- the same as previous returned by virDomainGetXMLDesc with
  VIR_DOMAIN_XML_UPDATE_CPU flag:
    <cpu mode='host-passthrough' match='minimal'>
      <model>Penryn</model>                        --+ copied from caps
      <vendor>Intel</vendor>                         | XML but doesn't
      <topology sockets='2' cores='4' threads='1'/>  | describe all
      <feature policy='require' name='dca'/>         | aspects of the
      <feature policy='require' name='xtpr'/>        | actual guest CPU
      ...                                          --+
    </cpu>
2012-01-17 11:39:23 +01:00
..
x86-baseline-1-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-baseline-1.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-baseline-2-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-baseline-2.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-baseline-incompatible-vendors.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-baseline-no-vendor-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-baseline-no-vendor.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-baseline-some-vendors-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-baseline-some-vendors.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-bogus-feature.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-bogus-model.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-bogus-vendor.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-disable2.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-disable-extra.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-disable.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-forbid-extra.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-forbid.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-force.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-require-extra.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact-require.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-exact.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-guest-nofallback.xml cpu: Optionally forbid fallback CPU models 2012-01-17 11:39:19 +01:00
x86-guest.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-amd-fake.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-amd.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-better.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-better+pentium3-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host-better+pentium3,core2duo-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host-better+pentium3,pentium3-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host-incomp-arch.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-no-vendor.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-worse.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host-worse+guest-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-host+guest-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+guest,model486-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+guest,models-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+guest,models,Penryn-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+guest,models,qemu64-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+guest.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+min.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+nehalem-force-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+pentium3.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-host+strict-force-extra-result.xml Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
x86-min.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-nehalem-force.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-pentium3-amd.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-pentium3.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-strict-disable.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-strict-force-extra.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-strict-full.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00
x86-strict.xml tests: Add unit tests for internal CPU APIs 2010-12-01 14:12:54 +01:00