Skip to contentSkip to conversation

Misc patches for 2020-12-21

GIT PULL Paolo Bonzini 3 participants 5 messages Jan 4, 2021 – Jan 7, 2021

lore
Share & tools
lore
#0 lore raw

The following changes since commit 41192db338588051f21501abc13743e62b0a5605:

Merge remote-tracking branch 'remotes/ehabkost-gl/tags/machine-next-pull-request' into staging (2021-01-01 22:57:15 +0000)

are available in the Git repository at:

https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to bac87e979fcca9f884e1c9190132c51d99a86984:

win32: drop fd registration to the main-loop on setting non-block (2021-01-02 21:03:38 +0100)

----------------------------------------------------------------
From Alex's pull request:
* improve cross-build KVM coverage
* new --without-default-features configure flag
* add __repr__ for ConsoleSocket for debugging
* build tcg tests with -Werror
* test 32 bit builds with fedora
* remove last traces of debian9
* hotfix for centos8 powertools repo

* Move lots of feature detection code to meson (Alex, myself)
* CFI and LTO support (Daniele)
* test-char dangling pointer (Eduardo)
* Build system and win32 fixes (Marc-André)
* Initialization fixes (myself)
* TCG include cleanup (Richard, myself)
* x86 'int N' fix (Peter)

----------------------------------------------------------------

For v2, I just dropped the 0.55->0.56 upgrade and will include it later. The remaining patches are the same as before.

Paolo

Alex Bennée (7):
gitlab: include aarch64-softmmu and ppc64-softmmu cross-system-build
configure: move gettext detection to meson.build
configure: add --without-default-features
python: add __repr__ to ConsoleSocket to aid debugging
gitlab: move --without-default-devices build from Travis
gitlab: add --without-default-features build
tests/tcg: build tests with -Werror

Daniel P. Berrangé (1):
tests: update for rename of CentOS8 PowerTools repo

Daniele Buono (5):
configure,meson: add option to enable LTO
cfi: Initial support for cfi-icall in QEMU
check-block: enable iotests with cfi-icall configure,meson: support Control-Flow Integrity
docs: Add CFI Documentation

Eduardo Habkost (2):
test-char: Destroy chardev correctly at char_file_test_internal()
qom: Assert that objects being destroyed have no parent

Marc-André Lureau (2):
build-sys: fix -static linking of libvhost-user
win32: drop fd registration to the main-loop on setting non-block

Paolo Bonzini (32):
configure: document --without-default-{features,devices}
vl: initialize displays _after_ exiting preconfiguration remove TCG includes from common code
trace: do not include TCG helper tracepoints in no-TCG builds
Makefile: add dummy target for build.ninja dependencies
meson: fix detection of curses with pkgconfig
meson: use pkg-config method for libudev
meson: use dependency to gate block modules
meson: cleanup Kconfig.host handling
configure: remove useless code to check for Xen PCI passthrough
configure: remove variable bogus_os
configure: accept --enable-slirp
configure: remove CONFIG_FILEVERSION and CONFIG_PRODUCTVERSION
brlapi: convert to meson
curl: remove compatibility code, require 7.29.0
curl: convert to meson
glusterfs: convert to meson
bzip2: convert to meson
libiscsi: convert to meson
libnfs: convert to meson
libssh: convert to meson
rbd: convert to meson
lzo: convert to meson
snappy: convert to meson
lzfse: convert to meson
zstd: convert to meson
seccomp: convert to meson
virtfs: convert to meson
cap_ng: convert to meson
libattr: convert to meson
meson.build: convert --with-default-devices to meson
configure: move tests/qemu-iotests/common.env generation to meson

Peter Maydell (1):
target/i386: Check privilege level for protected mode 'int N' task gate

Richard Henderson (1):
util: Extract flush_icache_range to cacheflush.c

Thomas Huth (2):
gitlab-CI: Test 32-bit builds with the fedora-i386-cross container tests/docker: Remove the remainders of debian9 containers from the Makefile

 .gitlab-ci.d/crossbuilds.yml                      |  22 +-
 .gitlab-ci.yml                                    |  14 +
 .travis.yml                                       |   8 -
 MAINTAINERS                                       |   2 +
 Makefile                                          |   1 +
 accel/Kconfig                                     |   9 +
 accel/stubs/tcg-stub.c                            |   1 -
 accel/tcg/cpu-exec.c                              |  11 +
 accel/tcg/cputlb.c                                |   2 +-
 accel/tcg/translate-all.c                         |   2 +-
 accel/tcg/user-exec.c                             |   2 +-
 block/curl.c                                      |  28 -
 block/meson.build                                 |  22 +-
 chardev/meson.build                               |   2 +-
 configure                                         | 798 +++++-----------------
 contrib/elf2dmp/meson.build                       |   2 +-
 contrib/vhost-user-scsi/meson.build               |   2 +-
 cpu.c                                             |   2 +-
 docs/devel/control-flow-integrity.rst             | 137 ++++
 docs/devel/index.rst                              |   5 +-
 docs/devel/kconfig.rst                            |  19 +-
 hw/i386/kvmvapic.c                                |   1 -
 {accel/tcg => include/exec}/translate-all.h       |   0
 include/qemu/cacheflush.h                         |  24 +
 include/qemu/compiler.h                           |  11 +
 meson.build                                       | 430 +++++++++---
 meson_options.txt                                 |  49 +-
 migration/meson.build                             |   2 +-
 monitor/misc.c                                    |   1 -
 plugins/core.c                                    |  37 +
 plugins/loader.c                                  |   7 +
 po/meson.build                                    |   2 +-
 python/qemu/console_socket.py                     |   7 +
 qom/object.c                                      |   1 +
 softmmu/meson.build                               |   2 +-
 softmmu/physmem.c                                 |   4 +-
 softmmu/qemu-seccomp.c                            |   2 -
 softmmu/vl.c                                      |   2 +-
 target/i386/tcg/seg_helper.c                      |  35 +-
 tcg/aarch64/tcg-target.h                          |   5 -
 tcg/arm/tcg-target.h                              |   5 -
 tcg/i386/tcg-target.h                             |   4 -
 tcg/mips/tcg-target.h                             |  11 -
 tcg/ppc/tcg-target.c.inc                          |  22 -
 tcg/ppc/tcg-target.h                              |   1 -
 tcg/riscv/tcg-target.h                            |   5 -
 tcg/s390/tcg-target.h                             |   4 -
 tcg/sparc/tcg-target.h                            |   8 -
 tcg/tcg.c                                         |   1 +
 tcg/tci.c                                         |   7 +
 tcg/tci/tcg-target.h                              |   4 -
 tests/check-block.sh                              |  18 +-
 tests/docker/Makefile.include                     |   6 +-
 tests/docker/dockerfiles/centos8.docker           |   5 +-
 tests/docker/dockerfiles/fedora-i386-cross.docker |  18 +-
 tests/qemu-iotests/common.env.in                  |   3 +
 tests/qemu-iotests/meson.build                    |   3 +
 tests/tcg/Makefile.target                         |   2 +-
 tests/test-char.c                                 |   2 +-
 tools/meson.build                                 |   6 +-
 trace/meson.build                                 |   2 +-
 util/cacheflush.c                                 |  71 ++
 util/main-loop.c                                  |  11 +
 util/meson.build                                  |   2 +-
 util/oslib-posix.c                                |  11 +
 util/oslib-win32.c                                |   1 -
 version.rc                                        |   4 +-
 67 files changed, 1027 insertions(+), 923 deletions(-)
 create mode 100644 docs/devel/control-flow-integrity.rst
 rename {accel/tcg => include/exec}/translate-all.h (100%)
 create mode 100644 include/qemu/cacheflush.h
 create mode 100644 tests/qemu-iotests/common.env.in
 create mode 100644 util/cacheflush.c
Signature · 1 line
2.29.2
#1 lore raw
Quoted 31 lines · Paolo Bonzini

The following changes since commit 41192db338588051f21501abc13743e62b0a5605:

Merge remote-tracking branch 'remotes/ehabkost-gl/tags/machine-next-pull-request' into staging (2021-01-01 22:57:15 +0000)

are available in the Git repository at:

https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to bac87e979fcca9f884e1c9190132c51d99a86984:

win32: drop fd registration to the main-loop on setting non-block (2021-01-02 21:03:38 +0100)

----------------------------------------------------------------
From Alex's pull request:
* improve cross-build KVM coverage
* new --without-default-features configure flag
* add __repr__ for ConsoleSocket for debugging
* build tcg tests with -Werror
* test 32 bit builds with fedora
* remove last traces of debian9
* hotfix for centos8 powertools repo

* Move lots of feature detection code to meson (Alex, myself)
* CFI and LTO support (Daniele)
* test-char dangling pointer (Eduardo)
* Build system and win32 fixes (Marc-André)
* Initialization fixes (myself)
* TCG include cleanup (Richard, myself)
* x86 'int N' fix (Peter)

Quoted 1 line

----------------------------------------------------------------

Compile failure on s390x:

../../block/ssh.c: In function ‘check_host_key_knownhosts’:
../../block/ssh.c:281:28: error: storage size of ‘state’ isn’t known

     enum ssh_known_hosts_e state;
                            ^~~~~
../../block/ssh.c:289:13: error: implicit declaration of function
‘ssh_session_is_known_server’ [-Werror=implicit-function-declaration]
     state = ssh_session_is_known_server(s->session);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~

../../block/ssh.c:289:13: error: nested extern declaration of ‘ssh_session_is_known_server’ [-Werror=nested-externs]

                                            ../../block/ssh.c:293:10:
error: ‘SSH_KNOWN_HOSTS_OK’ undeclared (first use in this function);
did you mean ‘SSH_OPTIONS_HOSTKEYS’?
     case SSH_KNOWN_HOSTS_OK:
          ^~~~~~~~~~~~~~~~~~
          SSH_OPTIONS_HOSTKEYS

../../block/ssh.c:293:10: note: each undeclared identifier is reported only once for each function it appears in ../../block/ssh.c:297:10: error: ‘SSH_KNOWN_HOSTS_CHANGED’ undeclared (first use in this function); did you mean ‘SSH_KNOWN_HOSTS_OK’?

     case SSH_KNOWN_HOSTS_CHANGED:
          ^~~~~~~~~~~~~~~~~~~~~~~
          SSH_KNOWN_HOSTS_OK

(and other similar in the same file)

On x86, new warnings from meson when doing the linux-user static build:

Has header "sasl/sasl.h" : YES (cached)
Library sasl2 found: YES
Has header "snappy-c.h" : YES
Library snappy found: YES
../../meson.build:829: WARNING: could not link libsnappy, disabling Has header "lzo/lzo1x.h" : YES
Library lzo2 found: YES
../../meson.build:843: WARNING: could not link liblzo2, disabling

thanks
-- PMM

#2 lore raw
Quoted 14 lines · Peter Maydell
Quoted 13 lines · Paolo Bonzini

The following changes since commit 41192db338588051f21501abc13743e62b0a5605:

Merge remote-tracking branch 'remotes/ehabkost-gl/tags/machine-next-pull-request' into staging (2021-01-01 22:57:15 +0000)

are available in the Git repository at:

https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to bac87e979fcca9f884e1c9190132c51d99a86984:

win32: drop fd registration to the main-loop on setting non-block (2021-01-02 21:03:38 +0100)

Quoted 9 lines
Quoted 9 lines

----------------------------------------------------------------
From Alex's pull request:
* improve cross-build KVM coverage
* new --without-default-features configure flag
* add __repr__ for ConsoleSocket for debugging
* build tcg tests with -Werror
* test 32 bit builds with fedora
* remove last traces of debian9
* hotfix for centos8 powertools repo

Given this might take awhile to get in and the fact I've got more fixes for regressions since Christmas I might as well include these in a only testing PR. I'm giving it a final run on the CI systems now before I send the email, tag for reference:

: To github.com:stsquad/qemu.git
: * [new tag] pull-testing-060121-3 -> pull-testing-060121-3
: To gitlab.com:stsquad/qemu.git
: * [new tag] pull-testing-060121-3 -> pull-testing-060121-3
: pushed pull-testing-060121-3

Signature · 1 line
Alex Bennée
#3 lore raw

I have already sent the v3, so you may want to wait a day or two. The good thing of conversion patches is that if they break something you can just drop them. :)

Paolo

Il mer 6 gen 2021, 17:56 Alex Bennée <[email protected]> ha scritto:

Quoted 46 lines
Quoted 3 lines · Peter Maydell
Quoted 2 lines · Paolo Bonzini

The following changes since commit

41192db338588051f21501abc13743e62b0a5605:

Quoted 2 lines
Quoted 2 lines

Merge remote-tracking branch

'remotes/ehabkost-gl/tags/machine-next-pull-request' into staging (2021-01-01 22:57:15 +0000)

Quoted 8 lines
Quoted 8 lines

are available in the Git repository at:

https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to bac87e979fcca9f884e1c9190132c51d99a86984:

win32: drop fd registration to the main-loop on setting non-block

(2021-01-02 21:03:38 +0100)

Quoted 10 lines
Quoted 10 lines

----------------------------------------------------------------
From Alex's pull request:
* improve cross-build KVM coverage
* new --without-default-features configure flag
* add __repr__ for ConsoleSocket for debugging
* build tcg tests with -Werror
* test 32 bit builds with fedora
* remove last traces of debian9
* hotfix for centos8 powertools repo

Given this might take awhile to get in and the fact I've got more fixes for regressions since Christmas I might as well include these in a only testing PR. I'm giving it a final run on the CI systems now before I send the email, tag for reference:

: To github.com:stsquad/qemu.git
: * [new tag] pull-testing-060121-3 -> pull-testing-060121-3
: To gitlab.com:stsquad/qemu.git
: * [new tag] pull-testing-060121-3 -> pull-testing-060121-3
: pushed pull-testing-060121-3

--
Alex Bennée

#4 lore raw
Quoted 3 lines · Paolo Bonzini

I have already sent the v3, so you may want to wait a day or two. The good thing of conversion patches is that if they break something you can just drop them. :)

I re-span with v4 which just has a few extra regression fixes on top of the ones in your v3.

Quoted 51 lines

Paolo

Il mer 6 gen 2021, 17:56 Alex Bennée <[email protected]> ha scritto:

Quoted 46 lines
Quoted 3 lines · Peter Maydell
Quoted 2 lines · Paolo Bonzini

The following changes since commit

41192db338588051f21501abc13743e62b0a5605:

Quoted 2 lines
Quoted 2 lines

Merge remote-tracking branch

'remotes/ehabkost-gl/tags/machine-next-pull-request' into staging (2021-01-01 22:57:15 +0000)

Quoted 8 lines
Quoted 8 lines

are available in the Git repository at:

https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to bac87e979fcca9f884e1c9190132c51d99a86984:

win32: drop fd registration to the main-loop on setting non-block

(2021-01-02 21:03:38 +0100)

Quoted 10 lines
Quoted 10 lines

----------------------------------------------------------------
From Alex's pull request:
* improve cross-build KVM coverage
* new --without-default-features configure flag
* add __repr__ for ConsoleSocket for debugging
* build tcg tests with -Werror
* test 32 bit builds with fedora
* remove last traces of debian9
* hotfix for centos8 powertools repo

Given this might take awhile to get in and the fact I've got more fixes for regressions since Christmas I might as well include these in a only testing PR. I'm giving it a final run on the CI systems now before I send the email, tag for reference:

: To github.com:stsquad/qemu.git
: * [new tag] pull-testing-060121-3 -> pull-testing-060121-3
: To gitlab.com:stsquad/qemu.git
: * [new tag] pull-testing-060121-3 -> pull-testing-060121-3
: pushed pull-testing-060121-3

--
Alex Bennée

Signature · 1 line
Alex Bennée