<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/target/ppc, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/target/ppc?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/target/ppc?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-11-17T14:28:04+00:00</updated>
<entry>
<title>target/ppc: Fix build warnings when building with 'disable-tcg'</title>
<updated>2022-11-17T14:28:04+00:00</updated>
<author>
<name>Vaibhav Jain</name>
</author>
<published>2022-11-16T13:17:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=049b4ad66984aad278b3fc0a75b5a995c9b66a16'/>
<id>urn:sha1:049b4ad66984aad278b3fc0a75b5a995c9b66a16</id>
<content type='text'>
Kowshik reported that building qemu with GCC 12.2.1 for 'ppc64-softmmu'
target is failing due to following build warnings:

&lt;snip&gt;
 ../target/ppc/cpu_init.c:7018:13: error: 'ppc_restore_state_to_opc' defined but not used [-Werror=unused-function]
 7018 | static void ppc_restore_state_to_opc(CPUState *cs,
&lt;snip&gt;

Fix this by wrapping these function definitions in 'ifdef CONFIG_TCG' so that
they are only defined if qemu is compiled with '--enable-tcg'

Reported-by: Kowshik Jois B S &lt;kowsjois@linux.ibm.com&gt;
Fixes: 61bd1d2942 ("target/ppc: Convert to tcg_ops restore_state_to_opc")
Fixes: 670f1da374 ("target/ppc: Implement hashst and hashchk")
Fixes: 53ae2aeb94 ("target/ppc: Implement hashstp and hashchkp")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1319
Signed-off-by: Vaibhav Jain &lt;vaibhav@linux.ibm.com&gt;
Reviewed-by: Greg Kurz &lt;groug@kaod.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Tested-by: Kowshik Jois B S &lt;kowsjois@linux.vnet.ibm.com&gt;
Message-Id: &lt;20221116131743.658708-1-vaibhav@linux.ibm.com&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>accel/tcg: Remove will_exit argument from cpu_restore_state</title>
<updated>2022-10-31T21:31:41+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2022-10-24T13:09:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3d419a4dd227f174447e0b3978028a1cd52ccc5e'/>
<id>urn:sha1:3d419a4dd227f174447e0b3978028a1cd52ccc5e</id>
<content type='text'>
The value passed is always true, and if the target's
synchronize_from_tb hook is non-trivial, not exiting
may be erroneous.

Reviewed-by: Claudio Fontana &lt;cfontana@suse.de&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>target/ppc: Fix regression in Radix MMU</title>
<updated>2022-10-29T09:34:52+00:00</updated>
<author>
<name>Leandro Lupori</name>
</author>
<published>2022-10-28T18:36:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fb22d743b93b49b73930aff40d3ba9d252f81a56'/>
<id>urn:sha1:fb22d743b93b49b73930aff40d3ba9d252f81a56</id>
<content type='text'>
Commit 47e83d9107 ended up unintentionally changing the control flow
of ppc_radix64_process_scoped_xlate(). When guest_visible is false,
it must not raise an exception, even if the radix configuration is
not valid.

This regression prevented Linux boot in a nested environment with
L1 using TCG and emulating KVM (cap-nested-hv=on) and L2 using
KVM. L2 would hang on Linux's futex_init(), when it tested how a
futex_atomic_cmpxchg_inatomic() handled a fault, because L1 would
start a loop of trying to perform partition scoped translations
and raising exceptions.

Fixes: 47e83d9107 ("target/ppc: Improve Radix xlate level validation")
Reported-by: Victor Colombo &lt;victor.colombo@eldorado.org.br&gt;
Signed-off-by: Leandro Lupori &lt;leandro.lupori@eldorado.org.br&gt;
Tested-by: Víctor Colombo &lt;victor.colombo@eldorado.org.br&gt;
Reviewed-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
Message-Id: &lt;20221028183617.121786-1-leandro.lupori@eldorado.org.br&gt;
[danielhb: use %"PRIu64" to print 'nls']
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: Increment PMC5 with inline insns</title>
<updated>2022-10-28T16:15:23+00:00</updated>
<author>
<name>Leandro Lupori</name>
</author>
<published>2022-10-25T20:24:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=eeaaefe9fa8b95a7ed39ee86257f3bf1af751804'/>
<id>urn:sha1:eeaaefe9fa8b95a7ed39ee86257f3bf1af751804</id>
<content type='text'>
Profiling QEMU during Fedora 35 for PPC64 boot revealed that
6.39% of total time was being spent in helper_insns_inc(), on a
POWER9 machine. To avoid calling this helper every time PMCs had
to be incremented, an inline implementation of PMC5 increment and
check for overflow was developed. This led to a reduction of
about 12% in Fedora's boot time.

Signed-off-by: Leandro Lupori &lt;leandro.lupori@eldorado.org.br&gt;
Reviewed-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
Message-Id: &lt;20221025202424.195984-4-leandro.lupori@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: Add new PMC HFLAGS</title>
<updated>2022-10-28T16:15:23+00:00</updated>
<author>
<name>Leandro Lupori</name>
</author>
<published>2022-10-25T20:24:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8b3d1c49a9f0f315d2b292c1791430c0f382afa4'/>
<id>urn:sha1:8b3d1c49a9f0f315d2b292c1791430c0f382afa4</id>
<content type='text'>
Add 2 new PMC related HFLAGS:
- HFLAGS_PMCJCE - value of MMCR0 PMCjCE bit
- HFLAGS_PMC_OTHER - set if a PMC other than PMC5-6 is enabled

These flags allow further optimization of PMC5 update code, by
allowing frequently tested conditions to be performed at
translation time.

Signed-off-by: Leandro Lupori &lt;leandro.lupori@eldorado.org.br&gt;
Reviewed-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
Message-Id: &lt;20221025202424.195984-3-leandro.lupori@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: move the p*_interrupt_powersave methods to excp_helper.c</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-21T14:21:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9c713713dac70fe7eaa9b403234a71024a729eb4'/>
<id>urn:sha1:9c713713dac70fe7eaa9b403234a71024a729eb4</id>
<content type='text'>
Move the methods to excp_helper.c and make them static.

Reviewed-by: Fabiano Rosas &lt;farosas@linux.ibm.com&gt;
Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Message-Id: &lt;20221021142156.4134411-4-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: unify cpu-&gt;has_work based on cs-&gt;interrupt_request</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-21T14:21:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ab9cfa04523e0312c741e16ca54c5fa4e1eee9e2'/>
<id>urn:sha1:ab9cfa04523e0312c741e16ca54c5fa4e1eee9e2</id>
<content type='text'>
Now that cs-&gt;interrupt_request indicates if there is any unmasked
interrupt, checking if the CPU has work to do can be simplified to a
single check that works for all CPU models.

Reviewed-by: Fabiano Rosas &lt;farosas@linux.ibm.com&gt;
Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Message-Id: &lt;20221021142156.4134411-3-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: introduce ppc_maybe_interrupt</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-21T14:21:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2fdedcbc69564f52a1c33bedfa291707e998a132'/>
<id>urn:sha1:2fdedcbc69564f52a1c33bedfa291707e998a132</id>
<content type='text'>
This new method will check if any pending interrupt was unmasked and
then call cpu_interrupt/cpu_reset_interrupt accordingly. Code that
raises/lowers or masks/unmasks interrupts should call this method to
keep CPU_INTERRUPT_HARD coherent with env-&gt;pending_interrupts.

Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Reviewed-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
Message-Id: &lt;20221021142156.4134411-2-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: remove ppc_store_lpcr from CONFIG_USER_ONLY builds</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-11T20:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0'/>
<id>urn:sha1:6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0</id>
<content type='text'>
Writes to LPCR are hypervisor privileged.

Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Reviewed-by: Fabiano Rosas &lt;farosas@linux.ibm.com&gt;
Message-Id: &lt;20221011204829.1641124-27-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/ppc: add power-saving interrupt masking logic to p7_next_unmasked_interrupt</title>
<updated>2022-10-28T16:15:22+00:00</updated>
<author>
<name>Matheus Ferst</name>
</author>
<published>2022-10-11T20:48:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=022b7128535d0ec963f724008a5f8b6a842d92ae'/>
<id>urn:sha1:022b7128535d0ec963f724008a5f8b6a842d92ae</id>
<content type='text'>
Export p7_interrupt_powersave and use it in p7_next_unmasked_interrupt.

Signed-off-by: Matheus Ferst &lt;matheus.ferst@eldorado.org.br&gt;
Reviewed-by: Fabiano Rosas &lt;farosas@linux.ibm.com&gt;
Message-Id: &lt;20221011204829.1641124-26-matheus.ferst@eldorado.org.br&gt;
Signed-off-by: Daniel Henrique Barboza &lt;danielhb413@gmail.com&gt;
</content>
</entry>
</feed>
