Skip to contentSkip to conversation

doc: add note for vhost builtin example

PATCH Superseded Xuan Ding 2 participants 4 messages Mar 25, 2020 – Apr 17, 2020

lore
Share & tools
lore

Xuan Ding

author
#0 lore raw

PATCH 1/1 doc: add note for vhost builtin example

Add memory pre-allocation note for vhost example when enabling "builtin-net-driver".

---
 doc/guides/sample_app_ug/vhost.rst | 6 ++++++
 1 file changed, 6 insertions(+)
doc/guides/sample_app_ug/vhost.rst +6 -0
index a71ada654..1db3ae931 100644
@@ -201,3 +201,9 @@ Common Issues
 
   QEMU vhost net device start will fail if protocol feature is not negotiated.
   DPDK virtio-user pmd can be the replacement of QEMU.
+
+* Device start fails when enabling "builtin-net-driver" without memory
+  pre-allocation
+
+  The builtin example doesn't support dynamic memory allocation. "--socket-mem"
+  option need to be added when enabling "builtin-net-driver".
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v2 1/1 doc: add note for vhost builtin example

Add memory pre-allocation note for vhost example when enabling "builtin-net-driver".

---

v2:
* Modified expression in doc to make it more accurate.

---
 doc/guides/sample_app_ug/vhost.rst | 7 +++++++
 1 file changed, 7 insertions(+)
doc/guides/sample_app_ug/vhost.rst +7 -0
index a71ada654..b7ed4f8bd 100644
@@ -201,3 +201,10 @@ Common Issues
 
   QEMU vhost net device start will fail if protocol feature is not negotiated.
   DPDK virtio-user pmd can be the replacement of QEMU.
+
+* Device start fails when enabling "builtin-net-driver" without memory
+  pre-allocation
+
+  The builtin example doesn't support dynamic memory allocation. When vhost
+  backend enables "builtin-net-driver", "--socket-mem" option should be
+  added at virtio-user pmd side as a startup item.
Signature · 1 line
2.17.1
#3 lore raw
In reply to Xuan Ding
Quoted 11 lines · Xuan Ding

Add memory pre-allocation note for vhost example when enabling "builtin-net-driver".

---

v2:
* Modified expression in doc to make it more accurate.

---
 doc/guides/sample_app_ug/vhost.rst | 7 +++++++
 1 file changed, 7 insertions(+)

Applied to dpdk-next-virtio/master

Thanks,
Maxime