<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/contrib/plugins, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/contrib/plugins?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/contrib/plugins?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-08-19T22:49:14Z</updated>
<entry>
<title>contrib/plugins/execlog: Fix shadowed declaration warning</title>
<updated>2024-08-19T22:49:14Z</updated>
<author>
<name>Pierrick Bouvier</name>
<email>pierrick.bouvier@linaro.org</email>
</author>
<published>2024-08-14T23:36:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=47f06fb4c878a6e08b6fd19b7798d32b1e041124'/>
<id>urn:sha1:47f06fb4c878a6e08b6fd19b7798d32b1e041124</id>
<content type='text'>
Found on debian stable.

../contrib/plugins/execlog.c: In function ‘vcpu_tb_trans’:
../contrib/plugins/execlog.c:236:22: error: declaration of ‘n’ shadows a previous local [-Werror=shadow=local]
  236 |             for (int n = 0; n &lt; all_reg_names-&gt;len; n++) {
      |                      ^
../contrib/plugins/execlog.c:184:12: note: shadowed declaration is here
  184 |     size_t n = qemu_plugin_tb_n_insns(tb);
      |

Signed-off-by: Pierrick Bouvier &lt;pierrick.bouvier@linaro.org&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-ID: &lt;20240814233645.944327-2-pierrick.bouvier@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>contrib/plugins: add compat for g_memdup2</title>
<updated>2024-07-30T10:44:21Z</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2024-07-29T14:44:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=44e794896759236885f6d30d1f6b9b8b76355d52'/>
<id>urn:sha1:44e794896759236885f6d30d1f6b9b8b76355d52</id>
<content type='text'>
We were premature if bumping this because some of our builds are still
on older glibs. Just copy the compat handler for now and we can remove
it later.

Fixes: ee293103b0 (plugins: update lockstep to use g_memdup2)
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2161
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240729144414.830369-14-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>contrib/plugins: be more vocal building</title>
<updated>2024-07-30T10:44:21Z</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2024-07-29T14:44:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=f0220d747a8b437d043d9344774cbeeb0b31be25'/>
<id>urn:sha1:f0220d747a8b437d043d9344774cbeeb0b31be25</id>
<content type='text'>
With the conversion to meson and removing the old QEMU Makefile
baggage we became very silent when building the plugins. Bring in a
copy of the quiet-command logic (and some magic COMMAs) so we can at
least assure developers we are building them.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2457
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240729144414.830369-13-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>contrib/plugins/cache.c: Remove redundant check of l2_access</title>
<updated>2024-07-30T10:44:18Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2024-07-29T14:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=33ef9cdc289480bbc87fa3ee74c1398848f4e38c'/>
<id>urn:sha1:33ef9cdc289480bbc87fa3ee74c1398848f4e38c</id>
<content type='text'>
In append_stats_line(), we have an expression
   l2_access ? l2_miss_rate : 0.0
But this is inside an if (l2_access &amp;&amp; l2_misses) { ... } block,
so Coverity points out that the false part of the ?: is dead code.

Remove the unnecessary test.

Resolves: Coverity CID 1522458
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-Id: &lt;20240725164851.1930964-1-peter.maydell@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240729144414.830369-12-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/execlog.c: correct dump of registers values</title>
<updated>2024-07-22T08:38:01Z</updated>
<author>
<name>Frédéric Pétrot</name>
<email>frederic.petrot@univ-grenoble-alpes.fr</email>
</author>
<published>2024-07-18T09:45:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=8d073d48b7eae34dad6ec71d6d0ef418d931602b'/>
<id>urn:sha1:8d073d48b7eae34dad6ec71d6d0ef418d931602b</id>
<content type='text'>
Register values are dumped as 'sz' chunks of two nibbles in the execlog
plugin, sz was 1 too big.

Signed-off-by: Frédéric Pétrot &lt;frederic.petrot@univ-grenoble-alpes.fr&gt;
Reviewed-by: Pierrick Bouvier &lt;pierrick.bouvier@linaro.org&gt;
Message-Id: &lt;20240620083805.73603-1-frederic.petrot@univ-grenoble-alpes.fr&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240718094523.1198645-8-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/stoptrigger: TCG plugin to stop execution under conditions</title>
<updated>2024-07-22T08:37:56Z</updated>
<author>
<name>Simon Hamelin</name>
<email>simon.hamelin@grenoble-inp.org</email>
</author>
<published>2024-07-18T09:45:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=58fc249d9ebd7c6ed979cbf039ccfa93d1bae2b9'/>
<id>urn:sha1:58fc249d9ebd7c6ed979cbf039ccfa93d1bae2b9</id>
<content type='text'>
This new plugin allows to stop emulation using conditions on the
emulation state. By setting this plugin arguments, it is possible
to set an instruction count limit and/or trigger address(es) to stop at.
The code returned at emulation exit can be customized.

This plugin demonstrates how someone could stop QEMU execution.
It could be used for research purposes to launch some code and
deterministically stop it and understand where its execution flow went.

Co-authored-by: Alexandre Iooss &lt;erdnaxe@crans.org&gt;
Signed-off-by: Simon Hamelin &lt;simon.hamelin@grenoble-inp.org&gt;
Signed-off-by: Alexandre Iooss &lt;erdnaxe@crans.org&gt;
Reviewed-by: Pierrick Bouvier &lt;pierrick.bouvier@linaro.org&gt;
Message-Id: &lt;20240715081521.19122-2-simon.hamelin@grenoble-inp.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240718094523.1198645-5-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/lockstep: clean-up output</title>
<updated>2024-07-05T11:34:48Z</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2024-07-05T08:40:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=3b8550c955ccd0a31667414d69a469bfdb7a56ff'/>
<id>urn:sha1:3b8550c955ccd0a31667414d69a469bfdb7a56ff</id>
<content type='text'>
We were repeating information which wasn't super clear. As we already
will have dumped the last failing PC just note the divergence and dump
the previous instruction log.

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240705084047.857176-27-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/lockstep: mention the one-insn-per-tb option</title>
<updated>2024-07-05T11:34:48Z</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2024-07-05T08:40:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=13167b5fe93c2faa91aa08f91353b066423b5ec3'/>
<id>urn:sha1:13167b5fe93c2faa91aa08f91353b066423b5ec3</id>
<content type='text'>
This really helps with lockstep although its super slow on big jobs.

Reviewed-by: Manos Pitsidianakis &lt;manos.pitsidianakis@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240705084047.857176-26-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/lockstep: make mixed-mode safe</title>
<updated>2024-07-05T11:34:41Z</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2024-07-05T08:40:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5e77f22ac95d18fdbe7e5c542002786f2126a780'/>
<id>urn:sha1:5e77f22ac95d18fdbe7e5c542002786f2126a780</id>
<content type='text'>
The ExecState is shared across the socket and if we want to compare
say 64 bit and 32 bit binaries we need the two to use the same sizes
for things.

Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240705084047.857176-25-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/lockstep: preserve sock_path</title>
<updated>2024-07-05T11:34:41Z</updated>
<author>
<name>Alex Bennée</name>
<email>alex.bennee@linaro.org</email>
</author>
<published>2024-07-05T08:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=bb3dd92d32e1ea805a1eecbb23b35f7675d8a83e'/>
<id>urn:sha1:bb3dd92d32e1ea805a1eecbb23b35f7675d8a83e</id>
<content type='text'>
We can't assign sock_path directly from the autofree'd GStrv, take a
copy.

Reviewed-by: Manos Pitsidianakis &lt;manos.pitsidianakis@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240705084047.857176-24-alex.bennee@linaro.org&gt;
</content>
</entry>
</feed>
