From patchwork Wed May 29 05:15:33 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: 799814 Delivered-To: patch@linaro.org Received: by 2002:adf:e110:0:b0:35b:5a80:51b4 with SMTP id t16csp567004wrz; Tue, 28 May 2024 22:17:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUAVi2mNB22FbzNtDx0XeqHZy3QWft2OXlE8rp+fKIfIXSltjO+VrtzKa7iAgrBjZEY7yOizxalgYuOszabTx9U X-Google-Smtp-Source: AGHT+IGUaiybLwX1tP91DEloWr58vuKR4DeR2NdhY/OwYopAdLAqcY1gVkCLZGFOneQ2BRAO5L1E X-Received: by 2002:a05:6214:3bc2:b0:6a0:dd05:f3b2 with SMTP id 6a1803df08f44-6abbbca39c3mr166433206d6.35.1716959857634; Tue, 28 May 2024 22:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716959857; cv=none; d=google.com; s=arc-20160816; b=HNadaGIVhxkYl/YhILXC0jVL6mkS/5dLafRVAZGLLccehikhszGH8H7/punPwNrtMJ h547gJe/S94+oJnvFTw5UbnBnUQ+Xbv9as8C9C9U8HoHhc5qS5MQhatZywSDk9BKhsio pIddD/Ek4cjDZ7M3GgULjJKR0BSq3tPA5rY3RDn+K7z7XSx3ynMHXt5TH+hogkWMtN7O nutedZaaGpFalrNm2aVNAYa1Ah+72Ea6ed3oRvxQ+TwmG9t1QzL1k8or0bYVgXrsFGkc cEr+nWmUG50psLWxW7uzftXDgrEgR8DzXG/+Xgy/Lhg6MONqnweL2Vd14ctu6f20om3M 4KZg== 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=+89nIq6Az7cr57eP5247OlrNJ6UHgv8xML8ZTJQpOfU=; fh=oSujGHGU6kAtfrTPSJ+sLUg/jC0/xSWRKBD061WPWBw=; b=YNMQ2UxZrHCeVC/u+voRYdKArr+2uwbFBPqt1ZUo9R2VF6Rrz4Igwcq1aQhQKDHZnF gwG3eLyn9SqC10XibKCWzlQuuy31FP8JESpVO4I1Vy+AgSE1AWrCYLPdkgIZvKG+Mgof fIhPOvSRQMWgzVkz9Hh8ZN0jBgxtURlVcrgZbkOpnEAanmVK7uatfT9RZI1/DWnBU9Z1 GQOJZhKlrj5aOqOpRQ2mgA+80EEUbIEiGxNPIZG5K4BhjA7AKFypozaY+8xkHlh9Fd3m NtL7JuGkvJsk/CE7Hu4yimkrUBWO7I2XrqxIYgRpU1X1SFdaxm6d6wqXCyHhrVtYxSdJ 8b0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dpcZhiyT; 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 6a1803df08f44-6ac06f5051asi129155616d6.31.2024.05.28.22.17.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2024 22:17:37 -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=dpcZhiyT; 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 1sCBgr-00031y-NX; Wed, 29 May 2024 01:17:33 -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 1sCBgb-00026L-IE for qemu-devel@nongnu.org; Wed, 29 May 2024 01:17:18 -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 1sCBga-0005UD-0s for qemu-devel@nongnu.org; Wed, 29 May 2024 01:17:17 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-357ec504fcdso1172015f8f.3 for ; Tue, 28 May 2024 22:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716959833; x=1717564633; 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=+89nIq6Az7cr57eP5247OlrNJ6UHgv8xML8ZTJQpOfU=; b=dpcZhiyTb6IvIoM2yCOpZeaqmp3/rBTQOXSeJ+ZcwtptxvEBVBiUNH47/LOwPO1xIj QXMbWi5K4OQVVYqV50URBwONdTAkzeXgm21Yw5Rs+67j7t9b+BkLOFvGCLlhgcVvsS4Z KVa+nfg7ydzq1VT7idco6mFwQs/4fH+BtmW1UcxEcZ/iGM2sEqeQG0Q6kNZOQG1NzUsU x9YXd6fr8brF6stv0YzDJOk5ByaCfM7rDaVb4RFrrWGLv2oYR6jw4w8L9gjoFKv46o22 9LkgguagHjaw/MhALF9kmcz4YW0SbIX5qhCwlEZjNNGw3AxjexzruY7jiDtfyE2Ufuni MOrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716959833; x=1717564633; 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=+89nIq6Az7cr57eP5247OlrNJ6UHgv8xML8ZTJQpOfU=; b=ijJU4h1lw7le5EhCv09l+uwjkuu097fqfTuiLf3H36MkrhsJ8LGtK0n7Nv+NwpwB1W ppRuT2pxYxkn8pq2fB2dtCcO/3xmpGgzSfGSEN3HIiWTC+TNFU84AhdQ5PVPPdKHf9fU Hx5NorVtro3p/o0LhdDmOcxDiFMFzFTQ0CeVzLxiyMeKtzK3Y45ciPAY3BvgWZyQBOa2 s0olKpfzofg9FyzD3AWhqDDK1MhNsQiiciJj0y4A29vr3rgPPdvqszVRplPEHK1FVsMA zLBHbtj+iI9xuZA0vCJ6OBr+EeXGQJR0Jk6U/EWLQddaGfjXFiyWAdZMoI4PO1Z5lQEA /g4w== X-Gm-Message-State: AOJu0YxBSpHQz3XG0mcw7/+0X/p2vbIFEZR2jMzrBratrYKnT3thUfH6 6VOLlgQXHNOfHaxRuKtV9NSF0e2oHK/+OaN9yS3E336Z96P6uEJPb27WF7YWRuKPd1a5E+o/ihV K X-Received: by 2002:a5d:6649:0:b0:354:e04d:13e0 with SMTP id ffacd0b85a97d-3552fdf23cfmr10446226f8f.46.1716959833412; Tue, 28 May 2024 22:17:13 -0700 (PDT) Received: from m1x-phil.lan ([176.187.204.141]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42122299300sm17739485e9.42.2024.05.28.22.17.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 May 2024 22:17: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 17/23] hw/i386/pc: Remove PCMachineClass::resizable_acpi_blob Date: Wed, 29 May 2024 07:15:33 +0200 Message-ID: <20240529051539.71210-18-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::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, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org PCMachineClass::resizable_acpi_blob was only used by the pc-i440fx-2.2 machine, which got removed. It is now always true. Remove it, simplifying acpi_build(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Reviewed-by: Igor Mammedov --- include/hw/i386/pc.h | 3 --- hw/i386/acpi-build.c | 10 ---------- hw/i386/pc.c | 1 - 3 files changed, 14 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 996495985e..808de4eca7 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -125,9 +125,6 @@ struct PCMachineClass { /* create kvmclock device even when KVM PV features are not exposed */ bool kvmclock_create_always; - /* resizable acpi blob compat */ - bool resizable_acpi_blob; - /* * whether the machine type implements broken 32-bit address space bound * check for memory. diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index a6f8203460..ab2d4d8dcb 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -2688,16 +2688,6 @@ void acpi_build(AcpiBuildTables *tables, MachineState *machine) * keep the table size stable for all (max_cpus, max_memory_slots) * combinations. */ - /* Make sure we have a buffer in case we need to resize the tables. */ - if ((tables_blob->len > ACPI_BUILD_TABLE_SIZE / 2) && - !pcmc->resizable_acpi_blob) { - /* As of QEMU 2.1, this fires with 160 VCPUs and 255 memory slots. */ - warn_report("ACPI table size %u exceeds %d bytes," - " migration may not work", - tables_blob->len, ACPI_BUILD_TABLE_SIZE / 2); - error_printf("Try removing CPUs, NUMA nodes, memory slots" - " or PCI bridges.\n"); - } acpi_align_size(tables_blob, ACPI_BUILD_TABLE_SIZE); acpi_align_size(tables->linker->cmd_blob, ACPI_BUILD_ALIGN_SIZE); diff --git a/hw/i386/pc.c b/hw/i386/pc.c index ccfcb92605..fae21f75aa 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1768,7 +1768,6 @@ static void pc_machine_class_init(ObjectClass *oc, void *data) pcmc->acpi_data_size = 0x20000 + 0x8000; pcmc->pvh_enabled = true; pcmc->kvmclock_create_always = true; - pcmc->resizable_acpi_blob = true; x86mc->apic_xrupt_override = true; assert(!mc->get_hotplug_handler); mc->get_hotplug_handler = pc_get_hotplug_handler;