mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 00:36:52 +00:00
only use vhost-net for native kvm machines
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
0f27a91d3d
commit
6f0cb67588
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user