just return true for now, the use is guarded by an 'is_native($arch)'
check anyway.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
}
-my $kernel_has_vhost_net = -c '/dev/vhost-net';
+sub kernel_has_vhost_net {
+ return -c '/dev/vhost-net';
+}
sub valid_drive_names {
# order is important - used to autoselect boot disk
my $vhostparam = '';
if (is_native($arch)) {
- $vhostparam = ',vhost=on' if $kernel_has_vhost_net && $net->{model} eq 'virtio';
+ $vhostparam = ',vhost=on' if kernel_has_vhost_net() && $net->{model} eq 'virtio';
}
my $vmname = $conf->{name} || "vm$vmid";
kvm_version => sub {
return $current_test->{qemu_version} // $base_env->{real_qemu_version};
},
+ kernel_has_vhost_net => sub {
+ return 1; # TODO: make this per-test configurable?
+ },
get_host_arch => sub() {
return $current_test->{host_arch} // 'x86_64';
},