DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] vhost: enable CONFIG feature
@ 2022-09-13  9:55 Hao Chen
  2022-09-15  8:04 ` houyl
  2022-09-26  7:26 ` Xia, Chenbo
  0 siblings, 2 replies; 5+ messages in thread
From: Hao Chen @ 2022-09-13  9:55 UTC (permalink / raw)
  To: maxime.coquelin, chenbo.xia; +Cc: dev, houyl, zy, Hao Chen

Enable this feature, so that libvirt or qemu can call vdpa vendor
driver's ops '.get_config' through 'vhost_net_get_config' to get
the mac address of the vdpa hardware without manual configuration.

Signed-off-by: Hao Chen <chenh@yusur.tech>
---
 lib/vhost/vhost_user.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h
index 8ecca68597..12e8d116f3 100644
--- a/lib/vhost/vhost_user.h
+++ b/lib/vhost/vhost_user.h
@@ -23,7 +23,8 @@
 					 (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \
 					 (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \
 					 (1ULL << VHOST_USER_PROTOCOL_F_PAGEFAULT) | \
-					 (1ULL << VHOST_USER_PROTOCOL_F_STATUS))
+					 (1ULL << VHOST_USER_PROTOCOL_F_STATUS) | \
+					 (1ULL << VHOST_USER_PROTOCOL_F_CONFIG))
 
 typedef enum VhostUserRequest {
 	VHOST_USER_NONE = 0,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-08  7:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13  9:55 [PATCH] vhost: enable CONFIG feature Hao Chen
2022-09-15  8:04 ` houyl
2022-09-26  7:26 ` Xia, Chenbo
2022-10-08  3:40   ` 陈浩
2022-10-08  7:56   ` Hao Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).