mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merging svm and vmx cpu_features parameters
This commit is contained in:
parent
6f45f107c9
commit
d05690d269
@ -8,6 +8,14 @@
|
||||
<cpu mode='<%= @cpu_mode %>'>
|
||||
<% if @cpu_mode != 'host-passthrough' %>
|
||||
<model fallback='<%= @cpu_fallback %>'><% if @cpu_mode == 'custom' %><%= @cpu_model %><% end %></model>
|
||||
<% if @nested %>
|
||||
<% if @cpu_features.select{|x| x[:name] == 'vmx'}.empty? %>
|
||||
<feature policy='optional' name='vmx'/>
|
||||
<% end %>
|
||||
<% if @cpu_features.select{|x| x[:name] == 'svm'}.empty? %>
|
||||
<feature policy='optional' name='svm'/>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% @cpu_features.each do |cpu_feature| %>
|
||||
<feature name='<%= cpu_feature[:name] %>' policy='<%= cpu_feature[:policy] %>'/>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user