* [PATCH v3] docs/tcg-plugins: document QEMU_PLUGIN behaviour
@ 2022-03-16 18:14 Christoph Muellner
2022-03-16 19:34 ` Alex Bennée
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Muellner @ 2022-03-16 18:14 UTC (permalink / raw)
To: qemu-devel, Alex Bennée
Cc: Christoph Muellner, Mahmoud Mandour, Alexandre Iooss
QEMU plugins can be loaded via command line arguments or via
the QEMU_PLUGIN environment variable. Currently, only the first method
is documented. Let's document QEMU_PLUGIN.
As drive-by cleanup, this patch fixes the path to the plugins
in the same section of the documentation.
Signed-off-by: Christoph Muellner <cmuellner@linux.com>
---
docs/devel/tcg-plugins.rst | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
index f93ef4fe52..bf66c12885 100644
--- a/docs/devel/tcg-plugins.rst
+++ b/docs/devel/tcg-plugins.rst
@@ -27,13 +27,18 @@ Once built a program can be run with multiple plugins loaded each with
their own arguments::
$QEMU $OTHER_QEMU_ARGS \
- -plugin tests/plugin/libhowvec.so,inline=on,count=hint \
- -plugin tests/plugin/libhotblocks.so
+ -plugin contrib/plugin/libhowvec.so,inline=on,count=hint \
+ -plugin contrib/plugin/libhotblocks.so
Arguments are plugin specific and can be used to modify their
behaviour. In this case the howvec plugin is being asked to use inline
ops to count and break down the hint instructions by type.
+Linux user-mode emulation also evaluates the environment variable
+``QEMU_PLUGIN``::
+
+ QEMU_PLUGIN="file=contrib/plugin/libhowec.so,inline=on,count=hint" $QEMU
+
Writing plugins
---------------
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] docs/tcg-plugins: document QEMU_PLUGIN behaviour
2022-03-16 18:14 [PATCH v3] docs/tcg-plugins: document QEMU_PLUGIN behaviour Christoph Muellner
@ 2022-03-16 19:34 ` Alex Bennée
0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2022-03-16 19:34 UTC (permalink / raw)
To: Christoph Muellner; +Cc: Alexandre Iooss, Mahmoud Mandour, qemu-devel
Christoph Muellner <cmuellner@linux.com> writes:
> QEMU plugins can be loaded via command line arguments or via
> the QEMU_PLUGIN environment variable. Currently, only the first method
> is documented. Let's document QEMU_PLUGIN.
>
> As drive-by cleanup, this patch fixes the path to the plugins
> in the same section of the documentation.
>
> Signed-off-by: Christoph Muellner <cmuellner@linux.com>
Queued to for-7.0/misc-bits, thanks.
There where some minor typos but I've fixed them.
> ---
> docs/devel/tcg-plugins.rst | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
> index f93ef4fe52..bf66c12885 100644
> --- a/docs/devel/tcg-plugins.rst
> +++ b/docs/devel/tcg-plugins.rst
> @@ -27,13 +27,18 @@ Once built a program can be run with multiple plugins loaded each with
> their own arguments::
>
> $QEMU $OTHER_QEMU_ARGS \
> - -plugin tests/plugin/libhowvec.so,inline=on,count=hint \
> - -plugin tests/plugin/libhotblocks.so
> + -plugin contrib/plugin/libhowvec.so,inline=on,count=hint \
> + -plugin contrib/plugin/libhotblocks.so
>
> Arguments are plugin specific and can be used to modify their
> behaviour. In this case the howvec plugin is being asked to use inline
> ops to count and break down the hint instructions by type.
>
> +Linux user-mode emulation also evaluates the environment variable
> +``QEMU_PLUGIN``::
> +
> + QEMU_PLUGIN="file=contrib/plugin/libhowec.so,inline=on,count=hint" $QEMU
> +
> Writing plugins
> ---------------
--
Alex Bennée
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-16 19:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-16 18:14 [PATCH v3] docs/tcg-plugins: document QEMU_PLUGIN behaviour Christoph Muellner
2022-03-16 19:34 ` Alex Bennée
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).