<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/linux-user/host, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/linux-user/host?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/linux-user/host?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2022-01-12T13:08:29Z</updated>
<entry>
<title>user: move common-user includes to a subdirectory of {bsd,linux}-user/</title>
<updated>2022-01-12T13:08:29Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2021-12-21T15:20:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=05a248715cef192336a594afed812871a52efc1f'/>
<id>urn:sha1:05a248715cef192336a594afed812871a52efc1f</id>
<content type='text'>
Avoid polluting the compilation of common-user/ with local include files;
making an include file available to common-user/ should be a deliberate
decision in order to keep a clear interface that can be used by both
bsd-user/ and linux-user/.

Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>linux-user: Fix trivial build error on loongarch64 hosts</title>
<updated>2022-01-04T23:16:10Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>f4bug@amsat.org</email>
</author>
<published>2022-01-04T21:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=f341b9aabd0e1bc6b5d3f51d43d09e64b33a5857'/>
<id>urn:sha1:f341b9aabd0e1bc6b5d3f51d43d09e64b33a5857</id>
<content type='text'>
When building using GCC 8.3.0 on loongarch64 (Loongnix) we get:

  In file included from ../linux-user/signal.c:33:
  ../linux-user/host/loongarch64/host-signal.h: In function ‘host_signal_write’:
  ../linux-user/host/loongarch64/host-signal.h:57:9: error: a label can only be part of a statement and a declaration is not a statement
         uint32_t sel = (insn &gt;&gt; 15) &amp; 0b11111111111;
         ^~~~~~~~

We don't use the 'sel' variable more than once, so drop it.

Meson output for the record:

  Host machine cpu family: loongarch64
  Host machine cpu: loongarch64
  C compiler for the host machine: cc (gcc 8.3.0 "cc (Loongnix 8.3.0-6.lnd.vec.27) 8.3.0")
  C linker for the host machine: cc ld.bfd 2.31.1-system

Fixes: ad812c3bd65 ("linux-user: Implement CPU-specific signal handler for loongarch64 hosts")
Reported-by: Song Gao &lt;gaosong@loongson.cn&gt;
Suggested-by: Song Gao &lt;gaosong@loongson.cn&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: WANG Xuerui &lt;git@xen0n.name&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220104215027.2180972-1-f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Implement CPU-specific signal handler for loongarch64 hosts</title>
<updated>2021-12-21T21:17:06Z</updated>
<author>
<name>WANG Xuerui</name>
<email>git@xen0n.name</email>
</author>
<published>2021-12-21T05:41:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=ad812c3bd6504948ee387f3e94eca7f28e8cd56f'/>
<id>urn:sha1:ad812c3bd6504948ee387f3e94eca7f28e8cd56f</id>
<content type='text'>
Signed-off-by: WANG Xuerui &lt;git@xen0n.name&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-Id: &lt;20211221054105.178795-30-git@xen0n.name&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>common-user: Move safe-syscall.* from linux-user</title>
<updated>2021-12-20T18:12:24Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-17T15:14:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=bbf15aaf7c7506c88062288b3ae122b882f65e69'/>
<id>urn:sha1:bbf15aaf7c7506c88062288b3ae122b882f65e69</id>
<content type='text'>
Move linux-user safe-syscall.S and safe-syscall-error.c to common-user
so that bsd-user can also use it.  Also move safe-syscall.h to
include/user/.  Since there is nothing here that is related to the guest,
as opposed to the host, build it once.

Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Rename TARGET_ERESTARTSYS to QEMU_ERESTARTSYS</title>
<updated>2021-12-20T04:47:33Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-22T18:47:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=af254a279255bd753c2b0b3a70fc39f09c724aab'/>
<id>urn:sha1:af254a279255bd753c2b0b3a70fc39f09c724aab</id>
<content type='text'>
This value is fully internal to qemu, and so is not a TARGET define.
We use this as an extra marker for both host and target errno.

Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Remove HAVE_SAFE_SYSCALL and hostdep.h</title>
<updated>2021-12-20T04:47:33Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-15T19:08:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=0a7e01904d407baa73c1baddbdfc9ccf2ace8356'/>
<id>urn:sha1:0a7e01904d407baa73c1baddbdfc9ccf2ace8356</id>
<content type='text'>
All supported hosts now define HAVE_SAFE_SYSCALL, so remove
the ifdefs.  This leaves hostdep.h empty, so remove it.

Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/host/sparc64: Add safe-syscall.inc.S</title>
<updated>2021-12-20T04:47:33Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-15T19:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=95c021dac8358b9dffe4a2c05dea4ccce589ac47'/>
<id>urn:sha1:95c021dac8358b9dffe4a2c05dea4ccce589ac47</id>
<content type='text'>
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/host/mips: Add safe-syscall.inc.S</title>
<updated>2021-12-20T04:47:33Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-22T16:38:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=4542adef5b93c13f61ce7b3045d3b028e8b20af0'/>
<id>urn:sha1:4542adef5b93c13f61ce7b3045d3b028e8b20af0</id>
<content type='text'>
Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Move syscall error detection into safe_syscall_base</title>
<updated>2021-12-20T04:47:33Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-15T13:08:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=a3310c0397e21df8f47cde3e55736104b9584d2d'/>
<id>urn:sha1:a3310c0397e21df8f47cde3e55736104b9584d2d</id>
<content type='text'>
The current api from safe_syscall_base() is to return -errno, which is
the interface provided by *some* linux kernel abis.  The wrapper macro,
safe_syscall(), detects error, stores into errno, and returns -1, to
match the api of the system syscall().

For those kernel abis that do not return -errno natively, this leads
to double syscall error detection.  E.g. Linux ppc64, which sets the
SO flag for error.

Simplify the usage from C by moving the error detection into assembly,
and usage from assembly by providing a C helper with which to set errno.

Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Untabify all safe-syscall.inc.S</title>
<updated>2021-12-20T04:47:33Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2021-11-23T10:44:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=b9d2af3c62c22870c02410d5c9c6d097ee0ddf3f'/>
<id>urn:sha1:b9d2af3c62c22870c02410d5c9c6d097ee0ddf3f</id>
<content type='text'>
Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Suggested-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
</feed>
