<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/contrib/plugins, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/contrib/plugins?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/contrib/plugins?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-10-31T20:37:59+00:00</updated>
<entry>
<title>contrib/plugins: protect execlog's last_exec expansion</title>
<updated>2022-10-31T20:37:59+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2022-10-27T18:36:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=14fd492b89b512735ac3abf8f5300db865129378'/>
<id>urn:sha1:14fd492b89b512735ac3abf8f5300db865129378</id>
<content type='text'>
We originally naively treated expansion as safe because we expected
each new CPU/thread to appear in order. However the -M raspi2 model
triggered a case where a new high cpu_index thread started executing
just before a smaller one.

Clean this up by converting the GArray into the simpler GPtrArray and
then holding a lock for the expansion.

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Cc: Alexandre Iooss &lt;erdnaxe@crans.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20221027183637.2772968-29-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>contrib/plugins: enable debug on CONFIG_DEBUG_TCG</title>
<updated>2022-10-31T20:37:59+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2022-10-27T18:36:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a4cc0b7dd7dc27f6afb5d4e0338d953e36319c65'/>
<id>urn:sha1:a4cc0b7dd7dc27f6afb5d4e0338d953e36319c65</id>
<content type='text'>
We used to rely on QEMU_CFLAGS to expose the debug flags but now this
is synthesised by meson and only available to the main build. Add our
own flags if we detect the build has been enabled with
CONFIG_DEBUG_TCG (which is the default for --enable-debug anyway).

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Cc: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;20221027183637.2772968-28-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>contrib/plugins: reset skip when matching in execlog</title>
<updated>2022-10-06T10:53:40+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2022-09-29T11:42:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8c1f1020d6e7dd329f5cf0cd8fd108dfb224eaec'/>
<id>urn:sha1:8c1f1020d6e7dd329f5cf0cd8fd108dfb224eaec</id>
<content type='text'>
The purpose of the matches was to only track the execution of
instructions we care about. Without resetting skip to the value at the
start of the block we end up dumping all instructions after the match
with the consequent load on the instrumentation.

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Cc: Alexandre Iooss &lt;erdnaxe@crans.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-Id: &lt;20220929114231.583801-40-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins: extend execlog to filter matches</title>
<updated>2022-10-06T10:53:40+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2022-09-29T11:42:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b7855bf65f5bed868b06d6492a6d8a174f6cb71b'/>
<id>urn:sha1:b7855bf65f5bed868b06d6492a6d8a174f6cb71b</id>
<content type='text'>
Sometimes the whole execlog is just two much so add the ability to
filter by instruction opcode or address.

[AJB: this shows for example

 qemu-system-aarch64 -display none -serial mon:stdio \
   -M virt -cpu max \
   -semihosting-config enable=on \
   -kernel ./tests/tcg/aarch64-softmmu/memory-sve \
   -plugin ./contrib/plugins/libexeclog.so,ifilter=st1w,afilter=0x40001808 -d plugin -D plugin.out

the st1w SVE instruction is not instrumenting its stores.]

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: Alexandre Iooss &lt;erdnaxe@crans.org&gt;
Cc: Robert Henry &lt;robhenry@microsoft.com&gt;
Cc: Aaron Lindsay &lt;aaron@os.amperecomputing.com&gt;
Message-Id: &lt;20220929114231.583801-36-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>misc: fix commonly doubled up words</title>
<updated>2022-08-01T09:58:02+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2022-07-07T16:37:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7a21bee2aa52fc95b25e38372678986ee94f05f1'/>
<id>urn:sha1:7a21bee2aa52fc95b25e38372678986ee94f05f1</id>
<content type='text'>
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20220707163720.1421716-5-berrange@redhat.com&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>contrib/plugins: add a drcov plugin</title>
<updated>2022-02-09T12:08:42+00:00</updated>
<author>
<name>Ivanov Arkady</name>
</author>
<published>2022-02-04T20:43:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=227b45dc4218516262cc892b661e5438e134cf2e'/>
<id>urn:sha1:227b45dc4218516262cc892b661e5438e134cf2e</id>
<content type='text'>
This patch adds the ability to generate files in drcov format. Primary
goal this script is to have coverage logfiles thatwork in Lighthouse.

Signed-off-by: Ivanov Arkady &lt;arkadiy.ivanov@ispras.ru&gt;
Message-Id: &lt;163491884553.304355.13246023070235438959.stgit@pc-System-Product-Name&gt;
[AJB: use g_ptr_array instead of slist]
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20220204204335.1689602-23-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/cache: make L2 emulation optional through args</title>
<updated>2021-11-04T10:32:01+00:00</updated>
<author>
<name>Mahmoud Mandour</name>
</author>
<published>2021-10-26T10:22:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=447f935674214dd4e449cc4a27711489779cd1ff'/>
<id>urn:sha1:447f935674214dd4e449cc4a27711489779cd1ff</id>
<content type='text'>
By default L2 is not enabled and is enabled by either using the
newly-introduced "l2" boolean argument, or by setting any of the L2
cache parameters using args. On specifying "l2=on", the default cache
configuration is used.

Signed-off-by: Mahmoud Mandour &lt;ma.mandourr@gmail.com&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20210810134844.166490-5-ma.mandourr@gmail.com&gt;
Message-Id: &lt;20211026102234.3961636-17-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/cache: split command line arguments into name and value</title>
<updated>2021-11-04T10:32:01+00:00</updated>
<author>
<name>Mahmoud Mandour</name>
</author>
<published>2021-10-26T10:22:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=53366adf9c0c6b00ec54ff3074037c82995c7ed0'/>
<id>urn:sha1:53366adf9c0c6b00ec54ff3074037c82995c7ed0</id>
<content type='text'>
This way of handling args is more lenient and sets a better framework to
parse boolean command line arguments.

Signed-off-by: Mahmoud Mandour &lt;ma.mandourr@gmail.com&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20210810134844.166490-4-ma.mandourr@gmail.com&gt;
Message-Id: &lt;20211026102234.3961636-16-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/cache: implement unified L2 cache emulation</title>
<updated>2021-11-04T10:32:01+00:00</updated>
<author>
<name>Mahmoud Mandour</name>
</author>
<published>2021-10-26T10:22:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=14f3110a99d4edf683c6b503ca02dba09a124aff'/>
<id>urn:sha1:14f3110a99d4edf683c6b503ca02dba09a124aff</id>
<content type='text'>
This adds an implementation of a simple L2 configuration, in which a
unified L2 cache (stores both blocks of instructions and data) is
maintained for each core separately, with no inter-core interaction
taken in account. The L2 cache is used as a backup for L1 and is only
accessed if the wanted block does not exist in L1.

In terms of multi-threaded user-space emulation, the same approximation
of L1 is done, a static number of caches is maintained, and each and
every memory access initiated by a thread will have to go through one of
the available caches.

An atomic increment is used to maintain the number of L2 misses per
instruction.

The default cache parameters of L2 caches is:

    2MB cache size
    16-way associativity
    64-byte blocks

Signed-off-by: Mahmoud Mandour &lt;ma.mandourr@gmail.com&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20210810134844.166490-3-ma.mandourr@gmail.com&gt;
Message-Id: &lt;20211026102234.3961636-15-alex.bennee@linaro.org&gt;
</content>
</entry>
<entry>
<title>plugins/cache: freed heap-allocated mutexes</title>
<updated>2021-11-04T10:32:01+00:00</updated>
<author>
<name>Mahmoud Mandour</name>
</author>
<published>2021-10-26T10:22:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ad039c506edaf11fc39fca218c751b26521da21c'/>
<id>urn:sha1:ad039c506edaf11fc39fca218c751b26521da21c</id>
<content type='text'>
Signed-off-by: Mahmoud Mandour &lt;ma.mandourr@gmail.com&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20210810134844.166490-2-ma.mandourr@gmail.com&gt;
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-Id: &lt;20211026102234.3961636-14-alex.bennee@linaro.org&gt;
</content>
</entry>
</feed>
