<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/linux-user/generic, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/linux-user/generic?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/linux-user/generic?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2023-07-15T07:02:32Z</updated>
<entry>
<title>linux-user: Split TARGET_PROT_* out of syscall_defs.h</title>
<updated>2023-07-15T07:02:32Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2023-07-07T20:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=6edfca9eae639707b85d04b050bc7ff09330e58b'/>
<id>urn:sha1:6edfca9eae639707b85d04b050bc7ff09330e58b</id>
<content type='text'>
Move the values into the per-target target_mman.h headers

Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20230707204054.8792-8-richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Split TARGET_MAP_* out of syscall_defs.h</title>
<updated>2023-07-15T07:02:32Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2023-07-07T20:40:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=492fe4e75461d016d77913d0b3f7356a433ee8a1'/>
<id>urn:sha1:492fe4e75461d016d77913d0b3f7356a433ee8a1</id>
<content type='text'>
Move the values into the per-target target_mman.h headers

Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20230707204054.8792-7-richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Add translation for argument of msync()</title>
<updated>2023-03-10T19:45:47Z</updated>
<author>
<name>Helge Deller</name>
<email>deller@gmx.de</email>
</author>
<published>2022-12-15T07:27:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=fe080593dd4f2c2763f7c27a3ba6e69b64fe3b0c'/>
<id>urn:sha1:fe080593dd4f2c2763f7c27a3ba6e69b64fe3b0c</id>
<content type='text'>
msync() uses the flags MS_ASYNC, MS_INVALIDATE and MS_SYNC, which differ
between platforms, specifcally on alpha and hppa.

Add a target to host translation for those and wire up a nicer strace
output.

This fixes the testsuite of the macaulay2 debian package with a hppa-linux
guest on a x86-64 host.

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;

Message-Id: &lt;Y5rMcts4qe15RaVN@p100&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user: Fix unaligned memory access in prlimit64 syscall</title>
<updated>2023-03-10T19:42:00Z</updated>
<author>
<name>Ilya Leoshkevich</name>
<email>iii@linux.ibm.com</email>
</author>
<published>2023-02-24T00:39:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9c1da8b5ee7f6e80e6b683e7fb73df1029a7cbbe'/>
<id>urn:sha1:9c1da8b5ee7f6e80e6b683e7fb73df1029a7cbbe</id>
<content type='text'>
target_rlimit64 contains uint64_t fields, so it's 8-byte aligned on
some hosts, while some guests may align their respective type on a
4-byte boundary. This may lead to an unaligned access, which is an UB.

Fix by defining the fields as abi_ullong. This makes the host alignment
match that of the guest, and lets the compiler know that it should emit
code that can deal with the guest alignment.

While at it, also use __get_user() and __put_user() instead of
tswap64().

Fixes: 163a05a8398b ("linux-user: Implement prlimit64 syscall")
Reported-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Ilya Leoshkevich &lt;iii@linux.ibm.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Message-Id: &lt;20230224003907.263914-2-iii@linux.ibm.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user: move target_flat.h to target subdirs</title>
<updated>2023-02-03T21:55:12Z</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2023-01-29T00:46:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=95fc5ed4a86b0d173bf55daf32e1697d11062648'/>
<id>urn:sha1:95fc5ed4a86b0d173bf55daf32e1697d11062648</id>
<content type='text'>
This makes target_flat.h behave like every other target_xxx.h header.
It also makes it actually work -- while the current header says adding
a header to the target subdir overrides the common one, it doesn't.
This is for two reasons:
* meson.build adds -Ilinux-user before -Ilinux-user/$arch
* the compiler search path for "target_flat.h" looks in the same dir
  as the source file before searching -I paths.

This can be seen with the xtensa port -- the subdir settings aren't
used which breaks stack setup.

Move it to the generic/ subdir and add include stubs like every
other target_xxx.h header is handled.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20230129004625.11228-1-vapier@gentoo.org&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user: Provide MADV_* definitions</title>
<updated>2022-09-27T07:30:09Z</updated>
<author>
<name>Ilya Leoshkevich</name>
<email>iii@linux.ibm.com</email>
</author>
<published>2022-09-06T00:08:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9f22020b91ae235be2b27c47d11e842872ec5e85'/>
<id>urn:sha1:9f22020b91ae235be2b27c47d11e842872ec5e85</id>
<content type='text'>
Provide MADV_* definitions using target_mman.h header, similar to what
kernel does. Most architectures use the same values, with the exception
of alpha and hppa.

Signed-off-by: Ilya Leoshkevich &lt;iii@linux.ibm.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220906000839.1672934-2-iii@linux.ibm.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user/syscall: Translate TARGET_RLIMIT_RTTIME</title>
<updated>2022-02-01T07:01:44Z</updated>
<author>
<name>Serge Belyshev</name>
<email>belyshev@depni.sinp.msu.ru</email>
</author>
<published>2022-01-29T19:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=244fd08323088db73590ff2317dfe86f810b51d7'/>
<id>urn:sha1:244fd08323088db73590ff2317dfe86f810b51d7</id>
<content type='text'>
Signed-off-by: Serge Belyshev &lt;belyshev@depni.sinp.msu.ru&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Message-Id: &lt;87a6fel3w8.fsf_-_@depni.sinp.msu.ru&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h</title>
<updated>2022-02-01T07:01:38Z</updated>
<author>
<name>Serge Belyshev</name>
<email>belyshev@depni.sinp.msu.ru</email>
</author>
<published>2022-01-29T19:46:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=b13e49bc86961c6725b2ebddd53898fe1366f6dc'/>
<id>urn:sha1:b13e49bc86961c6725b2ebddd53898fe1366f6dc</id>
<content type='text'>
Signed-off-by: Serge Belyshev &lt;belyshev@depni.sinp.msu.ru&gt;
Message-Id: &lt;87ee4ql3yk.fsf_-_@depni.sinp.msu.ru&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user: Move target_struct.h generic definitions to generic/</title>
<updated>2022-01-11T17:40:44Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2022-01-07T04:26:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=72f692694fac92b49a2518fb7ea6149df1cbb214'/>
<id>urn:sha1:72f692694fac92b49a2518fb7ea6149df1cbb214</id>
<content type='text'>
Most targets share the same generic ipc structure definitions.

Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Message-Id: &lt;20220107042600.149852-3-richard.henderson@linaro.org&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>linux-user: Add code for PR_GET/SET_UNALIGN</title>
<updated>2022-01-06T10:40:52Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-12-27T15:01:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=6e8dcacd0840b3c38e7ec664bb9adbccc2108fdd'/>
<id>urn:sha1:6e8dcacd0840b3c38e7ec664bb9adbccc2108fdd</id>
<content type='text'>
This requires extra work for each target, but adds the
common syscall code, and the necessary flag in CPUState.

Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20211227150127.2659293-4-richard.henderson@linaro.org&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
</feed>
