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 E7A0CC8303C for ; Mon, 7 Jul 2025 17:23:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uYpXz-0003XZ-5c; Mon, 07 Jul 2025 13:22:31 -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 1uYpWq-00011t-WC for qemu-arm@nongnu.org; Mon, 07 Jul 2025 13:21:21 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uYpWn-0005Ek-QM for qemu-arm@nongnu.org; Mon, 07 Jul 2025 13:21:20 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3a54700a46eso1778513f8f.1 for ; Mon, 07 Jul 2025 10:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751908873; x=1752513673; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3Cwq/mg6mG+kk7LlFctkSmffhOYT5MXBLjyGm0TM8y0=; b=UT9tdmB517MI2DDfz8iVRjG5Cqv2YVG0rnP7pQShEal8heuN1Hguug4kMYD6ftVCev C1vDBUP4Sc1avE0/JWFkOTwsGM13Uzq4AhFcJwtY2pCiMFy3qT3gyvpxyhdk9RWgZtf9 Jlr3DNt5InvCJ1S/XTkpr7G5VjlOYEL8M6oEbskaCl0d9v272yv1/bWRKYbGVomNtPoI 3TWNayRzvsj/Nk8tamU/fPr3i6imzTwwdaRdEpzYn4QjPeKDVzuTMYMxsmg/2Opsztcm 75YPIQT+O0yeeMVuis6YyRG8oi/8DHYsnrv4qt5qv0i8M7JOygffc7lqMBhldnKy1ht3 QQTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751908873; x=1752513673; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Cwq/mg6mG+kk7LlFctkSmffhOYT5MXBLjyGm0TM8y0=; b=sFh+bxpsivGQmTk53ojo6gPVHwEhgH2xBVE+agyO4hifwDDQe6NnY9uj020FHUcfWm ey+kZbLX35d5oXExCNnSF6UG5Yo1NsKEgm2RPjjTWL/uXo2WtNXBcs1y17s4hrxDX7SQ Hu2N7Ws3WW4r6Jblu4FzykoXbC6FFXMra2zY/BiiT/xtNSPgWExVkmHXjRMQcNy+9sGB Yh+wjvMXTH/PrFqpQerRZhib3NwWDjp3Z2lecMjV6L0jUt4XrhonnPz+bCjo9jAH0Mhr OyMjL0I3BrLcYEcK3QhFPC84A87cefhXHiKKdNPdUb53VLW6JJKLfZTSzq9UVDEm7e9r WhSw== X-Forwarded-Encrypted: i=1; AJvYcCVrDUqDnN6VfJaZO+L/CRKWCaN80zmvj+z8Eaz7RmdBiVxgFsfbfVIaMgtn6a3E5HvA31FJhv1DqQ==@nongnu.org X-Gm-Message-State: AOJu0YxyLhp1I9T90OqId3uNQ6canknkiSxOQqhdKGjG3SYgLwynfdSD SrVe4x9G8ODBUVBxNDFuFoxrr4e+08tOxo9aUlADjyPZlIxEH+8j8+Bn0xNrbrIsPp0= X-Gm-Gg: ASbGncuThNRcjuKdDdoeIQ1p3y5gxjdYupyuDIt31MpReCIhcAEWMn6S2IkRYhqZmmv xzwLC033QxJ9H5l+TX1rJRjwG2uRV0gE0I8h2jC1SdNjTxjm1zoAkSaVV5PboxkBsmrRgtUn48+ Vv+OoGt8LYBphDySMmehBWpYH5nKgw4aOdjVNbfF1ms+HBRM+YbwtH7SD6zUjv2A0DHC76APGIj dIVp67/MCJzdVa62ifZRa5AZ1PVLKiOOH0o1ZvPYu/fC/2K1976nlkZxxGiwrCHu4n+LCgNue9y JhMjDhNR055EMtWw0rLDtZRHh3hArGE3h5P+JZ8agtrlTm6mLbYUPE12lSUJEc0A4Ht6Spm2odd u5cGidC5B/LVkf6HNKOQMxnQ6Btwy1innqq87 X-Google-Smtp-Source: AGHT+IHXaaojgFflZHFVgx/9YZwYL4Ew/vAuJGo1fV1TzYAtliJIJA45khGxb2ny/B0r5JZXVjiorg== X-Received: by 2002:a05:6000:98e:b0:3a4:e387:c0bb with SMTP id ffacd0b85a97d-3b49aabdc06mr7102985f8f.59.1751908873206; Mon, 07 Jul 2025 10:21:13 -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-3b47030cdf5sm10626615f8f.1.2025.07.07.10.21.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Jul 2025 10:21:12 -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?= , Eduardo Habkost , Marcel Apfelbaum , Yanan Wang , Zhao Liu Subject: [PATCH-for-10.1 v6 12/14] hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine Date: Mon, 7 Jul 2025 19:20:06 +0200 Message-ID: <20250707172009.3884-13-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250707172009.3884-1-philmd@linaro.org> References: <20250707172009.3884-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.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 When we'll start to use target_machine_typename() to filter machines for the ARM/Aarch64 binaries, the 'none' machine would be filtered out. Register the proper interfaces to keep it available. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier --- hw/core/null-machine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c index 3e03771d570..bd3ca6c7719 100644 --- a/hw/core/null-machine.c +++ b/hw/core/null-machine.c @@ -16,6 +16,7 @@ #include "hw/boards.h" #include "system/address-spaces.h" #include "hw/core/cpu.h" +#include "hw/arm/machines-qom.h" static void machine_none_init(MachineState *mch) { @@ -62,6 +63,11 @@ static const TypeInfo null_machine_types[] = { .name = MACHINE_TYPE_NAME("none"), .parent = TYPE_MACHINE, .class_init = null_machine_class_init, + .interfaces = (const InterfaceInfo[]) { + { TYPE_TARGET_AARCH64_MACHINE }, + { TYPE_TARGET_ARM_MACHINE }, + { }, + }, }, }; -- 2.49.0