From patchwork Thu Nov 23 14:38:05 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: 746480 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp914412wru; Thu, 23 Nov 2023 06:41:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFP+C0bH1l0U2gQqVrxnBMNqZzyHboPDdv7LVi+P8svhBRFE0C22zh7h8LtEos7MRcPFxTR X-Received: by 2002:a05:620a:178c:b0:774:fb6:124f with SMTP id ay12-20020a05620a178c00b007740fb6124fmr7104762qkb.29.1700750475677; Thu, 23 Nov 2023 06:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700750475; cv=none; d=google.com; s=arc-20160816; b=Ntjwq4vOPvsIb9ytzVjVSjDAgcdqlmTavKvEWgPjLJc8/yUuqFL+SrThY9ndYbeXhs 3CDcEPi/TMm/xKU8ox9R6oyWUZoAfwCoJ+0IVJsX1cr0XBXBp5yHJLnxZkazwVnf495E oopGXkR6AN6xHIshEwj4t2qXYTEoztyQwwbuAq72gR4+AnTCaOkXNw/jT9t3m8snCmjT vD1dRP1pvvUTNORf33rM+fNJwyLrmR2/ESv82HjfcfxMeiBCuw1iLf/dxG9H0ISHgZbc MlLLAJHF5U6ktr3XkpMRezoywF80P1qQTpxtdeu/cWruL4dgD4qpwFjeLxWPGUrs2A8z RkgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Vpz6WqSYEj1xbsU7bl0EFtxY0Jdo72CGKjloYLxmr9U=; fh=xd8Hqo+FyqINTpmMuSlnP3D7Rh8IYP9KQ4AY72o61pU=; b=fAgg7CA7vF8vmXvX9UsnNhvpKRLZH0MnaafG9wNvGDpAj7sKPRaLsEhD265BySRbBF nSfyRm2GLuzYpKCuWZv+BI93DWhf71JVQL6Dou1KGOXMO1fAueNFc0AOVUtrF7y2UVwS T0uJ21cYLWfwcYcDl9nPIOobVskIoyk9BWVxDB7foV4F4V11AK/ijD1t1UjNYeo5/Nvz H3vIWFaT7vrW57ef7yDDYE67lSX4CHL7fsN1uXIw8RlCm2MhLwy5sjnBu5tZpvLQ9EQ+ /LXcNKCX/gaDAVHf/G8vpr0drAWjBK2n2N7am7zBrcRnejjOOSpYriMdNAsMbDTZtQqI ARWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aBUIrDKL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 9-20020a05620a040900b00767d2097bd7si1188424qkp.322.2023.11.23.06.41.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Nov 2023 06:41:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aBUIrDKL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6Aqy-00020Z-Lt; Thu, 23 Nov 2023 09:38:52 -0500 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 1r6Aqi-0001oO-8t for qemu-devel@nongnu.org; Thu, 23 Nov 2023 09:38:41 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6Aqa-0002QM-P6 for qemu-devel@nongnu.org; Thu, 23 Nov 2023 09:38:31 -0500 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507be298d2aso1193933e87.1 for ; Thu, 23 Nov 2023 06:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700750306; x=1701355106; 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=Vpz6WqSYEj1xbsU7bl0EFtxY0Jdo72CGKjloYLxmr9U=; b=aBUIrDKLC3IQK0EYP/p1YT1iG3z/EEKUTBBt8iiZOH8ERfkIFUf3MdNf5EziD5GwOz gEH61vlNqPSg2Ksvp8OOQPRbeByn7YGPbcBkt2Zr6xmhpLd8vaP04fNtPw6IVShh4fmR bnOhm2Ls4SEDdszKOGnELGzAIc/cQc2BNkUbiLXX+4gIg1ROa1ppErWsh2PtKGhIZcQb ngQc9RluMGVOSbSBXkUyUM+ONNOV3m8ENdAwUVEr5MZs8GoPOQTTM697QQdX82KtcbYR 8HfVyXtmFhei84Pl5/a93N24v7JRKn7t5p5AhSLvYiU+7BX/0VVHkWvnIKM4Y0nykFcQ IwCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700750306; x=1701355106; 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=Vpz6WqSYEj1xbsU7bl0EFtxY0Jdo72CGKjloYLxmr9U=; b=AOqd56C0lyk7AxXoTnvwGP7g6FiAeG8Eea4S8QAOOmBbEZU8EIbaADaMuIx1yXsp9L 0ny7VV1iuLu0JAvcsKh3atquMrB3Lq85VszDcAaP4x5iB3svq9/0N7/SWarVFRXNkk1c 7faTE+kxgjCIb+hHykFKoroSnaZiivqEmgSOfymWem20G22Fp9HOvbAE0cHzKF0GFatc 19LzKFy0FpU2zYeQxe7cJAcm/VAi1VZ4DJvHBGlsSm/jPk34n6tSug4pbs6PhkTKZy/b ny0m2N8sS6tJdI71ldwnN+MKFiHsOklKisvHJcDmcjBwYamb4mhKq1GqzUs5Ph+9Y+Rz qAYQ== X-Gm-Message-State: AOJu0YymVXZEA3R2bGReeRq/5UwCcc9p/GjFtLlXgKb4j3Plz1i59nAp g/IPsnkJ/njN37gKDH1q/XBiYQ== X-Received: by 2002:ac2:4348:0:b0:509:4c7b:c734 with SMTP id o8-20020ac24348000000b005094c7bc734mr3655236lfl.20.1700750306459; Thu, 23 Nov 2023 06:38:26 -0800 (PST) Received: from m1x-phil.lan ([176.176.165.237]) by smtp.gmail.com with ESMTPSA id a7-20020a056000100700b00332d32efff5sm1791257wrx.74.2023.11.23.06.38.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Nov 2023 06:38:25 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Markus Armbruster , qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Alistair Francis , Joel Stanley , Artyom Tarasenko , Mark Cave-Ayland , Ani Sinha , Eduardo Habkost , David Gibson , "Michael S. Tsirkin" , Peter Maydell , Andrew Jeffery , Daniel Henrique Barboza , Yoshinori Sato , "Edgar E. Iglesias" , Niek Linnenbank , Andrey Smirnov , Tyrone Ting , Jean-Christophe Dubois , Strahinja Jankovic , Harsh Prateek Bora , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Aurelien Jarno , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Igor Mammedov , qemu-ppc@nongnu.org, Hao Wu , Marcel Apfelbaum , Beniamino Galvani , Richard Henderson , Nicholas Piggin Subject: [PATCH-for-9.0 v2 1/8] hw/ppc/spapr_cpu_core: Access QDev properties with proper API Date: Thu, 23 Nov 2023 15:38:05 +0100 Message-ID: <20231123143813.42632-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231123143813.42632-1-philmd@linaro.org> References: <20231123143813.42632-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=philmd@linaro.org; helo=mail-lf1-x133.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org CPUState::start_powered_off field is part of the internal implementation of a QDev CPU. It is exposed as the QDev "start-powered-off" property. External components should use the qdev properties API to access it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Harsh Prateek Bora --- hw/ppc/spapr_cpu_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 91fae56573..24f759ba26 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -306,7 +306,7 @@ static PowerPCCPU *spapr_create_vcpu(SpaprCpuCore *sc, int i, Error **errp) * All CPUs start halted. CPU0 is unhalted from the machine level reset code * and the rest are explicitly started up by the guest using an RTAS call. */ - cs->start_powered_off = true; + qdev_prop_set_bit(DEVICE(obj), "start-powered-off", true); cs->cpu_index = cc->core_id + i; if (!spapr_set_vcpu_id(cpu, cs->cpu_index, errp)) { return NULL;