From patchwork Wed May 29 05:15:22 2024 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: 13677844 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 BD99EC25B7E for ; Wed, 29 May 2024 05:20:19 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCBfh-0000PC-L3; Wed, 29 May 2024 01:16:21 -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 1sCBff-0000Mf-SO for qemu-devel@nongnu.org; Wed, 29 May 2024 01:16:20 -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 1sCBfc-0005QN-2a for qemu-devel@nongnu.org; Wed, 29 May 2024 01:16:18 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3550134ef25so1563463f8f.1 for ; Tue, 28 May 2024 22:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716959774; x=1717564574; 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=cesSegXMr71Lpaal5FJBOqynS/3X0jmvbPzoIKbt5l0=; b=UPt/TtKwH2d17dGaNuovZ1en98JGe101fNTnhF97vQotNDGzuzYWxRHf68yXuIbe9A xBfCMffvKqfiVGXqgi3vK6KlHTsjYEvvUcUiEF+CvULXZAYBAMD24hHm+v3Cd7PZJ2PX q1rWkuhAWw9Kypgy/EApMa54v2tVuI++EB6/xVX4irh3c/D0v6xkTHWCk+UqnZA8qvXf 9dW+NqPpovPufCG44ExL8BoArUeZV4/e77XY+5YVFE7Le2k+wVLcCEwPEaVItIScY1Rz weQ5mSH5Hk8ZcJVWMC4D3zaAXfhIzrhihNMuCrbLGMDHn0yzzQwVop5e5cd4P3Vc6fiX WvnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716959774; x=1717564574; 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=cesSegXMr71Lpaal5FJBOqynS/3X0jmvbPzoIKbt5l0=; b=V4FinHRlJmNrb25pnd4SPchIgRuucVU7JafIfgyTnWGEy5AV8wSqGvxk1d565cGDYp RShU8MlB7yDKVkgoW4uXwWGITiyX+sBv7h0D65SZLeeeRc+9ghtl6Lgzmk896oeuzHu2 IuNWm6SNkDipoYetEY1RPkUqY48jJd3jr0cr48di1B8SMpcchvvY4LuhFuSBHvcQmfKq +1PeoKLT0W3hS5J2XMqRDv9Mawc/oqh57OQlMykY1eDalqBhOdIXKeLW7CWjoio0NnQw lOsq/xf4lEcb93c6IAvH4z8YlQkrMLoGbWksUfSwRpoxAGu7cy4xH/wmgoWKa08iglw4 qCaw== X-Gm-Message-State: AOJu0YzE58pF17LxZV2d9Lt8ZMJvZfnaoDBJX7N/tRf88dEoS8iq1P3A 2Eez+S/MeLTLuYjpW16vhDbPpqCFJYr19qCb5i5u52t5pJlnF+7J1oECMzDOEQT52sghw6gM7Z4 F X-Google-Smtp-Source: AGHT+IGK+28gnuObNaNbNfecInF9gOkl4hb/3LUU2nGwb1n+Nh3Mf8jmPVvZf/H1p1hNa4p7IVhm2g== X-Received: by 2002:a5d:518a:0:b0:354:f4e6:f9cd with SMTP id ffacd0b85a97d-35526c34337mr11168666f8f.17.1716959774282; Tue, 28 May 2024 22:16:14 -0700 (PDT) Received: from m1x-phil.lan ([176.187.204.141]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557a1c960esm13679187f8f.80.2024.05.28.22.16.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 May 2024 22:16:13 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Paolo Bonzini , "Michael S. Tsirkin" , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Zhao Liu Subject: [PATCH v5 06/23] hw/acpi/ich9: Remove 'memory-hotplug-support' property Date: Wed, 29 May 2024 07:15:22 +0200 Message-ID: <20240529051539.71210-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240529051539.71210-1-philmd@linaro.org> References: <20240529051539.71210-1-philmd@linaro.org> MIME-Version: 1.0 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org No external code sets the 'memory-hotplug-support' property, remove it. Suggested-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Reviewed-by: Igor Mammedov --- hw/acpi/ich9.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 573d032e8e..9b605af21a 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -351,21 +351,6 @@ static void ich9_pm_get_gpe0_blk(Object *obj, Visitor *v, const char *name, visit_type_uint32(v, name, &value, errp); } -static bool ich9_pm_get_memory_hotplug_support(Object *obj, Error **errp) -{ - ICH9LPCState *s = ICH9_LPC_DEVICE(obj); - - return s->pm.acpi_memory_hotplug.is_enabled; -} - -static void ich9_pm_set_memory_hotplug_support(Object *obj, bool value, - Error **errp) -{ - ICH9LPCState *s = ICH9_LPC_DEVICE(obj); - - s->pm.acpi_memory_hotplug.is_enabled = value; -} - static bool ich9_pm_get_cpu_hotplug_legacy(Object *obj, Error **errp) { ICH9LPCState *s = ICH9_LPC_DEVICE(obj); @@ -445,9 +430,6 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs *pm) NULL, NULL, pm); object_property_add_uint32_ptr(obj, ACPI_PM_PROP_GPE0_BLK_LEN, &gpe0_len, OBJ_PROP_FLAG_READ); - object_property_add_bool(obj, "memory-hotplug-support", - ich9_pm_get_memory_hotplug_support, - ich9_pm_set_memory_hotplug_support); object_property_add_bool(obj, "cpu-hotplug-legacy", ich9_pm_get_cpu_hotplug_legacy, ich9_pm_set_cpu_hotplug_legacy);