From patchwork Tue Apr 16 13:52:35 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: 789224 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:dcf:b0:346:15ad:a2a with SMTP id dw15csp297971wrb; Tue, 16 Apr 2024 06:57:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUINOoxatA4i/WHJ7bh+SgXf3PrEPOdKNHkpP6eNg2nidSYOR3xXcl7/fLMloR41O/jrHunkyd3qqu1JZ2Un61W X-Google-Smtp-Source: AGHT+IH9m+/mQQ2FXd9UvHGGAjEphGlaIUMmru4YQT5Hi5+EByfixIh74U7Ky6BfyHzUppcdaf5e X-Received: by 2002:a05:6808:1506:b0:3c7:7a2:1b4b with SMTP id u6-20020a056808150600b003c707a21b4bmr10294722oiw.48.1713275876780; Tue, 16 Apr 2024 06:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713275876; cv=none; d=google.com; s=arc-20160816; b=kgkq17o7oRJWYu9qhDg9c/TwGu+wJ/xmSkqT61ej3iIOf7jG6/92rgmuEtFVB7kwj6 v1umvYtMLf9zj1EA9H75vhmXLlC0izQcI0s+pIKWHn9uO+dsIxEOoSBs1vByP1WAW3Sx FeCSFdXumkXLlqM3TKGgPHi8PvYDUSUpvAGQdgbCPyQeEGuHyIUOFaqsmGArFSEGR9xV H7K9SIU+PV1mYGszYWH5ynVc2FzCourYs3IxCn6qM+0wYaWhf2zFu2R0/6YXS4rGCCWf zaN8xzVH+YbE/HwPCEQdNUYAM/XF+v6QJlOBk9Z2eLvuWoF/Sx5oeErddClYbtSqZeSf EZ6Q== 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=cesSegXMr71Lpaal5FJBOqynS/3X0jmvbPzoIKbt5l0=; fh=4bGWK6aHmDUNMYAUChRjF6jGSZ31jg0glhkDhdFHxaE=; b=VteDg8DM1oRgAJyU2reGZBe+kkYdiOQIVB2JO162KvC8WAzOWScZoYKt8/rkNtj/HG DJB9AxnGeiCOyFxqSVxhJHVO9lugkgcRV4slBoRe0cM0q9dCnrp9Zx5f/8gRCNMpmgpG rprIJ3DSZe3qDKYnaXi625jkKUI+UHVBZfwE05pZc/Mxrjtd+6FzF1RDrjJAgH1q13rb xttDfb+KS+s1g0Hqr9gBQwQjobyZW9lu5jKAadwZrCe43v/XziZ2cq/oZyCxAHLGTeKj PrqxtlbyKGLmCqcqGEqiAMq/9x3x070b4jGweg65ZIYQOxbpMAOno5JLlY3091MgsO1e SuVA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fyH4cx1q; 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 ay20-20020a05622a229400b00436aeb27ceasi9073097qtb.142.2024.04.16.06.57.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2024 06:57:56 -0700 (PDT) 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=fyH4cx1q; 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 1rwjG4-0002K3-24; Tue, 16 Apr 2024 09:54:00 -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 1rwjFt-00026E-1V for qemu-devel@nongnu.org; Tue, 16 Apr 2024 09:53:49 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwjFh-0001mi-0R for qemu-devel@nongnu.org; Tue, 16 Apr 2024 09:53:48 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-516cdb21b34so5680486e87.1 for ; Tue, 16 Apr 2024 06:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713275615; x=1713880415; 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=fyH4cx1qdVNzxXdMjTmuryJvQ722mbCX0fnEBSq6CcFcOH6LNSzQAgXg4BwUtPlqBo 38dXIFcfwCwonmz56a/YQnYqH4j63Q8HBgGCIslBEMTcpA5Qs3ZZn9FMNcmtjrQuxhhS 7J6UBVt6dF+CRMMrDNLArRxSaAZRczH4rTiP5rF/H9p62qgnLw6DZ+L8ADsUfKxjAm2T seYx4VZ2jF9eFLePr1a9CNkr2NqdGfv9SogMqTnFuAPdjP4T8AsHxHE7we54+/dibS1D W6Bk++QHmXJ73eCxDaCIP8s1snCEejLzkqdGkVCSh/4bqOWDfdiAyvohEt8MFZmvac8p lywQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713275615; x=1713880415; 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=P0hb8FQ/hiHoU7F/jjrmoYlikqvLAsNLXzB6d5xeZx+wpTE3Z5JbH2hcypCKo7DLHp Qgho2QRiY03eX8e0yQukys7wauxZQ3eeQQZyb0xoNAOt0as9U84kej4Rd5am1zQMLiCS BDfKxwdlFeUkJgw9iXsjSZDUjW/djlwbFfBQB6GWIGgBYgZ1JlTnp1co6UyqSYztW19J LZXHNrjWDqbyzxk3FEhCFdSV4RZdlSunywu7/F0dkkypCR+XrkOcS4EOv0lhyW3A2sQF rb28bh1MSrksPocxz3tqZPb3PgfYeTQjBMFys6hLVydUPS1GqrCt0Y/7CGJl8SDGEVGW orMg== X-Gm-Message-State: AOJu0YwCYCWXdjsEC79LQqbJgiWv2w9Ktt2LASMVlI0HOIMGk9qWKvUB 1mt2+Qa0yJ1lETK95xxpdxDEIl1iBxhpkDbawqKyXhCFTfmIje9DSf7x+e/zX/yvQ6dw4g0Z8j/ i X-Received: by 2002:a05:6512:39c5:b0:518:de06:31b6 with SMTP id k5-20020a05651239c500b00518de0631b6mr5266704lfu.3.1713275614821; Tue, 16 Apr 2024 06:53:34 -0700 (PDT) Received: from m1x-phil.lan ([176.176.155.61]) by smtp.gmail.com with ESMTPSA id fe1-20020a056402390100b005701df2ea98sm3337890edb.32.2024.04.16.06.53.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Apr 2024 06:53:34 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Thomas Huth Cc: Ani Sinha , qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Zhao Liu , David Hildenbrand , Paolo Bonzini , Igor Mammedov , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Marcel Apfelbaum Subject: [PATCH v3 06/22] hw/acpi/ich9: Remove 'memory-hotplug-support' property Date: Tue, 16 Apr 2024 15:52:35 +0200 Message-ID: <20240416135252.8384-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240416135252.8384-1-philmd@linaro.org> References: <20240416135252.8384-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=philmd@linaro.org; helo=mail-lf1-x12d.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-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 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 --- 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);