<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/target/s390x/misc_helper.c, 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/s390x/misc_helper.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/target/s390x/misc_helper.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-07-07T12:01:56+00:00</updated>
<entry>
<title>target/s390x: start moving TCG-only code to tcg/</title>
<updated>2021-07-07T12:01:56+00:00</updated>
<author>
<name>Cho, Yu-Chen</name>
</author>
<published>2021-07-07T10:53:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c9274b6bf0571ecbaaed3e9c3b229e17607a0ea2'/>
<id>urn:sha1:c9274b6bf0571ecbaaed3e9c3b229e17607a0ea2</id>
<content type='text'>
move everything related to translate, as well as HELPER code in tcg/

mmu_helper.c stays put for now, as it contains both TCG and KVM code.

After the reshuffling, update MAINTAINERS accordingly.
Make use of the new directory:

target/s390x/tcg/

Signed-off-by: Claudio Fontana &lt;cfontana@suse.de&gt;
Signed-off-by: Cho, Yu-Chen &lt;acho@suse.com&gt;
Acked-by: David Hildenbrand &lt;david@redhat.com&gt;
Acked-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;20210707105324.23400-8-acho@suse.com&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>target/s390x: rename internal.h to s390x-internal.h</title>
<updated>2021-07-07T12:01:56+00:00</updated>
<author>
<name>Cho, Yu-Chen</name>
</author>
<published>2021-07-07T10:53:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b6b4722307f31491ee553c674ded2a8bba6173e1'/>
<id>urn:sha1:b6b4722307f31491ee553c674ded2a8bba6173e1</id>
<content type='text'>
The internal.h file is renamed to s390x-internal.h, because of the
risk of collision with other files with the same name.

Signed-off-by: Claudio Fontana &lt;cfontana@suse.de&gt;
Signed-off-by: Cho, Yu-Chen &lt;acho@suse.com&gt;
Acked-by: David Hildenbrand &lt;david@redhat.com&gt;
Acked-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;20210707105324.23400-7-acho@suse.com&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>s390x: Use strpadcpy for copying vm name</title>
<updated>2021-01-21T10:19:45+00:00</updated>
<author>
<name>Miroslav Rezanina</name>
</author>
<published>2021-01-14T07:07:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e6a80232f4087e8c7ec253f573319f69165b859d'/>
<id>urn:sha1:e6a80232f4087e8c7ec253f573319f69165b859d</id>
<content type='text'>
Using strncpy with length equal to the size of target array, GCC 11
reports following warning:

  warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation]

We can prevent this warning by using strpadcpy that copies string
up to specified length, zeroes target array after copied string
and does not raise warning when length is equal to target array
size (and ending '\0' is discarded).

Signed-off-by: Miroslav Rezanina &lt;mrezanin@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;6f86915755219cf6a671788075da4809b57f7d7b.1610607906.git.mrezanin@redhat.com&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>target/s390x: Split out helper_per_store_real</title>
<updated>2019-12-18T11:57:29+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2019-12-11T20:36:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ebed683c4e2678947df06cb33d3d860840426c65'/>
<id>urn:sha1:ebed683c4e2678947df06cb33d3d860840426c65</id>
<content type='text'>
Split the PER handling for store-to-real-address into its
own helper function, conditionally called when PER is
enabled, just as we do for per_branch and per_ifetch.

Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20191211203614.15611-2-richard.henderson@linaro.org&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>target/s390x: Use tcg_s390_program_interrupt in TCG helpers</title>
<updated>2019-10-09T10:49:01+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2019-10-01T17:16:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=1e36aee6364746839578738c7a7b55740911ad7b'/>
<id>urn:sha1:1e36aee6364746839578738c7a7b55740911ad7b</id>
<content type='text'>
Replace all uses of s390_program_interrupt within files
that are marked CONFIG_TCG.  These are necessarily tcg-only.

This lets each of these users benefit from the QEMU_NORETURN
attribute on tcg_s390_program_interrupt.

Acked-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20191001171614.8405-5-richard.henderson@linaro.org&gt;
Signed-off-by: David Hildenbrand &lt;david@redhat.com&gt;
</content>
</entry>
<entry>
<title>target/s390x: Remove ilen parameter from s390_program_interrupt</title>
<updated>2019-10-09T10:49:01+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2019-10-01T17:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=77b703f84f0099c2e863a05122537a252ca005d1'/>
<id>urn:sha1:77b703f84f0099c2e863a05122537a252ca005d1</id>
<content type='text'>
This is no longer used, and many of the existing uses -- particularly
within hw/s390x -- seem questionable.

Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20191001171614.8405-4-richard.henderson@linaro.org&gt;
Signed-off-by: David Hildenbrand &lt;david@redhat.com&gt;
</content>
</entry>
<entry>
<title>target/s390x: Use env_cpu, env_archcpu</title>
<updated>2019-06-10T14:03:42+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2019-03-23T02:21:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=dc79e928698567b14e6638c4c9f1e43dc386f1d8'/>
<id>urn:sha1:dc79e928698567b14e6638c4c9f1e43dc386f1d8</id>
<content type='text'>
Cleanup in the boilerplate that each target must define.
Replace s390_env_get_cpu with env_archcpu.  The combination
CPU(s390_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.

Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>s390x/tcg: Store only the necessary amount of doublewords for STFLE</title>
<updated>2019-06-07T12:53:25+00:00</updated>
<author>
<name>David Hildenbrand</name>
</author>
<published>2019-05-31T14:33:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e19a61eb514dbf7c9a725c7539ce3b6166cd6ac4'/>
<id>urn:sha1:e19a61eb514dbf7c9a725c7539ce3b6166cd6ac4</id>
<content type='text'>
The PoP (z14, 7-382) says:
    Doublewords to the right of the doubleword in which the
    highest-numbered facility bit is assigned for a model
    may or may not be stored.

However, stack protection in certain binaries can't deal with that.
"gzip" example code:

f1b4:       a7 08 00 03             lhi     %r0,3
f1b8:       b2 b0 f0 a0             stfle   160(%r15)
f1bc:       e3 20 f0 b2 00 90       llgc    %r2,178(%r15)
f1c2:       c0 2b 00 00 00 01       nilf    %r2,1
f1c8:       b2 4f 00 10             ear     %r1,%a0
f1cc:       b9 14 00 22             lgfr    %r2,%r2
f1d0:       eb 11 00 20 00 0d       sllg    %r1,%r1,32
f1d6:       b2 4f 00 11             ear     %r1,%a1
f1da:       d5 07 f0 b8 10 28       clc     184(8,%r15),40(%r1)
f1e0:       a7 74 00 06             jne     f1ec &lt;file_read@@Base+0x1bc&gt;
f1e4:       eb ef f1 30 00 04       lmg     %r14,%r15,304(%r15)
f1ea:       07 fe                   br      %r14
f1ec:       c0 e5 ff ff 9d 6e       brasl   %r14,2cc8 &lt;__stack_chk_fail@plt&gt;

In QEMU, we currently have:
    max_bytes = 24
the code asks for (3 + 1) doublewords == 32 bytes.

If we write 32 bytes instead of only 24, and return "2 + 1" doublewords
("one less than the number of doulewords needed to contain all of the
 facility bits"), the example code detects a stack corruption.

In my opinion, the code is wrong. However, it seems to work fine on
real machines. So let's limit storing to the minimum of the requested
and the maximum doublewords.

Cc: Stefan Liebler &lt;stli@linux.ibm.com&gt;
Cc: Andreas Krebbel &lt;Andreas.Krebbel@de.ibm.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: David Hildenbrand &lt;david@redhat.com&gt;
</content>
</entry>
<entry>
<title>s390x/tcg: Fix max_byte detection for stfle</title>
<updated>2019-06-07T12:53:25+00:00</updated>
<author>
<name>David Hildenbrand</name>
</author>
<published>2019-05-31T14:31:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=88a29e867528c57151103e64a966a9cbaeec852f'/>
<id>urn:sha1:88a29e867528c57151103e64a966a9cbaeec852f</id>
<content type='text'>
used_stfl_bytes is 0, before initialized via prepare_stfl() on the
first invocation. We have to move the calculation of max_bytes after
prepare_stfl().

Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: David Hildenbrand &lt;david@redhat.com&gt;
</content>
</entry>
<entry>
<title>target/s390x: Implement STCK et al for CONFIG_USER_ONLY</title>
<updated>2019-02-18T10:25:43+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2019-02-12T05:30:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=965018bea7ce79e1987b50ba9160cba957f015df'/>
<id>urn:sha1:965018bea7ce79e1987b50ba9160cba957f015df</id>
<content type='text'>
This is a non-privileged instruction that was only implemented
for system mode.  However, the stck instruction is used by glibc,
so this was causing SIGILL for programs run under debian stretch.

Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: David Hildenbrand &lt;david@redhat.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20190212053044.29015-3-richard.henderson@linaro.org&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
</feed>
