[DRE-commits] [vagrant-libvirt] 28/163: Do not include features/model when cpu_mode = host-passthrough

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:57:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.

commit d99f305e2bb0eeb8b0ac64ea75c5ecd78fa6d416
Author: Jordan Tardif <jordan at dreamhost.com>
Date:   Mon Aug 18 17:48:28 2014 -0400

    Do not include features/model when cpu_mode = host-passthrough
---
 lib/vagrant-libvirt/templates/domain.xml.erb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/vagrant-libvirt/templates/domain.xml.erb b/lib/vagrant-libvirt/templates/domain.xml.erb
index ea35da6..4a5d59f 100644
--- a/lib/vagrant-libvirt/templates/domain.xml.erb
+++ b/lib/vagrant-libvirt/templates/domain.xml.erb
@@ -5,9 +5,11 @@
 
   <% if @nested %>
     <cpu mode='<%= @cpu_mode %>'>
+      <% unless @cpu_mode == 'host-passthrough' %>
       <model fallback='allow'>qemu64</model>
       <feature policy='optional' name='vmx'/>
       <feature policy='optional' name='svm'/>
+      <% end %>
     </cpu>
   <% end %>
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list