Skip to content

Commit 1c1ce14

Browse files
committed
wip
1 parent 794559f commit 1c1ce14

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

doc/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ For specific brick'informations and shemas:
1515
* [VTEP brick.](VTEP.md)
1616
* [SWITCH brick.](SWITCH.md)
1717

18+
About out testing architecture:
19+
* `wip`
20+

doc/VHOST.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ As previously described, VHOST use an unix socket and a hugepage to communicate
3434
It manages a queue and reduce memmory write/free operatons.<br>
3535
It's based on a cient(s)/server model, meaning that one server can handle multiple connections through the socket.<br> Only packet address in the hugepage are flowing through the socket.<br>
3636

37+
## How to use it
38+
39+
* `pg_vhost_start("/tmp", &error)`: start the vhost driver and setup the socket's folder.
40+
* `pg_vhost_new("vhost-0", flags, &error);`: create the brick. The socket will be named `qemu-vhost-0`. Here are some flags availables:
41+
* `PG_VHOST_USER_CLIENT`
42+
* `PG_VHOST_USER_DEQUEUE_ZERO_COPY`
43+
3744
## Current VHOST brick's status
3845

39-
Currently the VHOST brick only works in SERVER mode... Which means that if packetgraph crash, we will need to reboot VMs...<br>Not a good thing!
46+
Currently the VHOST brick only works in SERVER mode... Which means that if packetgraph crash, we will need to reboot VMs...<br>Not a good thing!<br>
47+
However, a PR in in progress to adress this issue.<br>

0 commit comments

Comments
 (0)