]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Use host-passthrough CPU mode for all KVM guests
authorTobias Brunner <tobias@strongswan.org>
Tue, 4 May 2021 13:40:45 +0000 (15:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 10 May 2021 08:04:28 +0000 (10:04 +0200)
This should give us the best performance and feature set on modern
hardware (in particular when compared to code2duo, which e.g. does not allow
nested virtualization).

Closes strongswan/strongswan#340.

testing/config/kvm/alice.xml
testing/config/kvm/bob.xml
testing/config/kvm/carol.xml
testing/config/kvm/dave.xml
testing/config/kvm/moon.xml
testing/config/kvm/sun.xml
testing/config/kvm/venus.xml
testing/config/kvm/winnetou.xml

index 63fefbe44df9333694226fb039033afc01898651..3eb2a99a9d3fa948cf72658e906ee7fd4161b8aa 100644 (file)
@@ -10,6 +10,7 @@
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index 48bef748688ad5688b5f00699474231718387f25..90acb7fb14563e6534324f979f98a45b4074a1bc 100644 (file)
@@ -10,6 +10,7 @@
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index d7249c38c81ab94115e75fe4489f585ef3682a98..96f23dfe22db28a9bbde6219c929150759b83cb2 100644 (file)
@@ -10,6 +10,7 @@
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index bf070f1b132c6ce8f1c67ea883a6899e0ab8fe9f..369514dbac2726caf389b7fff0c1c81f9e87e160 100644 (file)
@@ -10,6 +10,7 @@
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index 4ffaf809a89d8619371f7700c614ebd03115e3b4..398e36f6c1ff5378909b8f8b4a2b53c427bd5338 100644 (file)
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
-  <cpu>
-    <model fallback='allow'>core2duo</model>
-    <feature policy='optional' name='aes'/>
-    <feature policy='optional' name='pclmuldq'/>
-  </cpu>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index 2e5a382ea0be2fde8a556113a33368482dbbdbb6..f77839ad0a7abad4541b672b461c2419cf9d7eb2 100644 (file)
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
-  <cpu>
-    <model fallback='allow'>core2duo</model>
-    <feature policy='optional' name='aes'/>
-    <feature policy='optional' name='pclmuldq'/>
-  </cpu>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index a0b60171b510ae827e5f2bc6c7c2a369241bbbf6..aa15705c61bfc5113aed083f92deebc854a6ffea 100644 (file)
@@ -10,6 +10,7 @@
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>
index 3b42e38f271e79947873a910b3be8564051dd5d4..7ada13180ba021292d516878431aa09abf70c6a3 100644 (file)
@@ -10,6 +10,7 @@
     <cmdline>root=/dev/vda1 loglevel=1 console=hvc0 net.ifnames=0</cmdline>
     <boot dev='hd'/>
   </os>
+  <cpu mode='host-passthrough'></cpu>
   <features>
     <acpi/>
     <apic/>