<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/bsd-user, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/bsd-user?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/bsd-user?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-08-20T23:10:42Z</updated>
<entry>
<title>bsd-user: Handle short reads in mmap_h_gt_g</title>
<updated>2024-08-20T23:10:42Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2024-08-19T23:41:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5b73b248a16dab43b74c4d2dbe4f589e109fdc85'/>
<id>urn:sha1:5b73b248a16dab43b74c4d2dbe4f589e109fdc85</id>
<content type='text'>
In particular, if an image has a large bss, we can hit EOF before reading
all bytes of the mapping.  Mirror the similar change to linux-user.

Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-Id: &lt;20240820050848.165253-3-richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>bsd-user: Add target.h for aarch64.</title>
<updated>2024-07-24T22:02:07Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@bsdimp.com</email>
</author>
<published>2024-07-24T21:57:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=ec018b76798e1196882ebcbf3df15e6d86ac9d7c'/>
<id>urn:sha1:ec018b76798e1196882ebcbf3df15e6d86ac9d7c</id>
<content type='text'>
For aarch64, it's a 64-bit API, so there's no pairing of registers for
64-bit values.

Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
</content>
</entry>
<entry>
<title>bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack</title>
<updated>2024-07-23T16:56:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@bsdimp.com</email>
</author>
<published>2024-06-23T21:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5fa2a10ba6822fc1e500e921dcae344db46e1649'/>
<id>urn:sha1:5fa2a10ba6822fc1e500e921dcae344db46e1649</id>
<content type='text'>
Most (all?) targets require stacks to be properly aligned. Rather than a
series of ifdefs in bsd-user/signal.h, instead use a manditory #define
for all architectures.

Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>bsd-user: Sync fork_start/fork_end with linux-user</title>
<updated>2024-07-23T16:56:25Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@jrtc27.com</email>
</author>
<published>2024-06-19T19:03:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5b6828d194fba3c170a5f717cc1fc3d35645aadd'/>
<id>urn:sha1:5b6828d194fba3c170a5f717cc1fc3d35645aadd</id>
<content type='text'>
This reorders some of the calls, deduplicates code between branches and,
most importantly, fixes a double end_exclusive call in the parent that
will cause exclusive_context_count to go negative.

Signed-off-by: Jessica Clarke &lt;jrtc27@jrtc27.com&gt;
Pull-Request: https://github.com/qemu-bsd-user/qemu-bsd-user/pull/52
Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>bsd-user: Simplify the implementation of execve</title>
<updated>2024-07-23T16:50:54Z</updated>
<author>
<name>Doug Rabson</name>
<email>dfr@rabson.org</email>
</author>
<published>2022-12-08T14:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=e6e102b972c5228d9d50b3208b83b025ccfd1455'/>
<id>urn:sha1:e6e102b972c5228d9d50b3208b83b025ccfd1455</id>
<content type='text'>
This removes the logic which prepends the emulator to each call to
execve and fexecve. This is not necessary with the existing
imgact_binmisc support and it avoids the need to install the emulator
binary into jail environments when using 'binmiscctl --pre-open'.

Signed-off-by: Doug Rabson &lt;dfr@rabson.org&gt;
Reviewed-by: Warner Losh &lt;imp@bsdimp.com&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
Acked-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>bsd-user:Add AArch64 improvements and signal handling functions</title>
<updated>2024-07-23T16:50:54Z</updated>
<author>
<name>Stacey Son</name>
<email>sson@FreeBSD.org</email>
</author>
<published>2024-07-07T19:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=ce6c541dcb8aff5ca6f02bb64b0d6b6753becab4'/>
<id>urn:sha1:ce6c541dcb8aff5ca6f02bb64b0d6b6753becab4</id>
<content type='text'>
Added get_ucontext_sigreturn function to check processor state ensuring current execution mode is EL0 and no flags
indicating interrupts or exceptions are set.
Updated AArch64 code to use CF directly without reading/writing the entire processor state, improving efficiency.
Changed FP data structures to use Int128 instead of __uint128_t, leveraging QEMU's generic mechanism for referencing this type.

Signed-off-by: Stacey Son &lt;sson@FreeBSD.org&gt;
Signed-off-by: Ajeet Singh &lt;itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240707191128.10509-9-itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
</content>
</entry>
<entry>
<title>bsd-user:Add set_mcontext function for ARM AArch64</title>
<updated>2024-07-23T16:50:54Z</updated>
<author>
<name>Stacey Son</name>
<email>sson@FreeBSD.org</email>
</author>
<published>2024-07-07T19:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=dadfc6d5df1006b52c1c0c8ae3af84ac3be36b31'/>
<id>urn:sha1:dadfc6d5df1006b52c1c0c8ae3af84ac3be36b31</id>
<content type='text'>
The function copies register values from the provided target_mcontext_t
structure to the CPUARMState registers.
Note:FP is unfinished upstream but will be a separate commit coming soon.

Signed-off-by: Stacey Son &lt;sson@FreeBSD.org&gt;
Signed-off-by: Ajeet Singh &lt;itachis@FreeBSD.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240707191128.10509-8-itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
</content>
</entry>
<entry>
<title>bsd-user:Add setup_sigframe_arch function for ARM AArch64</title>
<updated>2024-07-23T16:50:54Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@bsdimp.com</email>
</author>
<published>2024-07-07T19:11:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=c88f44d85ab209576fc6704ff636e68e2bbc41dc'/>
<id>urn:sha1:c88f44d85ab209576fc6704ff636e68e2bbc41dc</id>
<content type='text'>
The function utilizes the `get_mcontext` function to retrieve the machine
context for the current CPUARMState

Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
Signed-off-by: Ajeet Singh &lt;itachis@FreeBSD.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240707191128.10509-7-itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
</content>
</entry>
<entry>
<title>bsd-user:Add get_mcontext function for ARM AArch64</title>
<updated>2024-07-23T16:50:54Z</updated>
<author>
<name>Stacey Son</name>
<email>sson@FreeBSD.org</email>
</author>
<published>2024-07-07T19:11:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9959fae592b2babddb7c371e27281a4e127a2951'/>
<id>urn:sha1:9959fae592b2babddb7c371e27281a4e127a2951</id>
<content type='text'>
function to retrieve machine context,it populates the provided
target_mcontext_t structure with information from the CPUARMState
registers.

Signed-off-by: Stacey Son &lt;sson@FreeBSD.org&gt;
Signed-off-by: Ajeet Singh &lt;itachis@FreeBSD.org&gt;
Co-authored-by: Kyle Evans &lt;kevans@FreeBSD.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240707191128.10509-6-itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
</content>
</entry>
<entry>
<title>bsd-user:Add ARM AArch64 signal handling support</title>
<updated>2024-07-23T16:50:54Z</updated>
<author>
<name>Stacey Son</name>
<email>sson@FreeBSD.org</email>
</author>
<published>2024-07-07T19:11:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=7dba5e10a65be276267f379f07a9643100209c0d'/>
<id>urn:sha1:7dba5e10a65be276267f379f07a9643100209c0d</id>
<content type='text'>
Added sigcode setup function for signal trampoline which initializes a sequence of instructions
to handle signal returns and exits, copying this code to the target offset.
Defined ARM AArch64 specific signal definitions including register indices and sizes,
and introduced structures to represent general purpose registers, floating point registers, and machine context.
Added function to set up signal handler arguments, populating register values in `CPUARMState`
based on the provided signal, signal frame, signal action, and frame address.

Signed-off-by: Stacey Son &lt;sson@FreeBSD.org&gt;
Signed-off-by: Ajeet Singh &lt;itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
Co-authored-by: Warner Losh &lt;imp@bsdimp.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240707191128.10509-5-itachis@FreeBSD.org&gt;
Signed-off-by: Warner Losh &lt;imp@bsdimp.com&gt;
</content>
</entry>
</feed>
