This element is only allowed for host CPUs.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
/* Format children */
virBufferAdjustIndent(&childrenBuf, indent + 2);
- if (def->arch)
+ if (def->type == VIR_CPU_TYPE_HOST && def->arch)
virBufferAsprintf(&childrenBuf, "<arch>%s</arch>\n",
virArchToString(def->arch));
if (virCPUDefFormatBuf(&childrenBuf, def, updateCPU) < 0)
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G5</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G5</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>core2duo</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>core2duo</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor>
<feature policy='require' name='ss'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='ss'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='ss'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Broadwell</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Broadwell</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Conroe</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Conroe</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Penryn</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>core2duo</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Conroe</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor>
<feature policy='require' name='ds'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor>
<feature policy='require' name='ss'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Haswell</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Nehalem</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Nehalem</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<cpu mode='custom' match='exact'>
- <arch>x86_64</arch>
<model fallback='forbid'>Penryn</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>