i386, docs, gitlab fixes
The following changes since commit 15ef89d2a1a7b93845a6b09c2ee8e1979f6eb30b:
Update version for v7.0.0-rc1 release (2022-03-22 22:58:44 +0000)
are available in the Git repository at:
https://github.com/stsquad/qemu.git tags/pull-fixes-for-7.0-230322-1
for you to fetch changes up to 0f37cf2f71f764c5649e149c774172df7ab187c7:
docs/tcg-plugins: document QEMU_PLUGIN behaviour (2022-03-23 10:38:09 +0000)
----------------------------------------------------------------
Various fixes for 7.0
- make clean also cleans tcg tests
- fix rounding error in i386 fildl[l]
- more clean-ups to gitdm/mailmap metadata
- apply some organisation to docs/devel
- clean-up semihosting argv handling
- add custom runner for aarch32
- remove old qemu_logo.pdf
- document QEMU_PLUGIN env var
----------------------------------------------------------------
Alex Bennée (6):
target/i386: force maximum rounding precision for fildl[l] mailmap/gitdm: more fixes for bad tags and authors docs/devel: try and impose some organisation
semihosting: clean up handling of expanded argv
gitlab: include new aarch32 job in custom-runners
docs: remove qemu_logo.pdf
Christoph Muellner (1):
docs/tcg-plugins: document QEMU_PLUGIN behaviour
Thomas Huth (1):
tests/Makefile.include: Let "make clean" remove the TCG tests, too
docs/devel/index-api.rst | 15 +++++++
docs/devel/index-build.rst | 19 +++++++++
docs/devel/index-internals.rst | 21 ++++++++++
docs/devel/index-process.rst | 17 ++++++++
docs/devel/index-tcg.rst | 16 +++++++
docs/devel/index.rst | 46 ++++-----------------
docs/devel/tcg-plugins.rst | 9 +++-
docs/qemu_logo.pdf | Bin 9117 -> 0 bytes
semihosting/config.c | 6 +--
target/i386/tcg/fpu_helper.c | 13 ++++++
.gitlab-ci.d/custom-runners.yml | 1 +
...-20.40-aarch32.yml => ubuntu-20.04-aarch32.yml} | 0
.mailmap | 6 +++
contrib/gitdm/aliases | 4 +-
tests/Makefile.include | 2 +-
15 files changed, 129 insertions(+), 46 deletions(-)
create mode 100644 docs/devel/index-api.rst
create mode 100644 docs/devel/index-build.rst
create mode 100644 docs/devel/index-internals.rst
create mode 100644 docs/devel/index-process.rst
create mode 100644 docs/devel/index-tcg.rst
delete mode 100644 docs/qemu_logo.pdf
rename .gitlab-ci.d/custom-runners/{ubuntu-20.40-aarch32.yml => ubuntu-20.04-aarch32.yml} (100%)Signature · 1 line
2.30.2
[PULL 1/8] tests/Makefile.include: Let "make clean" remove the TCG tests, too
From: Thomas Huth <[email protected]>
"make clean" should clear all binaries that have been built, but so far it left the TCG tests still in place. Let's make sure that they are now removed, too.
Message-Id: <[email protected]>
tests/Makefile.include +1 -1
@@ -155,6 +155,6 @@ check-build: run-ninja check-clean: rm -rf $(TESTS_VENV_DIR) $(TESTS_RESULTS_DIR) -clean: check-clean +clean: check-clean clean-tcg endif
Signature · 1 line
2.30.2
[PULL 7/8] docs: remove qemu_logo.pdf
In reply to Alex BennéeAs far as I can tell nothing in the source tree uses this file. The original comment mentions texi2pdf and I think that was all culled when we switched to our rst documentation pipeline.
Message-Id: <[email protected]>
docs/qemu_logo.pdf deleted binary +0 -0
Signature · 1 line
2.30.2
[PULL 5/8] semihosting: clean up handling of expanded argv
In reply to Alex BennéeAnother cleanup patch tripped over the fact we weren't being careful in our casting. Fix the casts, allow for a non-const and switch from g_realloc to g_renew.
The whole semihosting argument handling could do with some tests though.
Message-Id: <[email protected]>
semihosting/config.c +3 -3
@@ -51,7 +51,7 @@ typedef struct SemihostingConfig {bool enabled;SemihostingTarget target;Chardev *chardev; -const char **argv; +char **argv;int argc;const char *cmdline;/* concatenated argv */ } SemihostingConfig;
@@ -98,8 +98,8 @@ static int add_semihosting_arg(void *opaque,if (strcmp (name,"arg" ) ==0 ) { s->argc++;/* one extra element as g_strjoinv() expects NULL-terminated array */ - s->argv =g_realloc (s->argv, (s->argc +1 ) *sizeof (void *)); - s->argv[s->argc -1 ] = val; + s->argv = g_renew(char *, s->argv, s->argc + 1); + s->argv[s->argc -1 ] =g_strdup (val); s->argv[s->argc] =NULL ; }return 0 ;
Signature · 1 line
2.30.2
[PULL 2/8] target/i386: force maximum rounding precision for fildl[l]
In reply to Alex BennéeThe instruction description says "It is loaded without rounding errors." which implies we should have the widest rounding mode possible.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/888
Message-Id: <[email protected]>
target/i386/tcg/fpu_helper.c +13 -0
@@ -237,24 +237,37 @@ void helper_fldl_ST0(CPUX86State *env, uint64_t val)merge_exception_flags (env, old_flags); } +static FloatX80RoundPrec tmp_maximise_precision (float_status *st) +{ +FloatX80RoundPrec old =get_floatx80_rounding_precision (st); +set_floatx80_rounding_precision (floatx80_precision_x, st); +return old; +} +void helper_fildl_ST0 (CPUX86State *env,int32_t val) {int new_fpstt; +FloatX80RoundPrec old =tmp_maximise_precision (&env->fp_status); new_fpstt = (env->fpstt -1 ) &7 ; env->fpregs[new_fpstt].d =int32_to_floatx80 (val, &env->fp_status); env->fpstt = new_fpstt; env->fptags[new_fpstt] =0 ;/* validate stack entry */ + +set_floatx80_rounding_precision (old, &env->fp_status); }void helper_fildll_ST0 (CPUX86State *env,int64_t val) {int new_fpstt; +FloatX80RoundPrec old =tmp_maximise_precision (&env->fp_status); new_fpstt = (env->fpstt -1 ) &7 ; env->fpregs[new_fpstt].d =int64_to_floatx80 (val, &env->fp_status); env->fpstt = new_fpstt; env->fptags[new_fpstt] =0 ;/* validate stack entry */ + +set_floatx80_rounding_precision (old, &env->fp_status); }uint32_t helper_fsts_ST0 (CPUX86State *env)
Signature · 1 line
2.30.2
[PULL 4/8] docs/devel: try and impose some organisation
In reply to Alex BennéeWe have a growing set of developer docs but the index is currently in order of when stuff was added. Try and make things a bit easier to find my adding sub indexes and organising into themes.
Message-Id: <[email protected]>
docs/devel/index-api.rst new file +15 -0
@@ -0,0 +1,15 @@ +Internal QEMU APIs +------------------ + +Details about how QEMU's various internal APIs. Most of these are +generated from in-code annotations to function prototypes. + +.. toctree:: + :maxdepth: 2 + :includehidden: + + bitops + loads-stores + memory + modules + ui
docs/devel/index-build.rst new file +19 -0
@@ -0,0 +1,19 @@ +QEMU Build and Test System +-------------------------- + +Details about how QEMU's build system works and how it is integrated +into our testing infrastructure. You will need to understand some of +the basics if you are adding new files and targets to the build. + +.. toctree:: + :maxdepth: 2 + :includehidden: + + build-system + kconfig + testing + qtest + ci + qapi-code-gen + fuzzing + control-flow-integrity
docs/devel/index-internals.rst new file +21 -0
@@ -0,0 +1,21 @@ +Internal Subsystem Information +------------------------------ + +Details about QEMU's various subsystems including how to add features to them. + +.. toctree:: + :maxdepth: 2 + :includehidden: + + qom + atomics + block-coroutine-wrapper + clocks + ebpf_rss + migration + multi-process + reset + s390-dasd-ipl + tracing + vfio-migration + writing-monitor-commands
docs/devel/index-process.rst new file +17 -0
@@ -0,0 +1,17 @@ +QEMU Community Processes +------------------------ + +Notes about how to interact with the community and how and where to submit patches. + +.. toctree:: + :maxdepth: 2 + :includehidden: + + code-of-conduct + conflict-resolution + style + submitting-a-patch + trivial-patches + stable-process + submitting-a-pull-request + secure-coding-practices
docs/devel/index-tcg.rst new file +16 -0
@@ -0,0 +1,16 @@ +TCG Emulation +------------- + +Details about QEMU's Tiny Code Generator and the infrastructure +associated with emulation. You do not need to worry about this if you +are only implementing things for HW accelerated hypervisors. + +.. toctree:: + :maxdepth: 2 + :includehidden: + + tcg + decodetree + multi-thread-tcg + tcg-icount + tcg-plugins
docs/devel/index.rst +7 -39
51 lines not on this page · raw message
Signature · 1 line
2.30.2
[PULL 3/8] mailmap/gitdm: more fixes for bad tags and authors
In reply to Alex BennéeI was running some historical tags for the last 10 years and got the following warnings:
git log --use-mailmap --numstat --since "June 2010" | ~/src/gitdm.git/gitdm -n -l 5 [email protected] is an author name, probably not what you want
bad utf-8 ('utf-8' codec can't decode byte 0xe4 in position 552: invalid continuation byte) in patchm skipping bad utf-8 ('utf-8' codec can't decode byte 0xe4 in position 342: invalid continuation byte) in patchm skipping [email protected] is an author name, probably not what you want
Oops...funky email nicta.com.au
bad utf-8 ('utf-8' codec can't decode byte 0xe9 in position 232: invalid continuation byte) in patchm skipping Oops...funky email andreas.faerber
Grabbing changesets...done
Processed 76422 csets from 1902 developers
The following fixes try and alleviate that although I still get a warning for Aaron which I think is from 9743cd5736.
Message-Id: <[email protected]>
.mailmap +6 -0
@@ -28,7 +28,11 @@ Thiemo Seufer <[email protected]> ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> malc <[email protected]> malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> # Corrupted Author fields +Aaron Larson <[email protected]> [email protected] +Andreas Färber <[email protected]> Andreas Färber <andreas.faerber> +Jason Wang <[email protected]> Jason Wang <jasowang> Marek Dolata <[email protected]> [email protected] <[email protected]> +Michael Ellerman <[email protected]> [email protected] <[email protected]> Nick Hudson <[email protected]> [email protected] <[email protected]> # There is also a:
@@ -70,6 +74,7 @@ Yongbok Kim <[email protected]> <[email protected]> # Also list preferred name forms where people have changed their # git author config, or had utf8/latin1 encoding issues. Aaron Lindsay <[email protected]> +Aaron Larson <[email protected]> Alexey Gerasimenko <[email protected]> Alex Chen <[email protected]> Alex Ivanov <[email protected]>
@@ -144,6 +149,7 @@ Pan Nengyuan <[email protected]> Pavel Dovgaluk <[email protected]> Pavel Dovgaluk <[email protected]> Pavel Dovgaluk <[email protected]> +Peter Chubb <[email protected]> Peter Crosthwaite <[email protected]> Peter Crosthwaite <[email protected]> Peter Crosthwaite <[email protected]>
contrib/gitdm/aliases +3 -1
@@ -34,8 +34,10 @@ malc@c046a42c-6fe2-441c-8c8c-71466251a162 [email protected] # canonical emails [email protected] [email protected] -# some broken tags +# some broken DCO tags yuval.shaia.ml.gmail.com [email protected] +jasowang [email protected] +nicta.com.au [email protected] # There is also a: # (no author) <(no author)@c046a42c-6fe2-441c-8c8c-71466251a162>
Signature · 1 line
2.30.2
[PULL 8/8] docs/tcg-plugins: document QEMU_PLUGIN behaviour
In reply to Alex BennéeFrom: Christoph Muellner <[email protected]>
QEMU plugins can be loaded via command line arguments or via the QEMU_PLUGIN environment variable. Currently, only the first method is documented. Let's document QEMU_PLUGIN.
As drive-by cleanup, this patch fixes the path to the plugins in the same section of the documentation.
Message-Id: <[email protected]>
docs/devel/tcg-plugins.rst +7 -2
@@ -27,13 +27,18 @@ Once built a program can be run with multiple plugins loaded each with their own arguments:: $QEMU $OTHER_QEMU_ARGS \ - -plugin tests/plugin/libhowvec.so,inline=on,count=hint \ - -plugin tests/plugin/libhotblocks.so + -plugin contrib/plugin/libhowvec.so,inline=on,count=hint \ + -plugin contrib/plugin/libhotblocks.so Arguments are plugin specific and can be used to modify their behaviour. In this case the howvec plugin is being asked to use inline ops to count and break down the hint instructions by type. +Linux user-mode emulation also evaluates the environment variable +``QEMU_PLUGIN``:: + + QEMU_PLUGIN="file=contrib/plugins/libhowvec.so,inline=on,count=hint" $QEMU + Writing plugins ---------------
Signature · 1 line
2.30.2
[PULL 6/8] gitlab: include new aarch32 job in custom-runners
In reply to Alex BennéeWithout linking it in it won't be presented on the UI. Also while doing that fix the misnamed job from 20.40 to 20.04.
Message-Id: <[email protected]>
.gitlab-ci.d/custom-runners.yml +1 -0
@@ -16,4 +16,5 @@ variables: include: - local: '/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml' - local: '/.gitlab-ci.d/custom-runners/ubuntu-20.04-aarch64.yml' + - local: '/.gitlab-ci.d/custom-runners/ubuntu-20.04-aarch32.yml' - local: '/.gitlab-ci.d/custom-runners/centos-stream-8-x86_64.yml'
.gitlab-ci.d/custom-runners/ubuntu-20.04-aarch32.yml renamed from .gitlab-ci.d/custom-runners/ubuntu-20.40-aarch32.yml +0 -0
Signature · 1 line
2.30.2
Quoted 25 lines · Alex Bennée
The following changes since commit
15ef89d2a1a7b93845a6b09c2ee8e1979f6eb30b:Update version for v7.0.0-rc1 release (2022-03-22 22:58:44 +0000)
are available in the Git repository at:
https://github.com/stsquad/qemu.git tags/pull-fixes-for-7.0-230322-1
for you to fetch changes up to
0f37cf2f71f764c5649e149c774172df7ab187c7:docs/tcg-plugins: document
QEMU_PLUGINbehaviour (2022-03-23 10:38:09 +0000)----------------------------------------------------------------
Various fixes for 7.0- make clean also cleans tcg tests
- fix rounding error in i386 fildl[l]
- more clean-ups to gitdm/mailmap metadata
- apply some organisation to docs/devel
- clean-up semihosting argv handling
- add custom runner for aarch32
- remove old qemu_logo.pdf
- documentQEMU_PLUGINenv var
Quoted 1 line
----------------------------------------------------------------
Is there anything in here that would affect s390 host? The s390 job seems to be consistently timing out, eg:
https://gitlab.com/qemu-project/qemu/-/jobs/2241445160
but I have a feeling this is a pre-existing intermittent hang on that host...
-- PMM
Quoted 26 lines · Peter Maydell
Quoted 25 lines · Alex Bennée
The following changes since commit
15ef89d2a1a7b93845a6b09c2ee8e1979f6eb30b:Update version for v7.0.0-rc1 release (2022-03-22 22:58:44 +0000)
are available in the Git repository at:
https://github.com/stsquad/qemu.git tags/pull-fixes-for-7.0-230322-1
for you to fetch changes up to
0f37cf2f71f764c5649e149c774172df7ab187c7:docs/tcg-plugins: document
QEMU_PLUGINbehaviour (2022-03-23 10:38:09 +0000)----------------------------------------------------------------
Various fixes for 7.0- make clean also cleans tcg tests
- fix rounding error in i386 fildl[l]
- more clean-ups to gitdm/mailmap metadata
- apply some organisation to docs/devel
- clean-up semihosting argv handling
- add custom runner for aarch32
- remove old qemu_logo.pdf
- documentQEMU_PLUGINenv var
Quoted 7 lines
Quoted 1 line
----------------------------------------------------------------
Is there anything in here that would affect s390 host? The s390 job seems to be consistently timing out, eg:
https://gitlab.com/qemu-project/qemu/-/jobs/2241445160
but I have a feeling this is a pre-existing intermittent hang on that host...
Nope - but I can see the tasks that are locked up:
2769105 gitlab-ru 20 0 11816 8092 2112 S 0.0 0.0 0:00.03 │ └─ make --output-sync -j4 check V=1 2769521 gitlab-ru 20 0 533M 168M 8964 S 0.0 1.0 0:22.79 │ └─ /usr/bin/python3 -B /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/meson/meson.py test --n 2771499 gitlab-ru 20 0 533M 168M 8964 S 0.0 1.0 0:00.00 │ ├─ /usr/bin/python3 -B /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/meson/meson.py test 2771497 gitlab-ru 20 0 78740 3284 2924 S 10.5 0.0 9:44.54 │ └─ /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/build/tests/qtest/migration-test --tap - 2773014 gitlab-ru 20 0 1762M 54716 36780 S 0.0 0.3 0:00.31 │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socket,p 2773019 gitlab-ru 20 0 1762M 54716 36780 S 0.0 0.3 0:00.00 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2773018 gitlab-ru 20 0 1762M 54716 36780 S 0.0 0.3 0:00.00 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2773017 gitlab-ru 20 0 1762M 54716 36780 S 0.0 0.3 0:00.00 │ │ └─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2772869 gitlab-ru 20 0 0 0 0 Z 0.0 0.0 0:00.11 │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socket,p 2772862 gitlab-ru 20 0 2987M 162M 36972 S 107. 1.0 1h44:46 │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socket,p 2772915 gitlab-ru 20 0 2987M 162M 36972 S 0.0 1.0 0:00.01 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2772867 gitlab-ru 20 0 2987M 162M 36972 R 99.6 1.0 1h37:41 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2772866 gitlab-ru 20 0 2987M 162M 36972 S 4.2 1.0 4:18.71 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2772864 gitlab-ru 20 0 2987M 162M 36972 S 0.0 1.0 0:00.00 │ │ └─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2771497.sock -qtest-log /dev/null -chardev socke 2771498 gitlab-ru 20 0 78740 3284 2924 S 0.0 0.0 0:00.00 │ └─ /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/build/tests/qtest/migration-test --ta 2646940 gitlab-ru 20 0 7152 2556 1852 S 0.0 0.0 0:00.00 ├─ bash --login 2691489 gitlab-ru 20 0 11820 7896 1912 S 0.0 0.0 0:00.04 │ └─ make --output-sync -j4 check V=1 2691914 gitlab-ru 20 0 533M 167M 8720 S 0.0 1.0 0:22.20 │ └─ /usr/bin/python3 -B /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/meson/meson.py test --n2706323 gitlab-ru 20 0 533M 167M 8720 S 0.0 1.0 0:00.00 │ ├─ /usr/bin/python3 -B /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/meson/meson.py test 2706321 gitlab-ru 20 0 78944 3500 2924 S 48.9 0.0 1h30:10 │ └─ /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/build/tests/qtest/virtio-net-failover --2706783 gitlab-ru 20 0 695M 55164 36636 S 34.6 0.3 1h04:59 │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2706321.sock -qtest-log /dev/null -chardev socket,p2706797 gitlab-ru 20 0 695M 55164 36636 S 0.0 0.3 0:00.00 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2706321.sock -qtest-log /dev/null -chardev socke2706796 gitlab-ru 20 0 695M 55164 36636 R 22.4 0.3 41:24.24 │ │ ├─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2706321.sock -qtest-log /dev/null -chardev socke2706795 gitlab-ru 20 0 695M 55164 36636 S 0.0 0.3 0:00.00 │ │ └─ ./qemu-system-i386 -qtest unix:/tmp/qtest-2706321.sock -qtest-log /dev/null -chardev socke2706322 gitlab-ru 20 0 78944 3500 2924 S 0.0 0.0 0:00.00 │ └─ /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/build/tests/qtest/virtio-net-failover
Quoted 2 lines
-- PMM
Signature · 1 line
Alex Bennée
Quoted 10 lines · Alex Bennée
Quoted 5 lines · Peter Maydell
Is there anything in here that would affect s390 host? The s390 job seems to be consistently timing out, eg:
https://gitlab.com/qemu-project/qemu/-/jobs/2241445160
but I have a feeling this is a pre-existing intermittent hang on that host...Nope - but I can see the tasks that are locked up:
We definitely seem to have a problem where the runner is not correctly killing processes it has started when a job hits the 1 hour timeout.
-- PMM
Peter Maydell
AppliedQuoted 16 lines · Alex Bennée
The following changes since commit
15ef89d2a1a7b93845a6b09c2ee8e1979f6eb30b:Update version for v7.0.0-rc1 release (2022-03-22 22:58:44 +0000)
are available in the Git repository at:
https://github.com/stsquad/qemu.git tags/pull-fixes-for-7.0-230322-1
for you to fetch changes up to
0f37cf2f71f764c5649e149c774172df7ab187c7:docs/tcg-plugins: document
QEMU_PLUGINbehaviour (2022-03-23 10:38:09 +0000)----------------------------------------------------------------
Various fixes for 7.0
Quoted 9 lines
- make clean also cleans tcg tests
- fix rounding error in i386 fildl[l]
- more clean-ups to gitdm/mailmap metadata
- apply some organisation to docs/devel
- clean-up semihosting argv handling
- add custom runner for aarch32
- remove old qemu_logo.pdf
- documentQEMU_PLUGINenv var
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.0
for any user-visible changes.
-- PMM