[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour
|
From: |
Alex Bennée |
|
Subject: |
Re: [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour |
|
Date: |
Wed, 16 Mar 2022 15:00:10 +0000 |
|
User-agent: |
mu4e 1.7.10; emacs 28.0.92 |
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.
>
> Signed-off-by: Christoph Muellner <cmuellner@linux.com>
> ---
> docs/devel/tcg-plugins.rst | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
> index f93ef4fe52..ba48be18d0 100644
> --- a/docs/devel/tcg-plugins.rst
> +++ b/docs/devel/tcg-plugins.rst
> @@ -34,6 +34,10 @@ 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.
>
> +QEMU also evaluates the environment variable ``QEMU_PLUGIN``::
You should also make it clear this only works for *-user builds of QEMU.
For system emulation you still need to use the CLI interface.
> +
> + QEMU_PLUGIN="file=tests/plugin/libhowec.so,inline=on,count=hint" $QEMU
> +
> Writing plugins
> ---------------
--
Alex Bennée