[pve-devel] [PATCH qemu-server 09/13] only use vhost-net for native kvm machines
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Oct 24 10:56:45 CEST 2018
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
PVE/QemuServer.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 5980720..95f3f42 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1909,7 +1909,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";
--
2.11.0
More information about the pve-devel
mailing list