Do not format <arch> in guest CPU XML

This element is only allowed for host CPUs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2013-07-24 10:15:38 +02:00
parent 8793133c11
commit 5cbc247e0d
50 changed files with 1 additions and 50 deletions

View File

@ -536,7 +536,7 @@ virCPUDefFormatBufFull(virBufferPtr buf,
/* Format children */ /* Format children */
virBufferAdjustIndent(&childrenBuf, indent + 2); virBufferAdjustIndent(&childrenBuf, indent + 2);
if (def->arch) if (def->type == VIR_CPU_TYPE_HOST && def->arch)
virBufferAsprintf(&childrenBuf, "<arch>%s</arch>\n", virBufferAsprintf(&childrenBuf, "<arch>%s</arch>\n",
virArchToString(def->arch)); virArchToString(def->arch));
if (virCPUDefFormatBuf(&childrenBuf, def, updateCPU) < 0) if (virCPUDefFormatBuf(&childrenBuf, def, updateCPU) < 0)

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G5</model> <model fallback='forbid'>Opteron_G5</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G5</model> <model fallback='forbid'>Opteron_G5</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>core2duo</model> <model fallback='forbid'>core2duo</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>core2duo</model> <model fallback='forbid'>core2duo</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model> <model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model> <model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ss'/> <feature policy='require' name='ss'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model> <model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model> <model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model> <model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ss'/> <feature policy='require' name='ss'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model> <model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>IvyBridge</model> <model fallback='forbid'>IvyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ss'/> <feature policy='require' name='ss'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Broadwell</model> <model fallback='forbid'>Broadwell</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Broadwell</model> <model fallback='forbid'>Broadwell</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Conroe</model> <model fallback='forbid'>Conroe</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Conroe</model> <model fallback='forbid'>Conroe</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Penryn</model> <model fallback='forbid'>Penryn</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model> <model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model> <model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model> <model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model> <model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model> <model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model> <model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G4</model> <model fallback='forbid'>Opteron_G4</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>core2duo</model> <model fallback='forbid'>core2duo</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model> <model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Opteron_G3</model> <model fallback='forbid'>Opteron_G3</model>
<vendor>AMD</vendor> <vendor>AMD</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Conroe</model> <model fallback='forbid'>Conroe</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model> <model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ds'/> <feature policy='require' name='ds'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Skylake-Client</model> <model fallback='forbid'>Skylake-Client</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='ss'/> <feature policy='require' name='ss'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell-noTSX</model> <model fallback='forbid'>Haswell-noTSX</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>SandyBridge</model> <model fallback='forbid'>SandyBridge</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Haswell</model> <model fallback='forbid'>Haswell</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Nehalem</model> <model fallback='forbid'>Nehalem</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Nehalem</model> <model fallback='forbid'>Nehalem</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>

View File

@ -1,5 +1,4 @@
<cpu mode='custom' match='exact'> <cpu mode='custom' match='exact'>
<arch>x86_64</arch>
<model fallback='forbid'>Penryn</model> <model fallback='forbid'>Penryn</model>
<vendor>Intel</vendor> <vendor>Intel</vendor>
<feature policy='require' name='vme'/> <feature policy='require' name='vme'/>