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

Create a helper, mmap_pread to handle the job for both
the larger block in mmap_h_gt_g itself, as well as the
smaller block in mmap_frag.

Cc: qemu-stable@nongnu.org
Fixes: eb5027ac618 ("linux-user: Split out mmap_h_gt_g")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2504
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240820050848.165253-2-richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/mips: Select Loongson CPU for Loongson binaries</title>
<updated>2024-08-19T22:49:13Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-08-14T10:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=e922abf5c0e40eb451434c4121b730c8a19d80d4'/>
<id>urn:sha1:e922abf5c0e40eb451434c4121b730c8a19d80d4</id>
<content type='text'>
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240814133928.6746-5-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/mips: Select MIPS64R2-generic for Rel2 binaries</title>
<updated>2024-08-19T22:49:13Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-08-14T10:17:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=309ce6af94738ae22f01f4c145b82e51400b14b6'/>
<id>urn:sha1:309ce6af94738ae22f01f4c145b82e51400b14b6</id>
<content type='text'>
Cc: YunQiang Su &lt;syq@debian.org&gt;
Reported-by: Jiaxun Yang &lt;jiaxun.yang@flygoat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240814133928.6746-4-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/mips: Select Octeon68XX CPU for Octeon binaries</title>
<updated>2024-08-19T22:49:05Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-08-14T09:14:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1e5a7c57a577d7702c668ef9fcdc9fa4187ef8aa'/>
<id>urn:sha1:1e5a7c57a577d7702c668ef9fcdc9fa4187ef8aa</id>
<content type='text'>
The Octeon68XX CPU is available since commit 9a6046a655
("target/mips: introduce Cavium Octeon CPU model").

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1722
Reported-by: Johnathan Hữu Trí &lt;nhtri2003@gmail.com&gt;
Suggested-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240814133928.6746-3-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/mips: Do not try to use removed R5900 CPU</title>
<updated>2024-08-19T22:47:57Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-08-14T10:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=f7e3d7521b41ada97c5344914d3c9bc6ed04c82a'/>
<id>urn:sha1:f7e3d7521b41ada97c5344914d3c9bc6ed04c82a</id>
<content type='text'>
R5900 emulation was removed in commit 823f2897bd.
Remove it from ELF parsing in order to avoid:

  $ qemu-mipsn32 ./test5900
  qemu-mipsn32: unable to find CPU model 'R5900'

This reverts commit 4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.

Fixes: 823f2897bd ("target/mips: Disable R5900 support")
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20240814133928.6746-2-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: Preserve NULL hit in target_mmap subroutines</title>
<updated>2024-08-15T01:03:47Z</updated>
<author>
<name>Richard Henderson</name>
<email>richard.henderson@linaro.org</email>
</author>
<published>2024-08-13T06:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=3aefee3ec01e607529a9918e2978f365c5c3b5e9'/>
<id>urn:sha1:3aefee3ec01e607529a9918e2978f365c5c3b5e9</id>
<content type='text'>
Do not pass guest_base to the host mmap instead of zero hint.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2353
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/elfload: Fix pr_pid values in core files</title>
<updated>2024-08-04T22:05:44Z</updated>
<author>
<name>Ilya Leoshkevich</name>
<email>iii@linux.ibm.com</email>
</author>
<published>2024-08-01T20:23:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5b0c2742c839376b7e03c4654914aaec6a8a7b09'/>
<id>urn:sha1:5b0c2742c839376b7e03c4654914aaec6a8a7b09</id>
<content type='text'>
Analyzing qemu-produced core dumps of multi-threaded apps runs into:

    (gdb) info threads
      [...]
      21   Thread 0x3ff83cc0740 (LWP 9295) warning: Couldn't find general-purpose registers in core file.
    &lt;unavailable&gt; in ?? ()

The reason is that all pr_pid values are the same, because the same
TaskState is used for all CPUs when generating NT_PRSTATUS notes.

Fix by using TaskStates associated with individual CPUs.

Cc: qemu-stable@nongnu.org
Fixes: 243c47066253 ("linux-user/elfload: Write corefile elf header in one block")
Signed-off-by: Ilya Leoshkevich &lt;iii@linux.ibm.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-ID: &lt;20240801202340.21845-1-iii@linux.ibm.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user: open_self_stat: Implement num_threads</title>
<updated>2024-07-29T21:59:23Z</updated>
<author>
<name>Fabio D'Urso</name>
<email>fdurso@google.com</email>
</author>
<published>2024-06-19T19:41:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d9b019e0a05cbbaa184815dd201b25006950c6d7'/>
<id>urn:sha1:d9b019e0a05cbbaa184815dd201b25006950c6d7</id>
<content type='text'>
The num_threads field reports the total number of threads in the
process. In QEMU, this is equal to the number of CPU instances.

Signed-off-by: Fabio D'Urso &lt;fdurso@google.com&gt;
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-ID: &lt;20240619194109.248066-1-fdurso@google.com&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>linux-user/main: Check errno when getting AT_EXECFD</title>
<updated>2024-07-29T21:59:23Z</updated>
<author>
<name>Vivian Wang</name>
<email>uwu@dram.page</email>
</author>
<published>2024-07-23T10:05:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=25268a18550323f6babbcc260838fa09941e5c85'/>
<id>urn:sha1:25268a18550323f6babbcc260838fa09941e5c85</id>
<content type='text'>
It's possible for AT_EXECFD to end up with a valid value of 0. Check
errno when using qemu_getauxval instead of return value to handle this
case.

Not handling this case leads to a confusing condition where the
executable ends up as fd 0, i.e. stdin.

Signed-off-by: Vivian Wang &lt;uwu@dram.page&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Fixes: 0b959cf5e4cc ("linux-user: Use qemu_getauxval for AT_EXECFD")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2448
Message-ID: &lt;20240723100545.405476-3-uwu@dram.page&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>target/arm: Factor out code for setting MTE TCF0 field</title>
<updated>2024-07-05T11:35:14Z</updated>
<author>
<name>Gustavo Romero</name>
<email>gustavo.romero@linaro.org</email>
</author>
<published>2024-07-05T08:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=bef6a77f6da8bdba7dca36aec4976b434d0d8f1c'/>
<id>urn:sha1:bef6a77f6da8bdba7dca36aec4976b434d0d8f1c</id>
<content type='text'>
Factor out the code used for setting the MTE TCF0 field from the prctl
code into a convenient function. Other subsystems, like gdbstub, need to
set this field as well, so keep it as a separate function to avoid
duplication and ensure consistency in how this field is set across the
board.

Signed-off-by: Gustavo Romero &lt;gustavo.romero@linaro.org&gt;
Message-Id: &lt;20240628050850.536447-7-gustavo.romero@linaro.org&gt;
[AJB: clean-up includes, move MTE defines]
Reviewed-by: Manos Pitsidianakis &lt;manos.pitsidianakis@linaro.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-Id: &lt;20240705084047.857176-36-alex.bennee@linaro.org&gt;
</content>
</entry>
</feed>
