From: Leo Yan <leo.yan@linaro.org>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: qemu-devel@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Manos Pitsidianakis" <manos.pitsidianakis@linaro.org>,
"Mathieu Poirier" <mathieu.poirier@linaro.org>
Subject: Re: [PATCH v2 2/4] docs/system: Add vhost-user-input documentation
Date: Tue, 14 Nov 2023 22:25:55 +0800 [thread overview]
Message-ID: <20231114142555.GD132024@leoy-huanghe> (raw)
In-Reply-To: <CAJ+F1CJTGWoV2kvzcxMsp6wE-6d_c2OxQfVQ+025DxK3kK3EPA@mail.gmail.com>
Hi Marc-André,
+ Mathieu for vhost RNG stuff.
On Tue, Nov 14, 2023 at 01:54:50PM +0400, Marc-André Lureau wrote:
> Hi
>
> On Mon, Nov 13, 2023 at 11:04 PM Leo Yan <leo.yan@linaro.org> wrote:
[...]
> > @@ -2233,6 +2233,7 @@ L: virtio-fs@redhat.com
> > virtio-input
> > M: Gerd Hoffmann <kraxel@redhat.com>
> > S: Odd Fixes
> > +F: docs/system/devices/vhost-user-input.rst
> > F: hw/input/vhost-user-input.c
> > F: hw/input/virtio-input*.c
> > F: include/hw/virtio/virtio-input.h
> > diff --git a/docs/system/devices/vhost-user-input.rst b/docs/system/devices/vhost-user-input.rst
>
> You need to include the file in the toctree, in docs/system/device-emulation.rst
Will update the toctree in next version.
[...]
> > +The QEMU invocation needs to create a chardev socket to communicate with the
> > +backend daemon and share memory with the guest over a memfd.
> > +
> > +::
> > +
> > + host# qemu-system \
> > + -chardev socket,path=/tmp/input.sock,id=mouse0 \
> > + -device vhost-user-input-pci,chardev=mouse0 \
> > + -m 4096 \
> > + -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \
> > + -numa node,memdev=mem
>
>
> Well, this is not a memfd. This is taken from vhost-user-rng.rst, and
> should probably be adjusted there too.
Yeah, I copied from vhost-user-rng.rst.
To be easier for our life, I will firstly fix this patch for this part,
later we can consider to update vhost-user-rng.rst in a separate patch.
Looped in Mathieu to be awared.
> It needs shared memory, memory-backend-file can provide it and is
> generally more available than memfd, although memfd should be
> preferred as it offers some extra security guarantees. There is
> already some explanations in vhost-user.rst, maybe we should just add
> extra links.
I will update the doc as:
"The QEMU invocation needs to create a chardev socket to communicate with the
backend daemon and access the VirtIO queues with the guest over the
:ref:`_shared_memory_object`."
Thanks,
Leo
next prev parent reply other threads:[~2023-11-14 14:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 19:02 [PATCH v2 0/4] virtio: Refactor vhost input stub Leo Yan
2023-11-13 19:02 ` [PATCH v2 1/4] hw/virtio: Support set_config() callback in vhost-user-base Leo Yan
2023-11-14 9:44 ` Marc-André Lureau
2023-11-13 19:02 ` [PATCH v2 2/4] docs/system: Add vhost-user-input documentation Leo Yan
2023-11-14 9:54 ` Marc-André Lureau
2023-11-14 14:25 ` Leo Yan [this message]
2023-11-13 19:02 ` [PATCH v2 3/4] hw/virtio: Move vhost-user-input into virtio folder Leo Yan
2023-11-13 19:02 ` [PATCH v2 4/4] hw/virtio: derive vhost-user-input from vhost-user-base Leo Yan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231114142555.GD132024@leoy-huanghe \
--to=leo.yan@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=kraxel@redhat.com \
--cc=manos.pitsidianakis@linaro.org \
--cc=marcandre.lureau@gmail.com \
--cc=mathieu.poirier@linaro.org \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).