From patchwork Tue Jun 18 15:59:32 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: 805211 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:144:b0:362:4979:7f74 with SMTP id r4csp270261wrx; Tue, 18 Jun 2024 09:02:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVPvj7zEeZs9WcXhSse2ibrjxOADo1X0EsXPxQzG8fDEWJ3Za8DJcNPmM3Tu+1mZN6EcAbvibti2GnJvOEr/i4W X-Google-Smtp-Source: AGHT+IGqtHppt+/iNwLwR1URfR4mPk+SKdN2jUsk1YhYshrL8lKSBX8k6Qklo9FGQZT7h1QvIHi6 X-Received: by 2002:a05:6214:12c8:b0:6b0:6b57:4c56 with SMTP id 6a1803df08f44-6b501e26799mr1276666d6.19.1718726531053; Tue, 18 Jun 2024 09:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718726531; cv=none; d=google.com; s=arc-20160816; b=lk6J8yBgBrEgoUgz6YmlFMgeyOkzXGNZM8ou/hSmYlOsf65/B7LmVyUskBsB14S2MO rYvtDc+zcV8baWjZhMlDLE5KjLX7x0Oi4X7Wdtu0QYbk3I+vlQv0RtZ2O5K+xQmxUOWS n2eztsuX4y3Cm2QPI2DfGh+qK80NsDWrZs5qMqcBy070Ao5CE7j/wgFiPWnnZQ5No1xY fbQ3CDOry6allRsbMtgA93fIWFg0Sw8xoyN/XHHwj7q1T+wZhzBsy9AjHyOsG0ixUbs7 SGAebkYXOx+m6tasGMBrmxf8K/8NckBVmIjfa1QANZCnIjcbG0SKHLJj5OKlgxaYQYna G9rA== 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=gpuxhErWC4Hjg+11YRmyemEnWJkaBfj9X0XpeCPS0AU=; fh=QeIS5kb1Uh2g1z6dWJxoYMIPD1Pl4adL6YUWYeE5yJk=; b=aokc7SQu4s1GWQ23kAydo6E+nXwkfATMUH1eM+gxIEw/qV9wrylFkGa+lmXfD5whhM mHBRS36Z0LfrwatXn4Y/qV5M3lIFRTXoNf7OHEKcCAzBIXPy5wpEU8t04gscvkBaM5m6 ubZBxYupSCqxngjolUYCaaSzEzKSA78c8TEeUaZPUPXr2/Ozrdt95N/BvuBmxkUTe7iM QsYVAej8Yy+/KkMt3JbvVQ+PjGai8eIxtiDsr1NWKD8fkwCCbszimVWGml1UJoukZiGB V1QzJgt6rwuMd7hRmvhjfDh4CBEIbpMi2dX/m0zlYOqC7AezIoH8qTcPBW2gHQP9htEo lHHA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YgK/2EdC"; 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-6b2a5afd45bsi128003076d6.268.2024.06.18.09.02.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Jun 2024 09:02:11 -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="YgK/2EdC"; 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 1sJbHP-0004EJ-7Z; Tue, 18 Jun 2024 12:01:57 -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 1sJbHG-0003xq-8d for qemu-devel@nongnu.org; Tue, 18 Jun 2024 12:01:46 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJbHD-0006t1-3v for qemu-devel@nongnu.org; Tue, 18 Jun 2024 12:01:44 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-57d0699fd02so83916a12.0 for ; Tue, 18 Jun 2024 09:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718726501; x=1719331301; 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=gpuxhErWC4Hjg+11YRmyemEnWJkaBfj9X0XpeCPS0AU=; b=YgK/2EdCl9J/u/RAlm87/stZb2ZoE3/SkwnN55D9fezFvnfA5qvxv5lOOx3ZnyMFQc LMlqmkEhJGHMTD8Cv6Qn+4n0zGLjQWpjlDVMq3Hp4h8eRxkd760tHA/3Ep/iBeM/+KnD efmjPRhGeptVadvB6xdSzVb+3jJZnAuVZVcRhownVMaFcaegCrB+YtHt1lrcia83oJIv 7pQr6YONZSpStIQdKX5f6LLmwHWoWS+XhimKZD6c4uveK8NC6AHBWyTHL5SULRkzyNrg WLwPKfXN2x1M/hhxcW+nZkEj5pVklbh1A6QbI5pKKctPXaJwWB9suSUCPGl4L+OXGcVR g7eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718726501; x=1719331301; 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=gpuxhErWC4Hjg+11YRmyemEnWJkaBfj9X0XpeCPS0AU=; b=gEqmsipTqvbbOujQnYbEPn9j0zlOejlu+NwyxGqFV0H4msWc0RurYmw0UUO0LzViIp ZgnxBi8qTJE/EWrRcFIaR9pa3AO6Fn7nmCVeBtNBQKkV94b0/RjzSz7QLaWeSpLaqD7u oqZHe+d6/3TFWiraAnh8koKrWDhaOK6zKC6GdL1fi/g7io4SSnE4/BIaCMph3mq6CKmw DbABaWcLgrfmRv2pPDH/HntO1QLqwqwUBjLKF8I3e+/agf2x4+aJ9pMI2DmOMoeAwIsf By87psMbZarSx6b/H+t/TBNJalCasZwnEBBqMcoMDnY8edOZKNDn0kq1/QrhvhfM32P+ k49Q== X-Gm-Message-State: AOJu0YwJLtXwGj+HeG0e0hJCBjRoHcpKT/Zvf3J56XTdT6ckc8ZVu8JX ScmnFr2R6O9mooL4YoI1dP2L0j8PPBllAfCu1p7Ew7niYGMWuX1NpoApqYE59pFsfNwdHnncSW1 S X-Received: by 2002:a50:d602:0:b0:56e:3293:3777 with SMTP id 4fb4d7f45d1cf-57cbd684886mr10972146a12.17.1718726501177; Tue, 18 Jun 2024 09:01:41 -0700 (PDT) Received: from m1x-phil.lan ([176.187.212.55]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56ed3679sm627324366b.122.2024.06.18.09.01.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 18 Jun 2024 09:01:40 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Zhao Liu , Igor Mammedov Subject: [PULL 10/76] hw/i386/pc: Remove PCMachineClass::smbios_uuid_encoded Date: Tue, 18 Jun 2024 17:59:32 +0200 Message-ID: <20240618160039.36108-11-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240618160039.36108-1-philmd@linaro.org> References: <20240618160039.36108-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=philmd@linaro.org; helo=mail-ed1-x530.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::smbios_uuid_encoded was only used by the pc-i440fx-2.1 machine, which got removed. It is now always true, remove it. Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Reviewed-by: Igor Mammedov Message-Id: <20240617071118.60464-11-philmd@linaro.org> --- include/hw/i386/pc.h | 1 - hw/i386/fw_cfg.c | 3 +-- hw/i386/pc.c | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 0d730318fe..5667b87ed0 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -109,7 +109,6 @@ struct PCMachineClass { /* SMBIOS compat: */ bool smbios_defaults; bool smbios_legacy_mode; - bool smbios_uuid_encoded; SmbiosEntryPointType default_smbios_ep_type; /* RAM / address space compat: */ diff --git a/hw/i386/fw_cfg.c b/hw/i386/fw_cfg.c index 6e0d9945d0..f9e8af3bf5 100644 --- a/hw/i386/fw_cfg.c +++ b/hw/i386/fw_cfg.c @@ -63,8 +63,7 @@ void fw_cfg_build_smbios(PCMachineState *pcms, FWCfgState *fw_cfg, if (pcmc->smbios_defaults) { /* These values are guest ABI, do not change */ - smbios_set_defaults("QEMU", mc->desc, mc->name, - pcmc->smbios_uuid_encoded); + smbios_set_defaults("QEMU", mc->desc, mc->name, true); } /* tell smbios about cpuid version and features */ diff --git a/hw/i386/pc.c b/hw/i386/pc.c index b0b8ecd64d..215462e861 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1796,7 +1796,6 @@ static void pc_machine_class_init(ObjectClass *oc, void *data) pcmc->has_acpi_build = true; pcmc->rsdp_in_ram = true; pcmc->smbios_defaults = true; - pcmc->smbios_uuid_encoded = true; pcmc->gigabyte_align = true; pcmc->has_reserved_memory = true; pcmc->enforce_aligned_dimm = true;