Skip to content

Instantly share code, notes, and snippets.

@geertj
Created July 2, 2014 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geertj/56425d0fdc7c54d4bc9f to your computer and use it in GitHub Desktop.
Save geertj/56425d0fdc7c54d4bc9f to your computer and use it in GitHub Desktop.
Patch for libvirt's cpu_map.xml to detect the correct processor when used with nested SVM
--- cpu_map.xml.orig 2014-07-02 18:50:45.284772580 +0200
+++ cpu_map.xml.new 2014-07-02 18:33:47.000000000 +0200
@@ -453,6 +453,8 @@
</model>
<!-- Intel CPU models -->
+
+<!--
<model name='Conroe'>
<model name='pentiumpro'/>
<vendor name='Intel'/>
@@ -510,6 +512,7 @@
<feature name='invpcid'/>
<feature name='rtm'/>
</model>
+-->
<!-- AMD CPUs -->
<model name='athlon'>
@@ -540,11 +543,8 @@
</model>
<model name='Opteron_G2'>
- <model name='Opteron_G1'/>
- <feature name='cx16'/>
- <feature name='rdtscp'/>
- <feature name='lahf_lm'/>
- <feature name='svm'/>
+ <vendor name='Intel'/>
+ <model name='cpu64-rhel6'/>
</model>
<model name='Opteron_G3'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment