From nobody Tue Nov 26 11:46:32 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1708783298; cv=none; d=zohomail.com; s=zohoarc; b=UjaugNxdMgnlq8MS6OOPG7aIhH+LBqgr+GKANd57UU40TLFTAJ08f7Korqsaoh4fJEQ4Pds/HFllvkSqhyOBC4sytQvqX+biYtm4ZtEmuoesuAVhgBK3GGnpR31x7R7lnSCzK9Xx0wR2t7mbhmuMEdJwCH5wS23MJdwN5L0/C6k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708783298; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lg93a47qvzmza3RMrC5PuS5WPquGN42j8mbqdeYWlPQ=; b=XwoQT2QINtQW473InSZ/D972ohyYIn2TqPgJhpbw38vRR4K5JCJb+/0unBEA4h/uNbktJ5Mf7c+PMii0zs+MCBWkvE42riJX8kcMlElFxEJLmvbaQRVwSqVnsXKIWO1nboX0ouYPWjEHdX0q5kwRup64ZjKdTNV4FAUCmEeP0fo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1708783298189803.4677406702674; Sat, 24 Feb 2024 06:01:38 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdsYd-0004Al-2e; Sat, 24 Feb 2024 08:59:16 -0500 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 1rdsYb-00049m-9Y for qemu-devel@nongnu.org; Sat, 24 Feb 2024 08:59:13 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdsYX-0002kz-Jp for qemu-devel@nongnu.org; Sat, 24 Feb 2024 08:59:11 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4129f33d2e8so1467745e9.1 for ; Sat, 24 Feb 2024 05:59:09 -0800 (PST) Received: from archlinux.. (dynamic-089-012-138-060.89.12.pool.telefonica.de. [89.12.138.60]) by smtp.gmail.com with ESMTPSA id n8-20020a056000170800b0033d817eddd3sm2285542wrc.13.2024.02.24.05.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708783147; x=1709387947; 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=lg93a47qvzmza3RMrC5PuS5WPquGN42j8mbqdeYWlPQ=; b=iTza3Tc4bHSX50uvRqJKzmjgS2+0WSemkzTVyJfaxHvTFYSMeugDTvW4zc0HvvWDeM +qGxs1cY6c3dn5Z3qgTBkFNgJE+FZuoeW+uC5lcAvFxb8IFbfiKEAh2OeITqxr6lc7rk wpAP9vCqmNBfNamXEJfQqjrZZVuCYThj0NseX9CN3oeCafs2cWN42k2T07Qykatu2Bfm WI+67sGByjC2TbxRwaKh0PVRxe0bYdSfKij2JhlY3/NsUDRUAqQ55X9T415XSC2NU+1y M3dz+6cRXzVPThaa9++Tub+0cfWanKVUY1Y+4g8D2BPMahOXtXm2pz1XHdTDzoR9i+Lu pIPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708783147; x=1709387947; 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=lg93a47qvzmza3RMrC5PuS5WPquGN42j8mbqdeYWlPQ=; b=gn/oxG3NmSH853zNYLXwgt/j++759y20Z+9M7lXprHRs4JXggDRRxNcwFCzqB9ts4a lI8cYoeHqhsm33cjpT0l923i3Av3ImIi99LxdzHBZFyBUAgQUTiaQ/C7wkuz3AYNZyN/ 8VWTHQOI7naMGfGCGvYJLtRCaXPWBKglzlhK3ftsVZ165jQ2VIMSoyBjKzF5a08zVIyL ndkVi89DzrLxCMUxFfvCtieEYcQQxu2ojJ/ur4P0J0GaLcsWr7QNYwYe6x+L600oXi/G JJsYR/yDMj4SG0klKCHO5EJZtELdrfErw5vlhFbd8n0Ec+1k3w5kKz1vAjKgUNe92JuE SqfQ== X-Gm-Message-State: AOJu0YyzXMNFF96HcycoQ4Q4IS9Sgsi/+coyjUmS+OgP18yQjgvR1Gxi qnc0E43P0qupxWMZ8LDag565AuR0iz2hphXhjxTLLU6D88jT7u9e6P0U60NH X-Google-Smtp-Source: AGHT+IFq8qTmtZ6r89tRRd2U2f68ZvjcHUrgYrSs1y7kHdJCDE6c2TILEOR76eaSaEwt1f71dlj6Qw== X-Received: by 2002:a5d:51d0:0:b0:33d:a1c4:9c63 with SMTP id n16-20020a5d51d0000000b0033da1c49c63mr1788939wrv.49.1708783147714; Sat, 24 Feb 2024 05:59:07 -0800 (PST) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Ani Sinha , "Michael S. Tsirkin" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eduardo Habkost , Marcel Apfelbaum , Richard Henderson , Paolo Bonzini , Paul Durrant , Igor Mammedov , Jason Wang , David Woodhouse , Sergio Lopez , Bernhard Beschow , Thomas Huth Subject: [PATCH v2 4/6] hw/i386/pc: Remove unneeded class attribute "kvmclock_enabled" Date: Sat, 24 Feb 2024 14:58:49 +0100 Message-ID: <20240224135851.100361-5-shentey@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240224135851.100361-1-shentey@gmail.com> References: <20240224135851.100361-1-shentey@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=shentey@gmail.com; helo=mail-wm1-x331.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, FREEMAIL_FROM=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1708783298837100001 Content-Type: text/plain; charset="utf-8" PCMachineClass introduces the attribute into the class hierarchy and sets i= t to true. There is no sub class overriding the attribute. Commit 30d2a17b46e9 "hw/i386: Remove the deprecated machines 0.12 up to 0.15" removed the last overrides of this attribute. The attribute is now unneeded and can be remov= ed. Fixes: 30d2a17b46e9 "hw/i386: Remove the deprecated machines 0.12 up to 0.1= 5" Cc: Thomas Huth Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Reviewed-by: Zhao Liu --- include/hw/i386/pc.h | 1 - hw/i386/pc.c | 1 - hw/i386/pc_piix.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 27834043c3..4bb1899602 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -92,7 +92,6 @@ struct PCMachineClass { =20 /* Device configuration: */ bool pci_enabled; - bool kvmclock_enabled; const char *default_south_bridge; =20 /* Compat options: */ diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 353edeb2ea..a80f809b83 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1799,7 +1799,6 @@ static void pc_machine_class_init(ObjectClass *oc, vo= id *data) pcmc->smbios_uuid_encoded =3D true; pcmc->gigabyte_align =3D true; pcmc->has_reserved_memory =3D true; - pcmc->kvmclock_enabled =3D true; pcmc->enforce_aligned_dimm =3D true; pcmc->enforce_amd_1tb_hole =3D true; /* BIOS ACPI tables: 128K. Other BIOS datastructures: less than 4K rep= orted diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 814d24326d..49d5d48db9 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -184,7 +184,7 @@ static void pc_init1(MachineState *machine, pc_machine_init_sgx_epc(pcms); x86_cpus_init(x86ms, pcmc->default_cpu_version); =20 - if (kvm_enabled() && pcmc->kvmclock_enabled) { + if (kvm_enabled()) { kvmclock_create(pcmc->kvmclock_create_always); } =20 --=20 2.44.0