mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Do not include features/model when cpu_mode = host-passthrough
This commit is contained in:
@@ -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 %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user