only use vhost-net for native kvm machines

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2018-11-12 14:10:40 +01:00 committed by Thomas Lamprecht
parent 0f27a91d3d
commit 6f0cb67588

View File

@ -1950,7 +1950,9 @@ sub print_netdev_full {
if length($ifname) >= 16;
my $vhostparam = '';
$vhostparam = ',vhost=on' if $kernel_has_vhost_net && $net->{model} eq 'virtio';
if (is_native($arch)) {
$vhostparam = ',vhost=on' if $kernel_has_vhost_net && $net->{model} eq 'virtio';
}
my $vmname = $conf->{name} || "vm$vmid";