Do not include features/model when cpu_mode = host-passthrough

This commit is contained in:
Jordan Tardif
2014-08-18 17:48:28 -04:00
parent f1648e4c88
commit d99f305e2b

View File

@@ -5,9 +5,11 @@
<% if @nested %> <% if @nested %>
<cpu mode='<%= @cpu_mode %>'> <cpu mode='<%= @cpu_mode %>'>
<% unless @cpu_mode == 'host-passthrough' %>
<model fallback='allow'>qemu64</model> <model fallback='allow'>qemu64</model>
<feature policy='optional' name='vmx'/> <feature policy='optional' name='vmx'/>
<feature policy='optional' name='svm'/> <feature policy='optional' name='svm'/>
<% end %>
</cpu> </cpu>
<% end %> <% end %>