[PULL 00/24] rust, x86, misc patches for 2024-10-28

Paolo Bonzini posted 24 patches 3 weeks, 5 days ago
Only 23 patches received!
MAINTAINERS                                        |  1 +
docs/about/build-platforms.rst                     |  2 +-
docs/about/deprecated.rst                          | 12 ++-
configure                                          | 10 ++-
meson.build                                        | 43 ++++++++---
include/hw/qdev-core.h                             |  4 +-
include/hw/qdev-properties.h                       |  4 +-
hw/core/qdev-properties.c                          | 26 +++----
system/qdev-monitor.c                              |  2 +-
target/i386/tcg/decode-new.c.inc                   |  4 +-
.gitlab-ci.d/buildtest.yml                         |  2 +-
.gitlab-ci.d/cirrus/freebsd-14.vars                |  2 +-
.gitlab-ci.d/cirrus/macos-14.vars                  |  2 +-
.gitlab-ci.d/cirrus/macos-15.vars                  |  2 +-
rust/hw/char/Kconfig                               |  1 -
rust/hw/char/pl011/src/device.rs                   |  6 +-
rust/hw/char/pl011/src/device_class.rs             |  6 +-
rust/hw/char/pl011/src/memory_ops.rs               | 10 +--
rust/qemu-api-macros/meson.build                   |  2 +-
rust/qemu-api-macros/src/lib.rs                    | 30 ++------
rust/qemu-api/meson.build                          | 29 +++++++-
rust/qemu-api/src/definitions.rs                   | 66 ++++++++---------
rust/qemu-api/src/device_class.rs                  | 85 ++++++----------------
rust/qemu-api/src/lib.rs                           |  4 +-
rust/qemu-api/src/tests.rs                         | 49 -------------
rust/qemu-api/src/zeroable.rs                      | 23 ++++++
rust/qemu-api/tests/tests.rs                       | 78 ++++++++++++++++++++
scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml   |  2 +
scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml     |  2 +
scripts/meson-buildoptions.                        |  0
stubs/meson.build                                  |  7 +-
tests/docker/dockerfiles/alpine.docker             |  2 +
tests/docker/dockerfiles/centos9.docker            |  2 +
tests/docker/dockerfiles/debian-amd64-cross.docker |  3 +
tests/docker/dockerfiles/debian-arm64-cross.docker |  3 +
tests/docker/dockerfiles/debian-armhf-cross.docker |  3 +
tests/docker/dockerfiles/debian-i686-cross.docker  |  3 +
.../dockerfiles/debian-mips64el-cross.docker       |  3 +
.../docker/dockerfiles/debian-mipsel-cross.docker  |  3 +
.../docker/dockerfiles/debian-ppc64el-cross.docker |  3 +
tests/docker/dockerfiles/debian-s390x-cross.docker |  3 +
tests/docker/dockerfiles/debian.docker             |  2 +
.../docker/dockerfiles/fedora-rust-nightly.docker  |  2 +
tests/docker/dockerfiles/fedora-win64-cross.docker |  2 +
tests/docker/dockerfiles/fedora.docker             |  2 +
tests/docker/dockerfiles/opensuse-leap.docker      |  2 +
tests/docker/dockerfiles/ubuntu2204.docker         |  2 +
tests/lcitool/projects/qemu.yml                    |  2 +
tests/vm/generated/freebsd.json                    |  2 +
49 files changed, 319 insertions(+), 241 deletions(-)
delete mode 100644 rust/qemu-api/src/tests.rs
create mode 100644 rust/qemu-api/src/zeroable.rs
create mode 100644 rust/qemu-api/tests/tests.rs
delete mode 100644 scripts/meson-buildoptions.
[PULL 00/24] rust, x86, misc patches for 2024-10-28
Posted by Paolo Bonzini 3 weeks, 5 days ago
The following changes since commit e67b7aef7c7f67ecd0282e903e0daff806d5d680:

  Merge tag 'for-upstream' of https://repo.or.cz/qemu/kevin into staging (2024-10-24 11:23:46 +0100)

are available in the Git repository at:

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

for you to fetch changes up to 3f9f26be71ba39e606ad90f6fc2f56d5bf336b5a:

  MAINTAINERS: Add myself as a reviewer of x86 general architecture support (2024-10-28 11:56:17 +0100)

----------------------------------------------------------------
* target/i386: fixes for -cpu pentium3
* qdev: allow making Properties arrays const
* sockets: Remove dead code
* configure: Fix typo
* stubs: avoid duplicate symbols in libqemuutil.a
* remove erroneous file that breaks git clone on Windows
* rust: cleanups, integration tests, enable rust in the Fedora system build job
* configure: detect 64-bit MIPS for Meson and rustc
* configure: deprecate 32-bit MIPS
* add Zhao Liu as x86 reviewer

----------------------------------------------------------------
Daniel P. Berrangé (2):
      tests: add 'rust' and 'bindgen' to CI package list
      ci: enable rust in the Fedora system build job

Manos Pitsidianakis (2):
      Revert "rust: add PL011 device model"
      rust: add PL011 device model

Paolo Bonzini (18):
      stubs: avoid duplicate symbols in libqemuutil.a
      target/i386: fix CPUID check for LFENCE and SFENCE
      qdev: make properties array "const"
      meson: import rust module into a global variable
      meson: remove repeated search for rust_root_crate.sh
      meson: pass rustc_args when building all crates
      rust: do not always select X_PL011_RUST
      rust: do not use --no-size_t-is-usize
      rust: remove uses of #[no_mangle]
      rust: modernize link_section usage for ELF platforms
      rust: build integration test for the qemu_api crate
      rust: cleanup module_init!, use it from #[derive(Object)]
      rust: clean up define_property macro
      rust: make properties array immutable
      rust: provide safe wrapper for MaybeUninit::zeroed()
      rust: do not use TYPE_CHARDEV unnecessarily
      configure: detect 64-bit MIPS
      configure, meson: deprecate 32-bit MIPS

Pierrick Bouvier (1):
      scripts: remove erroneous file that breaks git clone on Windows

Zhao Liu (1):
      MAINTAINERS: Add myself as a reviewer of x86 general architecture support

 MAINTAINERS                                        |  1 +
 docs/about/build-platforms.rst                     |  2 +-
 docs/about/deprecated.rst                          | 12 ++-
 configure                                          | 10 ++-
 meson.build                                        | 43 ++++++++---
 include/hw/qdev-core.h                             |  4 +-
 include/hw/qdev-properties.h                       |  4 +-
 hw/core/qdev-properties.c                          | 26 +++----
 system/qdev-monitor.c                              |  2 +-
 target/i386/tcg/decode-new.c.inc                   |  4 +-
 .gitlab-ci.d/buildtest.yml                         |  2 +-
 .gitlab-ci.d/cirrus/freebsd-14.vars                |  2 +-
 .gitlab-ci.d/cirrus/macos-14.vars                  |  2 +-
 .gitlab-ci.d/cirrus/macos-15.vars                  |  2 +-
 rust/hw/char/Kconfig                               |  1 -
 rust/hw/char/pl011/src/device.rs                   |  6 +-
 rust/hw/char/pl011/src/device_class.rs             |  6 +-
 rust/hw/char/pl011/src/memory_ops.rs               | 10 +--
 rust/qemu-api-macros/meson.build                   |  2 +-
 rust/qemu-api-macros/src/lib.rs                    | 30 ++------
 rust/qemu-api/meson.build                          | 29 +++++++-
 rust/qemu-api/src/definitions.rs                   | 66 ++++++++---------
 rust/qemu-api/src/device_class.rs                  | 85 ++++++----------------
 rust/qemu-api/src/lib.rs                           |  4 +-
 rust/qemu-api/src/tests.rs                         | 49 -------------
 rust/qemu-api/src/zeroable.rs                      | 23 ++++++
 rust/qemu-api/tests/tests.rs                       | 78 ++++++++++++++++++++
 scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml   |  2 +
 scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml     |  2 +
 scripts/meson-buildoptions.                        |  0
 stubs/meson.build                                  |  7 +-
 tests/docker/dockerfiles/alpine.docker             |  2 +
 tests/docker/dockerfiles/centos9.docker            |  2 +
 tests/docker/dockerfiles/debian-amd64-cross.docker |  3 +
 tests/docker/dockerfiles/debian-arm64-cross.docker |  3 +
 tests/docker/dockerfiles/debian-armhf-cross.docker |  3 +
 tests/docker/dockerfiles/debian-i686-cross.docker  |  3 +
 .../dockerfiles/debian-mips64el-cross.docker       |  3 +
 .../docker/dockerfiles/debian-mipsel-cross.docker  |  3 +
 .../docker/dockerfiles/debian-ppc64el-cross.docker |  3 +
 tests/docker/dockerfiles/debian-s390x-cross.docker |  3 +
 tests/docker/dockerfiles/debian.docker             |  2 +
 .../docker/dockerfiles/fedora-rust-nightly.docker  |  2 +
 tests/docker/dockerfiles/fedora-win64-cross.docker |  2 +
 tests/docker/dockerfiles/fedora.docker             |  2 +
 tests/docker/dockerfiles/opensuse-leap.docker      |  2 +
 tests/docker/dockerfiles/ubuntu2204.docker         |  2 +
 tests/lcitool/projects/qemu.yml                    |  2 +
 tests/vm/generated/freebsd.json                    |  2 +
 49 files changed, 319 insertions(+), 241 deletions(-)
 delete mode 100644 rust/qemu-api/src/tests.rs
 create mode 100644 rust/qemu-api/src/zeroable.rs
 create mode 100644 rust/qemu-api/tests/tests.rs
 delete mode 100644 scripts/meson-buildoptions.
-- 
2.47.0


[PULL 05/24] scripts: remove erroneous file that breaks git clone on Windows
Posted by Paolo Bonzini 3 weeks, 5 days ago
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>

This file was created by mistake in recent ed7667188 (9p: remove
'proxy' filesystem backend driver).

When cloning the repository using native git for windows, we see this:
Error: error: invalid path 'scripts/meson-buildoptions.'
Error: The process 'C:\Program Files\Git\bin\git.exe' failed with exit code 128
Link: https://lore.kernel.org/r/20241023073914.895438-1-pierrick.bouvier@linaro.org

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 scripts/meson-buildoptions. | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 delete mode 100644 scripts/meson-buildoptions.

diff --git a/scripts/meson-buildoptions. b/scripts/meson-buildoptions.
deleted file mode 100644
index e69de29bb2d..00000000000
-- 
2.47.0