qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL v2, part1 00/15] Rust changes for 2025-05-06
@ 2025-05-08 15:54 Paolo Bonzini
  2025-05-09 14:13 ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2025-05-08 15:54 UTC (permalink / raw)
  To: qemu-devel

The following changes since commit a9e0c9c0f14e19d23443ac24c8080b4708d2eab8:

  Merge tag 'pull-9p-20250505' of https://github.com/cschoenebeck/qemu into staging (2025-05-05 11:26:59 -0400)

are available in the Git repository at:

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

for you to fetch changes up to 821ee1c31427a4e08af030469311c2d8ed96f1d1:

  docs: build-system: fix typo (2025-05-06 16:02:04 +0200)

----------------------------------------------------------------
* ci: enable RISC-V cross jobs
* rust: bump minimum supported version to 1.77
* rust: enable uninlined_format_args lint
* initial Emscripten support
* small fixes

----------------------------------------------------------------
Paolo Bonzini (15):
      lcitool: use newer Rust for Debian and Ubuntu
      meson, cargo: require Rust 1.77.0
      rust: use std::ffi instead of std::os::raw
      rust: let bilge use "let ... else"
      rust: qemu_api_macros: make pattern matching more readable and efficient
      rust: use MaybeUninit::zeroed() in const context
      rust: qom: fix TODO about zeroability of classes
      rust: enable clippy::ptr_cast_constness
      rust: remove offset_of replacement
      rust: replace c_str! with c"" literals
      docs: rust: update for newer minimum supported version
      target/i386/emulate: fix target_ulong format strings
      rust: clippy: enable uninlined_format_args lint
      ci: run RISC-V cross jobs by default
      docs: build-system: fix typo

 docs/about/build-platforms.rst                     |  11 +-
 docs/devel/build-system.rst                        |   2 +-
 docs/devel/rust.rst                                |  38 +----
 meson.build                                        |   6 +-
 target/i386/emulate/x86_decode.c                   |   2 +-
 target/i386/emulate/x86_emu.c                      |   2 +-
 .gitlab-ci.d/container-cross.yml                   |   3 -
 .gitlab-ci.d/crossbuilds.yml                       |   5 -
 rust/Cargo.lock                                    |   1 -
 rust/Cargo.toml                                    |   7 +-
 rust/clippy.toml                                   |   3 +-
 rust/hw/char/pl011/src/device.rs                   |   4 +-
 rust/hw/char/pl011/src/device_class.rs             |  13 +-
 rust/hw/char/pl011/src/lib.rs                      |   6 +-
 rust/hw/timer/hpet/src/fw_cfg.rs                   |   6 +-
 rust/hw/timer/hpet/src/hpet.rs                     |  28 ++--
 rust/hw/timer/hpet/src/lib.rs                      |   4 +-
 rust/qemu-api-macros/src/lib.rs                    | 123 ++++++---------
 rust/qemu-api/Cargo.toml                           |   3 -
 rust/qemu-api/build.rs                             |  11 +-
 rust/qemu-api/meson.build                          |   5 -
 rust/qemu-api/src/c_str.rs                         |  61 --------
 rust/qemu-api/src/cell.rs                          |   6 +-
 rust/qemu-api/src/chardev.rs                       |   5 +-
 rust/qemu-api/src/irq.rs                           |   6 +-
 rust/qemu-api/src/lib.rs                           |   7 +-
 rust/qemu-api/src/memory.rs                        |   3 +-
 rust/qemu-api/src/offset_of.rs                     | 168 ---------------------
 rust/qemu-api/src/qdev.rs                          |   9 +-
 rust/qemu-api/src/qom.rs                           |  14 +-
 rust/qemu-api/src/timer.rs                         |   4 +-
 rust/qemu-api/src/vmstate.rs                       |  14 +-
 rust/qemu-api/src/zeroable.rs                      | 106 +++----------
 rust/qemu-api/tests/tests.rs                       |  11 +-
 rust/qemu-api/tests/vmstate_tests.rs               |  27 ++--
 scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml   |   2 +-
 scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml     |   2 +-
 subprojects/bilge-impl-0.2-rs.wrap                 |   1 -
 subprojects/packagefiles/bilge-impl-1.63.0.patch   |  45 ------
 tests/docker/dockerfiles/debian-amd64-cross.docker |   2 +-
 tests/docker/dockerfiles/debian-arm64-cross.docker |   2 +-
 tests/docker/dockerfiles/debian-armhf-cross.docker |   2 +-
 tests/docker/dockerfiles/debian-i686-cross.docker  |   2 +-
 .../dockerfiles/debian-mips64el-cross.docker       |   2 +-
 .../docker/dockerfiles/debian-mipsel-cross.docker  |   2 +-
 .../docker/dockerfiles/debian-ppc64el-cross.docker |   2 +-
 tests/docker/dockerfiles/debian-s390x-cross.docker |   2 +-
 tests/docker/dockerfiles/debian.docker             |   2 +-
 tests/docker/dockerfiles/ubuntu2204.docker         |   3 +-
 tests/lcitool/mappings.yml                         |   5 +
 tests/lcitool/refresh                              |   5 +-
 51 files changed, 183 insertions(+), 622 deletions(-)
 delete mode 100644 rust/qemu-api/src/c_str.rs
 delete mode 100644 rust/qemu-api/src/offset_of.rs
 delete mode 100644 subprojects/packagefiles/bilge-impl-1.63.0.patch
-- 
2.49.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PULL v2, part1 00/15] Rust changes for 2025-05-06
  2025-05-08 15:54 [PULL v2, part1 00/15] Rust changes for 2025-05-06 Paolo Bonzini
@ 2025-05-09 14:13 ` Stefan Hajnoczi
  2025-05-09 14:54   ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-05-09 14:13 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 5418 bytes --]

On Thu, May 08, 2025 at 05:54:39PM +0200, Paolo Bonzini wrote:
> The following changes since commit a9e0c9c0f14e19d23443ac24c8080b4708d2eab8:
> 
>   Merge tag 'pull-9p-20250505' of https://github.com/cschoenebeck/qemu into staging (2025-05-05 11:26:59 -0400)
> 
> are available in the Git repository at:
> 
>   https://gitlab.com/bonzini/qemu.git tags/for-upstream
> 
> for you to fetch changes up to 821ee1c31427a4e08af030469311c2d8ed96f1d1:
> 
>   docs: build-system: fix typo (2025-05-06 16:02:04 +0200)
> 
> ----------------------------------------------------------------
> * ci: enable RISC-V cross jobs
> * rust: bump minimum supported version to 1.77
> * rust: enable uninlined_format_args lint
> * initial Emscripten support
> * small fixes

Hi Paolo,
v1 is already merged. I'm not sure what the purpose of v2 is. It looks
like you dropped the wasm patches but the reason is unclear to me?

Thanks,
Stefan

> 
> ----------------------------------------------------------------
> Paolo Bonzini (15):
>       lcitool: use newer Rust for Debian and Ubuntu
>       meson, cargo: require Rust 1.77.0
>       rust: use std::ffi instead of std::os::raw
>       rust: let bilge use "let ... else"
>       rust: qemu_api_macros: make pattern matching more readable and efficient
>       rust: use MaybeUninit::zeroed() in const context
>       rust: qom: fix TODO about zeroability of classes
>       rust: enable clippy::ptr_cast_constness
>       rust: remove offset_of replacement
>       rust: replace c_str! with c"" literals
>       docs: rust: update for newer minimum supported version
>       target/i386/emulate: fix target_ulong format strings
>       rust: clippy: enable uninlined_format_args lint
>       ci: run RISC-V cross jobs by default
>       docs: build-system: fix typo
> 
>  docs/about/build-platforms.rst                     |  11 +-
>  docs/devel/build-system.rst                        |   2 +-
>  docs/devel/rust.rst                                |  38 +----
>  meson.build                                        |   6 +-
>  target/i386/emulate/x86_decode.c                   |   2 +-
>  target/i386/emulate/x86_emu.c                      |   2 +-
>  .gitlab-ci.d/container-cross.yml                   |   3 -
>  .gitlab-ci.d/crossbuilds.yml                       |   5 -
>  rust/Cargo.lock                                    |   1 -
>  rust/Cargo.toml                                    |   7 +-
>  rust/clippy.toml                                   |   3 +-
>  rust/hw/char/pl011/src/device.rs                   |   4 +-
>  rust/hw/char/pl011/src/device_class.rs             |  13 +-
>  rust/hw/char/pl011/src/lib.rs                      |   6 +-
>  rust/hw/timer/hpet/src/fw_cfg.rs                   |   6 +-
>  rust/hw/timer/hpet/src/hpet.rs                     |  28 ++--
>  rust/hw/timer/hpet/src/lib.rs                      |   4 +-
>  rust/qemu-api-macros/src/lib.rs                    | 123 ++++++---------
>  rust/qemu-api/Cargo.toml                           |   3 -
>  rust/qemu-api/build.rs                             |  11 +-
>  rust/qemu-api/meson.build                          |   5 -
>  rust/qemu-api/src/c_str.rs                         |  61 --------
>  rust/qemu-api/src/cell.rs                          |   6 +-
>  rust/qemu-api/src/chardev.rs                       |   5 +-
>  rust/qemu-api/src/irq.rs                           |   6 +-
>  rust/qemu-api/src/lib.rs                           |   7 +-
>  rust/qemu-api/src/memory.rs                        |   3 +-
>  rust/qemu-api/src/offset_of.rs                     | 168 ---------------------
>  rust/qemu-api/src/qdev.rs                          |   9 +-
>  rust/qemu-api/src/qom.rs                           |  14 +-
>  rust/qemu-api/src/timer.rs                         |   4 +-
>  rust/qemu-api/src/vmstate.rs                       |  14 +-
>  rust/qemu-api/src/zeroable.rs                      | 106 +++----------
>  rust/qemu-api/tests/tests.rs                       |  11 +-
>  rust/qemu-api/tests/vmstate_tests.rs               |  27 ++--
>  scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml   |   2 +-
>  scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml     |   2 +-
>  subprojects/bilge-impl-0.2-rs.wrap                 |   1 -
>  subprojects/packagefiles/bilge-impl-1.63.0.patch   |  45 ------
>  tests/docker/dockerfiles/debian-amd64-cross.docker |   2 +-
>  tests/docker/dockerfiles/debian-arm64-cross.docker |   2 +-
>  tests/docker/dockerfiles/debian-armhf-cross.docker |   2 +-
>  tests/docker/dockerfiles/debian-i686-cross.docker  |   2 +-
>  .../dockerfiles/debian-mips64el-cross.docker       |   2 +-
>  .../docker/dockerfiles/debian-mipsel-cross.docker  |   2 +-
>  .../docker/dockerfiles/debian-ppc64el-cross.docker |   2 +-
>  tests/docker/dockerfiles/debian-s390x-cross.docker |   2 +-
>  tests/docker/dockerfiles/debian.docker             |   2 +-
>  tests/docker/dockerfiles/ubuntu2204.docker         |   3 +-
>  tests/lcitool/mappings.yml                         |   5 +
>  tests/lcitool/refresh                              |   5 +-
>  51 files changed, 183 insertions(+), 622 deletions(-)
>  delete mode 100644 rust/qemu-api/src/c_str.rs
>  delete mode 100644 rust/qemu-api/src/offset_of.rs
>  delete mode 100644 subprojects/packagefiles/bilge-impl-1.63.0.patch
> -- 
> 2.49.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PULL v2, part1 00/15] Rust changes for 2025-05-06
  2025-05-09 14:13 ` Stefan Hajnoczi
@ 2025-05-09 14:54   ` Paolo Bonzini
  2025-05-09 16:01     ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2025-05-09 14:54 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 4946 bytes --]

Il ven 9 mag 2025, 16:13 Stefan Hajnoczi <stefanha@redhat.com> ha scritto:

> Hi Paolo,
> v1 is already merged. I'm not sure what the purpose of v2 is. It looks
> like you dropped the wasm patches but the reason is unclear to me?
>

Sorry about the confusion, I sent this before I found a reproducer for the
bug (as a kind of "bisection").

You can drop this.

Paolo


> Thanks,
> Stefan
>
> >
> > ----------------------------------------------------------------
> > Paolo Bonzini (15):
> >       lcitool: use newer Rust for Debian and Ubuntu
> >       meson, cargo: require Rust 1.77.0
> >       rust: use std::ffi instead of std::os::raw
> >       rust: let bilge use "let ... else"
> >       rust: qemu_api_macros: make pattern matching more readable and
> efficient
> >       rust: use MaybeUninit::zeroed() in const context
> >       rust: qom: fix TODO about zeroability of classes
> >       rust: enable clippy::ptr_cast_constness
> >       rust: remove offset_of replacement
> >       rust: replace c_str! with c"" literals
> >       docs: rust: update for newer minimum supported version
> >       target/i386/emulate: fix target_ulong format strings
> >       rust: clippy: enable uninlined_format_args lint
> >       ci: run RISC-V cross jobs by default
> >       docs: build-system: fix typo
> >
> >  docs/about/build-platforms.rst                     |  11 +-
> >  docs/devel/build-system.rst                        |   2 +-
> >  docs/devel/rust.rst                                |  38 +----
> >  meson.build                                        |   6 +-
> >  target/i386/emulate/x86_decode.c                   |   2 +-
> >  target/i386/emulate/x86_emu.c                      |   2 +-
> >  .gitlab-ci.d/container-cross.yml                   |   3 -
> >  .gitlab-ci.d/crossbuilds.yml                       |   5 -
> >  rust/Cargo.lock                                    |   1 -
> >  rust/Cargo.toml                                    |   7 +-
> >  rust/clippy.toml                                   |   3 +-
> >  rust/hw/char/pl011/src/device.rs                   |   4 +-
> >  rust/hw/char/pl011/src/device_class.rs             |  13 +-
> >  rust/hw/char/pl011/src/lib.rs                      |   6 +-
> >  rust/hw/timer/hpet/src/fw_cfg.rs                   |   6 +-
> >  rust/hw/timer/hpet/src/hpet.rs                     |  28 ++--
> >  rust/hw/timer/hpet/src/lib.rs                      |   4 +-
> >  rust/qemu-api-macros/src/lib.rs                    | 123
> ++++++---------
> >  rust/qemu-api/Cargo.toml                           |   3 -
> >  rust/qemu-api/build.rs                             |  11 +-
> >  rust/qemu-api/meson.build                          |   5 -
> >  rust/qemu-api/src/c_str.rs                         |  61 --------
> >  rust/qemu-api/src/cell.rs                          |   6 +-
> >  rust/qemu-api/src/chardev.rs                       |   5 +-
> >  rust/qemu-api/src/irq.rs                           |   6 +-
> >  rust/qemu-api/src/lib.rs                           |   7 +-
> >  rust/qemu-api/src/memory.rs                        |   3 +-
> >  rust/qemu-api/src/offset_of.rs                     | 168
> ---------------------
> >  rust/qemu-api/src/qdev.rs                          |   9 +-
> >  rust/qemu-api/src/qom.rs                           |  14 +-
> >  rust/qemu-api/src/timer.rs                         |   4 +-
> >  rust/qemu-api/src/vmstate.rs                       |  14 +-
> >  rust/qemu-api/src/zeroable.rs                      | 106 +++----------
> >  rust/qemu-api/tests/tests.rs                       |  11 +-
> >  rust/qemu-api/tests/vmstate_tests.rs               |  27 ++--
> >  scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml   |   2 +-
> >  scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml     |   2 +-
> >  subprojects/bilge-impl-0.2-rs.wrap                 |   1 -
> >  subprojects/packagefiles/bilge-impl-1.63.0.patch   |  45 ------
> >  tests/docker/dockerfiles/debian-amd64-cross.docker |   2 +-
> >  tests/docker/dockerfiles/debian-arm64-cross.docker |   2 +-
> >  tests/docker/dockerfiles/debian-armhf-cross.docker |   2 +-
> >  tests/docker/dockerfiles/debian-i686-cross.docker  |   2 +-
> >  .../dockerfiles/debian-mips64el-cross.docker       |   2 +-
> >  .../docker/dockerfiles/debian-mipsel-cross.docker  |   2 +-
> >  .../docker/dockerfiles/debian-ppc64el-cross.docker |   2 +-
> >  tests/docker/dockerfiles/debian-s390x-cross.docker |   2 +-
> >  tests/docker/dockerfiles/debian.docker             |   2 +-
> >  tests/docker/dockerfiles/ubuntu2204.docker         |   3 +-
> >  tests/lcitool/mappings.yml                         |   5 +
> >  tests/lcitool/refresh                              |   5 +-
> >  51 files changed, 183 insertions(+), 622 deletions(-)
> >  delete mode 100644 rust/qemu-api/src/c_str.rs
> >  delete mode 100644 rust/qemu-api/src/offset_of.rs
> >  delete mode 100644 subprojects/packagefiles/bilge-impl-1.63.0.patch
> > --
> > 2.49.0
> >
> >
>

[-- Attachment #2: Type: text/html, Size: 8654 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PULL v2, part1 00/15] Rust changes for 2025-05-06
  2025-05-09 14:54   ` Paolo Bonzini
@ 2025-05-09 16:01     ` Stefan Hajnoczi
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-05-09 16:01 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Stefan Hajnoczi, qemu-devel

On Fri, May 9, 2025 at 10:55 AM Paolo Bonzini <pbonzini@redhat.com> wrote:
> Il ven 9 mag 2025, 16:13 Stefan Hajnoczi <stefanha@redhat.com> ha scritto:
>>
>> Hi Paolo,
>> v1 is already merged. I'm not sure what the purpose of v2 is. It looks
>> like you dropped the wasm patches but the reason is unclear to me?
>
>
> Sorry about the confusion, I sent this before I found a reproducer for the bug (as a kind of "bisection").
>
> You can drop this.

Good. Thanks!

Stefan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-09 16:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 15:54 [PULL v2, part1 00/15] Rust changes for 2025-05-06 Paolo Bonzini
2025-05-09 14:13 ` Stefan Hajnoczi
2025-05-09 14:54   ` Paolo Bonzini
2025-05-09 16:01     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).