Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E224C71130 for ; Mon, 7 Jul 2025 17:21:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uYpX7-0001NC-LN; Mon, 07 Jul 2025 13:21:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uYpVr-0000Nz-TM for qemu-arm@nongnu.org; Mon, 07 Jul 2025 13:20:21 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uYpVo-0004xN-2A for qemu-arm@nongnu.org; Mon, 07 Jul 2025 13:20:19 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-453749aef9eso11814835e9.3 for ; Mon, 07 Jul 2025 10:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751908812; x=1752513612; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VwlvYMLKGx15+uSdEjsebhQs/sGbFO9TGa0DA+Ywmbs=; b=slskS9gbDezEGGyxN738Fe/nkwSs07DsVX6vV5fYM5Ha2FgbrrCkcj5a9Fkesoe1Au mOmEwtcZtIcDeYtALlXquN09jQsY1AUtpvcD86Aw2elJsJwOl/GdF//pEzvIKqbAHFKI kw/KdVMswAtzP6WEiPNLKR4CdKXM2SpjO6EhP2VDQOkHavvR3bfXmiFi5UvfiwvnUF2Y 1CtzaUn2h1DBdEH9mRBGurbWH9UGGsuKIxN6O5Ygco5DFtDJdeS9igzjGMf3kJsac8rO SezMr0zTqM169KyzpB/WfUuthwFyNkf7XaldPCZGhKk4Z6svpTA3JuLCQFxNE1fH4C1H tTAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751908812; x=1752513612; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VwlvYMLKGx15+uSdEjsebhQs/sGbFO9TGa0DA+Ywmbs=; b=Of1wyaMj6TNMwlRECvq/dlZiVmcNe4TWyDw5AI1JKqqyipFVjBrJ8KjdMefQP0lHr/ jsdiuiJyuiB0L2HlEPkdLIvDb8QYkF5CMiUNZV1e5PJkuStHDQYcBIJ0dHgvNuS2ZZHD +zxkYhcDoP2gReVKmROkVokO1YPKDbuntDXOJnZPbqSNT4sVk4c11x7ta2oQGJipWvQK 7A2qiG7DZZTVNxil219Xh27P0LeXyCi9poUKa1jevjBxTTy7ePd4gDLLbaV9WkoZH4Qq XRDLHKudOzlKKuf953cHtwsyXhsC3fB7cVPjZ/dWLhTzS6f8L1h7+05DDJC4MYSrJdfA G6Fg== X-Forwarded-Encrypted: i=1; AJvYcCUBVcn2K55O/8ngRzBNWjRXiQJvEIbgUmSwE+Rx9Moz6D3xUsxOeh1hckO7Vp+dBiXPuBw8gh0sKA==@nongnu.org X-Gm-Message-State: AOJu0YyXVQvvLhd5g3UNqafBa2EVk6xSA44HfVdy4J6xAbXoL7bvo7rU lm96Ehbx4I/R0FBejF7ZEQrcYd0xUEeN36KdrarVclHI6tiDvtMhnAypH3tGyWKVM0A= X-Gm-Gg: ASbGncspZzk0r7iDwKUvzzdTlC/mJ/TWYupfGycmYjK1WAWHKThvQmMCG3z331zO61B 55+uRWrwBCnIKp3Nx5gr8eAQxweNO5CKoBKMvsE0fD1wa4Rc3FvUdckvQyqEIEcBdtjMAybksbP wM66m3wDB8VstXSc7KeS7AmJH6KBxe6Apeu8x3Sjlz6Pc8x4PEXw0pKxTPwTX67T7xFHTuP9h3a 8cW6c1sl75JK+dUgzvl90Oo4+DciAoS+E+abi6oqo/Cbj0J19/45/AF9ehBUiCmjtwYujDtnBaw 1mlHXzG39COCctj9z4JUegtsbLxTbPNoxBOJUPaJgbpNKzeu+ihJyOXeJ7QsNdNqz6Q88zffiMU HfpAMjqmW7Mdxv3NqK43kVyEPt1UYmyGKAg0K X-Google-Smtp-Source: AGHT+IFXJaWZblJsvgvZ9YocoQ5qQUoqaCOLEEeQ4pK3oPMgd5g7JTcoK86RS82udO6VSR0rHXnl5A== X-Received: by 2002:a05:6000:25e3:b0:3a8:38b3:1aa1 with SMTP id ffacd0b85a97d-3b49aa7746bmr6842620f8f.27.1751908811677; Mon, 07 Jul 2025 10:20:11 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b472767a20sm10623419f8f.86.2025.07.07.10.20.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Jul 2025 10:20:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , qemu-block@nongnu.org, Richard Henderson , qemu-ppc@nongnu.org, Paolo Bonzini , qemu-riscv@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH-for-10.1 v6 00/14] target-info: Add more API for VirtIO cleanups & introduce ARM macros Date: Mon, 7 Jul 2025 19:19:54 +0200 Message-ID: <20250707172009.3884-1-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Rather than re-spinning the whole "single-binary: Make hw/arm/ common" series, restrict to the API additions, but include examples of their usefulness (hundreds of virtio objects removed from default Linux build). Time passed since I context-switched out of this work so I'm not sure the DEFINE_MACHINE_WITH_INTERFACES() implementation is in the form Zoltan asked. Philippe Mathieu-Daudé (14): target/qmp: Use target_cpu_type() qemu/target-info: Factor target_arch() out qemu/target-info: Add %target_arch field to TargetInfo qemu/target-info: Introduce target_base_arch() qemu/target-info: Add target_endian_mode() qemu: Convert target_words_bigendian() to TargetInfo API gdbstub/helpers: Replace TARGET_BIG_ENDIAN -> target_big_endian() qemu: Declare all load/store helpert in 'qemu/bswap.h' hw/virtio: Build various files once hw/core/null-machine: Define machine as generic QOM type hw/arm: Register TYPE_TARGET_ARM/AARCH64_MACHINE QOM interfaces hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine hw/boards: Introduce DEFINE_MACHINE_WITH_INTERFACES() macro hw/arm: Add DEFINE_MACHINE_[ARM_]AARCH64() macros meson.build | 1 + include/exec/tswap.h | 83 +-------------------------- include/gdbstub/helpers.h | 15 ++--- include/hw/arm/machines-qom.h | 31 ++++++++++ include/hw/boards.h | 6 +- include/qemu/bswap.h | 73 +++++++++++++++++++++++ include/qemu/target-info-impl.h | 8 ++- include/qemu/target-info-qapi.h | 36 ++++++++++++ include/qemu/target-info.h | 10 +++- include/system/memory.h | 1 - include/user/abitypes.h | 1 - target/ppc/mmu-hash64.h | 2 - cpu-target.c | 7 --- hw/acpi/bios-linker-loader.c | 2 - hw/arm/allwinner-r40.c | 1 - hw/arm/boot.c | 2 + hw/arm/npcm7xx.c | 2 +- hw/block/hd-geometry.c | 1 - hw/char/riscv_htif.c | 1 - hw/core/cpu-system.c | 2 +- hw/core/machine-qmp-cmds.c | 8 +-- hw/core/null-machine.c | 20 ++++++- hw/cxl/cxl-events.c | 2 - hw/display/artist.c | 1 + hw/display/ati.c | 1 + hw/display/vga.c | 2 +- hw/net/can/ctucan_core.c | 1 - hw/net/lan9118.c | 1 + hw/net/rtl8139.c | 1 + hw/net/vmxnet3.c | 1 - hw/pci-host/gt64120.c | 1 + hw/pci-host/pnv_phb3.c | 1 + hw/pci-host/pnv_phb4.c | 1 + hw/pci-host/ppce500.c | 1 - hw/pci-host/sh_pci.c | 1 - hw/s390x/s390-pci-inst.c | 1 + hw/sensor/lsm303dlhc_mag.c | 1 - hw/smbios/smbios.c | 1 + hw/vfio/migration-multifd.c | 1 - hw/virtio/virtio-config-io.c | 1 - hw/virtio/virtio-pci.c | 1 + hw/virtio/virtio.c | 2 +- hw/vmapple/virtio-blk.c | 1 - system/memory.c | 1 + system/qtest.c | 1 + target-info-qom.c | 24 ++++++++ target-info-stub.c | 3 + target-info.c | 33 +++++++++++ target/arm/arm-qmp-cmds.c | 3 +- target/arm/cpu.c | 1 - target/arm/machine.c | 12 ++++ target/i386/tcg/system/excp_helper.c | 1 - target/i386/xsave_helper.c | 1 - target/loongarch/loongarch-qmp-cmds.c | 3 +- target/mips/system/mips-qmp-cmds.c | 3 +- target/riscv/vector_helper.c | 1 - tests/tcg/plugins/mem.c | 1 + hw/block/meson.build | 6 +- hw/virtio/meson.build | 20 ++++--- 59 files changed, 302 insertions(+), 149 deletions(-) create mode 100644 include/hw/arm/machines-qom.h create mode 100644 include/qemu/target-info-qapi.h create mode 100644 target-info-qom.c -- 2.49.0