From patchwork Tue Apr 16 13:52:46 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: 789228 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:dcf:b0:346:15ad:a2a with SMTP id dw15csp298093wrb; Tue, 16 Apr 2024 06:58:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXsSMcgPun3McxF6YPzZSHTUOJRytBJLX1RLPnYk80Ax7aLaXPZxnIj9KW2LQvht268HZJGA+5irzhH+a9plC0a X-Google-Smtp-Source: AGHT+IHQ01kMWGdBczxk6lG/59p5GMxbwQxaz35dbrG8F3r57V9VYQ3jshWsV4hx0Srm1CSWhfiq X-Received: by 2002:a05:6122:7d1:b0:4d3:3446:6bc9 with SMTP id l17-20020a05612207d100b004d334466bc9mr10153837vkr.14.1713275896354; Tue, 16 Apr 2024 06:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713275896; cv=none; d=google.com; s=arc-20160816; b=e5TEiI02Ml5nZHZirdXH+5qEF1RxHzZ3Lt+IJ0uH7hyma174TXtLXm2giSjkHX2HI1 Bg4eu0o0y4Zi2NPUcnJnNxKYudSTLz3hoMKpVJ2fXPM2q9cDL2NJ3oNTQW198+jj+hJt i058qT2B5yzZoVoviFd97isbsSsc/dTEss42z70BceLMLa9QwuE3OJEGQ1zEEFw2H2X8 LBwW3Qi5Hi6MIamOR0I5KjooFcobPeJUtRpZdk5Md7I46CdB0B2QJaZeob+YPlMJevr9 Pg6CPE9KSP5xXmyDiujIFKb9vakeDNgTbCJW3qe7rGjP+Iix4QSDEDvRVbRH90LLDzpF zp8A== 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=zBppzEDS51MDAVFf+oWkcwnoJzt4m+loPuqdwyia2Jo=; fh=5haXPD3vE5WE9Of7Uj58emgiLhO4R0UBe5bivslROgs=; b=b5rvbdlz4CMPjzRHGvxzIOWE/8cIugmq6ARhety019971pMiCoWSzhdkx8gFDJ+DRu vUl41ycWlTykGlhBMjfIwjlVqU3DkyPsPnU1mDKJX9PqF3SOOEdNs3tOlGEbzXTbvCgW E1Yopbi7YfgpJlZ6kvnihUFhgF5qkUEMFR83dpwdGQojemsGXNEFxTXUhEht7/aqrpek YAhHisLOwL9Dd71nonm9DwFFz2L5tm18shEpuY9XTqDS5JDmwybichiS/W+nKWEKr5Rv jDez07q99uJXp9Zocz+QcX0yxR6N1cKNELwUnTLEQL/Cp+4MWIPOCjED2FldyIfgsjmf b+wQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jVJAIQRe; 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 j13-20020a0cc34d000000b0069078004e85si12598825qvi.246.2024.04.16.06.58.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2024 06:58:16 -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=jVJAIQRe; 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 1rwjHa-0006JW-Ib; Tue, 16 Apr 2024 09:55:36 -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 1rwjGs-0005JP-3B for qemu-devel@nongnu.org; Tue, 16 Apr 2024 09:54:54 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwjGo-0001y3-Ux for qemu-devel@nongnu.org; Tue, 16 Apr 2024 09:54:49 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-516d4d80d00so5428574e87.0 for ; Tue, 16 Apr 2024 06:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713275684; x=1713880484; 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=zBppzEDS51MDAVFf+oWkcwnoJzt4m+loPuqdwyia2Jo=; b=jVJAIQRet1DAlNCVnKx+S2cu7Ogq7IoSqRO/N+uwUBQzRchLAwXunXSJNFyC25yuq2 KkiuiBToxogmvyYvLac3G3yQnFJlpBf1Sxc5vfzIDAbjmpK5Lnzra/H3SZQAGO2ot/2T hTAZ6Zekzd7jq3lyDaGzai+hED9SpALZykyaVfU7jetACkPGYrGGFikscaZb0QtCj8w3 Z4qOPTBoCprJZ8FiKCjkECnG1bAJntqi80dAvb30gHI1Urz00asHq1sfHU3tuC9HzQDZ kRbbWMWpYzLudJfNBr4PR7q46yp5iFBOLPjk5N+E5vh7KRRmvkqG4re/c2krvkl6aNh5 wnSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713275684; x=1713880484; 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=zBppzEDS51MDAVFf+oWkcwnoJzt4m+loPuqdwyia2Jo=; b=iEL0mCdSmCiDBvv8d0CSlitUl5PmAju9tV5p0NlxfOktmMyke0U7Lxwsk4dwA3WhWS Yab711N5kASHJbeyLpTaF4oUIoDhwUj34CrGjxtpawjsREt/leZp58mgsdDPNUH2ThA8 WII5KiQY49PMcFaEmkIXDfKenFOOQ6Hab5bxXs1U9rpqJFMYXWaFK5UP0o8O7ze6JV6G dX+hcw7pINox9Y86MaeiMFMgj1135UpCkdtYAqFOoi6s/Uybr9+UFupmTXH4e54k9+SQ kztxOR/Q9B4lR+hTXuAXghB1VOKlcpwDMBADYmWpi88QwxF+hHjViItdp3hZisn5Wl2B 1LtQ== X-Gm-Message-State: AOJu0Yy6DM6bbyt3Mr4LZrTocRa+dbOZm94qHcJ0FQ22yu5+j8Q20dH+ vSjHefwppTFFKatuA7XdYeuoVT1777uGk4CgPCpmf7ZjVeMI2kvOCcZSQxYpSOc3YzIeI6pWXHZ f X-Received: by 2002:ac2:5e88:0:b0:515:c964:723f with SMTP id b8-20020ac25e88000000b00515c964723fmr8230098lfq.20.1713275684153; Tue, 16 Apr 2024 06:54:44 -0700 (PDT) Received: from m1x-phil.lan ([176.176.155.61]) by smtp.gmail.com with ESMTPSA id hz19-20020a1709072cf300b00a554a1c75cdsm302037ejc.172.2024.04.16.06.54.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Apr 2024 06:54:43 -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 , Richard Henderson , Eduardo Habkost Subject: [PATCH v3 17/22] hw/i386/pc: Remove PCMachineClass::resizable_acpi_blob Date: Tue, 16 Apr 2024 15:52:46 +0200 Message-ID: <20240416135252.8384-18-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::12e; envelope-from=philmd@linaro.org; helo=mail-lf1-x12e.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 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 --- 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 df97df6ca7..10a8ffa0de 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -124,9 +124,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 18bef7c85e..c4a7885a3b 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1755,7 +1755,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;