提交 ef00a05e 编写于 作者: P Paolo Bonzini 提交者: Jiri Denemark

x86: add kvm32 and kvm64, update qemu64

Recently (or not so recently) QEMU added the kvm32 and kvm64
architectures, representing a least common denominator of all
hosts that can run KVM.  Add them to the machine map.

Also, some features that TCG supports were added to qemu64.
Add them to the cpu_map.xml whenever KVM is guaranteed to support
those.  We still have to leave some out, because they would not
be available to guests running on older hosts.
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 4a00c099
......@@ -303,6 +303,15 @@
<feature name='pni'/>
</model>
<model name='kvm32'>
<model name='pentiumpro'/>
<feature name='mtrr'/>
<feature name='clflush'/>
<feature name='mca'/>
<feature name='pse36'/>
<feature name='pni'/>
</model>
<model name='coreduo'>
<model name='pentiumpro'/>
<feature name='vme'/>
......@@ -321,10 +330,32 @@
<feature name='mca'/>
<feature name='pse36'/>
<feature name='pni'/>
<feature name='cx16'/>
<feature name='lm'/>
<feature name='syscall'/>
<feature name='nx'/>
<feature name='svm'/>
<!-- These are supported only by TCG. KVM supports them only if the
host does. So we leave them out:
<feature name='popcnt'/>
<feature name='lahf_lm'/>
<feature name='sse4a'/>
<feature name='abm'/>
-->
</model>
<model name='kvm64'>
<model name='pentiumpro'/>
<feature name='mtrr'/>
<feature name='clflush'/>
<feature name='mca'/>
<feature name='pse36'/>
<feature name='pni'/>
<feature name='cx16'/>
<feature name='lm'/>
<feature name='syscall'/>
<feature name='nx'/>
</model>
<model name='core2duo'>
......
<cpu mode='custom' match='exact'>
<model fallback='allow'>Opteron_G2</model>
<feature policy='disable' name='svm'/>
<feature policy='disable' name='rdtscp'/>
<model fallback='allow'>kvm64</model>
<feature policy='require' name='lahf_lm'/>
</cpu>
......@@ -6,7 +6,6 @@
<feature policy='require' name='sse4.1'/>
<feature policy='require' name='dca'/>
<feature policy='require' name='xtpr'/>
<feature policy='require' name='cx16'/>
<feature policy='require' name='ssse3'/>
<feature policy='require' name='monitor'/>
<feature policy='require' name='pbe'/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册