doc: add code example for virtio-user exception path
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 10 Jun 2022 15:35:34 +0000 (16:35 +0100)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 8 Jul 2022 09:15:11 +0000 (11:15 +0200)
commit99c58d238d4a3d7969c94dac1a087d05e1ed14e3
tree760bd2a26dc12c5dd8931692353ff72f6adbbbd5
parentdecb35d890209f603b01c1d23f35995bd51228fc
doc: add code example for virtio-user exception path

The HOWTO guide for using virtio-user as an exception path to the kernel
only provided an example of how testpmd may be used for that purpose.
However, a real application wanting to use virtio-user as exception path
would likely want to create such devices from code within the app
itself. Therefore, we update the doc with instructions and a code
snippet showing how this may be done.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/howto/virtio_user_as_exception_path.rst