From patchwork Mon Oct 30 14:39:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1857152 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ECN+3hdz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SJwvy4tltz1yQW for ; Tue, 31 Oct 2023 01:42:06 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxTRO-0001Qx-Ki; Mon, 30 Oct 2023 10:40:30 -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 1qxTRM-0001QC-Cn for qemu-ppc@nongnu.org; Mon, 30 Oct 2023 10:40:28 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxTRJ-0001rh-2q for qemu-ppc@nongnu.org; Mon, 30 Oct 2023 10:40:28 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-32da9ef390fso2882398f8f.2 for ; Mon, 30 Oct 2023 07:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698676822; x=1699281622; 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=WuUDSxKsXjW5GqbYcOSHq6FGSIjG2WuDJO98unbaNSY=; b=ECN+3hdzxG0XZXghgcaW6l+ubgl6vF4/juo3MD1UEoMrlrSoqe1arnPilvG6CCabV9 JCR92tIEr5TWXjlH9aYioNF1CuhP+DYOhAZRrAkxN2JXd7rxFtSP1UJObqYXeSO3TjI0 s8/Etkl+CvsWIw7R6gIF3fE3ex6q+FxB/xy/pU0H1H9m7iYNS0kbp8CyfTv9kKG13JqX K5RCMprtDe60XZ3S1Go1I4dHZEUkC4BX9hlEEL/o30q4UU1So/qZhN3ekOirHlLCJZiy Pg0R6BBNRpdzCUiu5f1q/HxIRZLf50NszuN09botlR4ZFB4w2nS5RllIMGWqjBBl9VUd 6x5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698676822; x=1699281622; 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=WuUDSxKsXjW5GqbYcOSHq6FGSIjG2WuDJO98unbaNSY=; b=v/OVBtKq5+HOGTWrW22GDtqkt8ca+989ITC9MjFpGprYfcauDyu1tcEynQgL4Yv4Ls 8CVUVTPj2sI9HElMyZZ9NnUJJ885jEQ9FNft5G+il6DwaacRrl1BmVSPXi7AgtrW1dNu Z2r5xyXhFtmEwCmk0TWqc5uC1YWW8srhBP/hV/raZyjUW+wPi1D4zukcHG8cYTXODurZ sNkb1l7dPzeDRYyZM/6tlLRsyGR8ZQVdlxBWTHuIOwRlp9YKVWphh7PUNRa7Bw9BUBQF mswJAWcvA5xx9CFRQGZdNJxQpxYvqUL8WuGB24mnAPHHVVnUPT8WuoYYqC13UcHneoLW U/wA== X-Gm-Message-State: AOJu0YwoS/zYpigCAk7XvNFQgzdMdX/X7L4k6GuEKMyJcUe30bLviDRc LbkhbNWoaMp+ToQt9P0ytHPs+Q== X-Google-Smtp-Source: AGHT+IH8uNdiGnD6SclQ4UDCtGupHzAS3OCWKZ9YgQ6aDLexQHapei0d+FkCiYahJ1M/KNQybJMltg== X-Received: by 2002:adf:f948:0:b0:32d:a243:a30e with SMTP id q8-20020adff948000000b0032da243a30emr6832983wrr.1.1698676822383; Mon, 30 Oct 2023 07:40:22 -0700 (PDT) Received: from m1x-phil.lan ([176.170.212.50]) by smtp.gmail.com with ESMTPSA id j8-20020a5d4528000000b0032f7c563ffasm5790158wra.36.2023.10.30.07.40.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Oct 2023 07:40:22 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Peter Maydell , Markus Armbruster Cc: Luc Michel , Daniel Henrique Barboza , Alistair Francis , Paolo Bonzini , Eduardo Habkost , Mark Cave-Ayland , Bernhard Beschow , qemu-ppc@nongnu.org, "Edgar E . Iglesias" , "Daniel P . Berrange" , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/5] hw/ppc/e500: QOM-attach CPUs to the machine container Date: Mon, 30 Oct 2023 15:39:54 +0100 Message-ID: <20231030143957.82988-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231030143957.82988-1-philmd@linaro.org> References: <20231030143957.82988-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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-ppc@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-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Instead of having CPUs dangling in the /unattached/device bucket, attach them to the machine container. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza --- hw/ppc/e500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index e04114fb3c..f8177c0280 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -946,6 +946,7 @@ void ppce500_init(MachineState *machine) exit(1); } + object_property_add_child(OBJECT(machine), "cpu[*]", OBJECT(cs)); /* * Secondary CPU starts in halted state for now. Needs to change * when implementing non-kernel boot.