@@ -1575,6 +1575,10 @@ for opt do
1575
1575
;;
1576
1576
--enable-vhost-user) vhost_user=" yes"
1577
1577
;;
1578
+ --disable-vhost-vdpa) vhost_vdpa=" no"
1579
+ ;;
1580
+ --enable-vhost-vdpa) vhost_vdpa=" yes"
1581
+ ;;
1578
1582
--disable-vhost-kernel) vhost_kernel=" no"
1579
1583
;;
1580
1584
--enable-vhost-kernel) vhost_kernel=" yes"
@@ -1883,6 +1887,7 @@ disabled with --disable-FEATURE, default is enabled if available:
1883
1887
vhost-crypto vhost-user-crypto backend support
1884
1888
vhost-kernel vhost kernel backend support
1885
1889
vhost-user vhost-user backend support
1890
+ vhost-vdpa vhost-vdpa kernel backend support
1886
1891
spice spice
1887
1892
rbd rados block device (rbd)
1888
1893
libiscsi iscsi support
@@ -2394,6 +2399,10 @@ test "$vhost_user" = "" && vhost_user=yes
2394
2399
if test " $vhost_user " = " yes" && test " $mingw32 " = " yes" ; then
2395
2400
error_exit " vhost-user isn't available on win32"
2396
2401
fi
2402
+ test " $vhost_vdpa " = " " && vhost_vdpa=$linux
2403
+ if test " $vhost_vdpa " = " yes" && test " $linux " ! = " yes" ; then
2404
+ error_exit " vhost-vdpa is only available on Linux"
2405
+ fi
2397
2406
test " $vhost_kernel " = " " && vhost_kernel=$linux
2398
2407
if test " $vhost_kernel " = " yes" && test " $linux " ! = " yes" ; then
2399
2408
error_exit " vhost-kernel is only available on Linux"
@@ -2422,6 +2431,11 @@ test "$vhost_user_fs" = "" && vhost_user_fs=$vhost_user
2422
2431
if test " $vhost_user_fs " = " yes" && test " $vhost_user " = " no" ; then
2423
2432
error_exit " --enable-vhost-user-fs requires --enable-vhost-user"
2424
2433
fi
2434
+ # vhost-vdpa backends
2435
+ test " $vhost_net_vdpa " = " " && vhost_net_vdpa=$vhost_vdpa
2436
+ if test " $vhost_net_vdpa " = " yes" && test " $vhost_vdpa " = " no" ; then
2437
+ error_exit " --enable-vhost-net-vdpa requires --enable-vhost-vdpa"
2438
+ fi
2425
2439
2426
2440
# OR the vhost-kernel and vhost-user values for simplicity
2427
2441
if test " $vhost_net " = " " ; then
@@ -6947,6 +6961,7 @@ echo "vhost-scsi support $vhost_scsi"
6947
6961
echo " vhost-vsock support $vhost_vsock "
6948
6962
echo " vhost-user support $vhost_user "
6949
6963
echo " vhost-user-fs support $vhost_user_fs "
6964
+ echo " vhost-vdpa support $vhost_vdpa "
6950
6965
echo " Trace backends $trace_backends "
6951
6966
if have_backend " simple" ; then
6952
6967
echo " Trace output file $trace_file -<pid>"
7454
7469
if test " $vhost_net_user " = " yes" ; then
7455
7470
echo " CONFIG_VHOST_NET_USER=y" >> $config_host_mak
7456
7471
fi
7472
+ if test " $vhost_net_vdpa " = " yes" ; then
7473
+ echo " CONFIG_VHOST_NET_VDPA=y" >> $config_host_mak
7474
+ fi
7457
7475
if test " $vhost_crypto " = " yes" ; then
7458
7476
echo " CONFIG_VHOST_CRYPTO=y" >> $config_host_mak
7459
7477
fi
7469
7487
if test " $vhost_user " = " yes" ; then
7470
7488
echo " CONFIG_VHOST_USER=y" >> $config_host_mak
7471
7489
fi
7490
+ if test " $vhost_vdpa " = " yes" ; then
7491
+ echo " CONFIG_VHOST_VDPA=y" >> $config_host_mak
7492
+ fi
7472
7493
if test " $vhost_user_fs " = " yes" ; then
7473
7494
echo " CONFIG_VHOST_USER_FS=y" >> $config_host_mak
7474
7495
fi
0 commit comments