From patchwork Tue Apr 16 18:59:16 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: 789243 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:dcf:b0:346:15ad:a2a with SMTP id dw15csp438144wrb; Tue, 16 Apr 2024 12:01:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXbBdspIUjSo4jLURTFPDimEqJoUa6lbJThuKoJOdJEh1I5eL5vXxIH3KgmVbJcL11MFZsaF+fOyzEibjZzeZZc X-Google-Smtp-Source: AGHT+IG3BpI4MQovbcsbEfDi4EyEUgkaItgg3rcfFkWoSU0wheO2V57LtJEALKMfXyqj6nDv8l5W X-Received: by 2002:a05:6359:5f09:b0:186:f45:391a with SMTP id lf9-20020a0563595f0900b001860f45391amr15553164rwc.28.1713294091253; Tue, 16 Apr 2024 12:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713294091; cv=none; d=google.com; s=arc-20160816; b=Qbyf48v/OKXbWXRxgMdXF2xJA3jYmSuUCLlPX9c6If0/YRwKgRWGmrxVYGNLMXpTwx NML56BzbmwEyWFsDIGwd7JyvvvdsJfJ58cE3V0O6JfUUzUT9f5MTRse+Bn7bDpe+ruTk czW/uiqLvLrcHHmmdN1ajix8HqFlWZ+xmCamIKZ8fOCvCwNXF+9WJRCTV+sr6EY76Ow/ eq34wu937gqjshvF5UNR0cW652n4f2n1KQ8EqmyReLJRJQ7StHF5xVLs7mYLFs0H3Hhj ou/4UEhQoeWx872FWX2h+3hRPdY7msynnGyF/0o5yu03If5JttvixNqxmA0TfpI/iLUy Hv7A== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=aKI7O+b3Bo+xsao49zshX9B958w9RaU2PXoPe3/rS/I=; fh=Ybr9yExZwf3Q+NY0T78QH7CAcbE3b8sqw8Sk0J4z7gk=; b=jN9EtaYMcYX/kWS5UFIDXDHyNPPHrgOs6FJca/8S53blVZs+tB2AQUdRKA9KCBE7Ho Dxw5fKsFdbKqQCySoto/8JxIQ/o640FJufCUrCNxOdKCycS4aueoEIXBIPTuXzwzEhBA GtL2MVHMg9nDYrUxZEBArmQnNz66leDTV5AaJ/eTwJWa+CG1T63NkndVlN/IX/aB/Ib/ UT7uarQj/8dqGC92j0qQ4Xx06+/pPLCxKaAuZlCa/EDFWp+cNCgfG0o1SD24ptUoUJu6 U878E4T8XpTKmXRmM+LvgCUyuPPI+Zt7Or5yaP8uue65F9HVNRL8f53SwnLeVGCYaHCy T9Mg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PJoywWtK; 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 cy5-20020a0561300f8500b007e3f413e59bsi2196569uab.39.2024.04.16.12.01.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2024 12:01:31 -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=PJoywWtK; 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 1rwo26-0000mJ-Dp; Tue, 16 Apr 2024 14:59:54 -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 1rwo20-0000le-ID for qemu-devel@nongnu.org; Tue, 16 Apr 2024 14:59:49 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwo1x-0005KR-8x for qemu-devel@nongnu.org; Tue, 16 Apr 2024 14:59:48 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a5544fd07easo144916566b.0 for ; Tue, 16 Apr 2024 11:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713293983; x=1713898783; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aKI7O+b3Bo+xsao49zshX9B958w9RaU2PXoPe3/rS/I=; b=PJoywWtKizVzh0lZVvQHtZaUbWvRTSyNA5w4ouS63ig/zxaY/IKWzR5LgOxEAd1T1P mYzw+NVjVz6eTg9Uw4DMYzpWBuAM/bQb8BZLxt6533GPGvwQ9DyI3LbaqwDCfxKJPkBY cSt1zlGKFOxXPVEtvzjhIaOlhY/SCgJqBt5bARCxZG7A4qtxriiwrCAx1VsD0rwkfOjb lD9TqmLn+b6PdLRz6JHSmqVg51KwsfvmysFxaZMT5p8ehel8I4Pm/AlMFLna6w7CH47Z Q/Ms+tkttOTKaLlNBENUu/a3ZoNlzk/F8Y/15GwAdwXhpa+olNF1fyOD5ly0bzs9+zx6 Kgrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713293983; x=1713898783; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aKI7O+b3Bo+xsao49zshX9B958w9RaU2PXoPe3/rS/I=; b=MWLliC0fD0dGdVr3DCh7fO1BBkgncHVi4iBkDxUyGHnIZaDQOSbt3HdCl9n/OxU/6g uHtD1TlMXUTJThpOLjx6GyRQciR2cpwP2oi6M6nq7QY5/0HFwvGcK0+6iAVq9jq8emOg lBRrbwf6wZ+COMs5Jal2F3h9YP5MuRtiFL52VF2vEVFQKhsLi962Yoa7PLxoDEbi9RcE fcdheNhMTgM7gdVRk6ypkLqBUHK6grboUylcNoxe0XC7Or8ldfB92OWEFETXvbYbaCnO PEPRxU8eVnbhkOIbmZ4CXiWcfGoQvPQ0ve6xt5H49CS1pH/cyl3v91OaJ4YjEYBVrIAe VKsw== X-Gm-Message-State: AOJu0YzinJ2RnK8Pr2ok4P9Ihj6SNdY5IhcBaSnT4JVmHZhlmCyigjBC syTbFkc5xBqfGSQEX6gZ9sfKms9pZVYN1q5FWgWsB3rVQ+/GP4ucvAK5Ge04OqxWf8DOthLLSbT G X-Received: by 2002:a17:906:794e:b0:a4e:904:3c7f with SMTP id l14-20020a170906794e00b00a4e09043c7fmr11383890ejo.50.1713293983216; Tue, 16 Apr 2024 11:59:43 -0700 (PDT) Received: from m1x-phil.lan ([176.176.155.61]) by smtp.gmail.com with ESMTPSA id jw9-20020a170906e94900b00a52241b823esm6940165ejb.109.2024.04.16.11.59.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Apr 2024 11:59:42 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Thomas Huth Cc: "Michael S. Tsirkin" , qemu-riscv@nongnu.org, David Hildenbrand , Igor Mammedov , kvm@vger.kernel.org, qemu-ppc@nongnu.org, qemu-arm@nongnu.org, Paolo Bonzini , Philippe =?unknown-8bit?q?Mathieu-Daud?= =?unknown-8bit?q?=C3=A9?= Subject: [PATCH v4 00/22] hw/i386: Remove deprecated pc-i440fx-2.0 -> 2.3 machines Date: Tue, 16 Apr 2024 20:59:16 +0200 Message-ID: <20240416185939.37984-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=philmd@linaro.org; helo=mail-ej1-x630.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 Series fully reviewed. Since v3: - Deprecate up to 2.12 (Thomas) Since v2: - Addressed Zhao review comments Since v1: - Addressed Zhao and Thomas review comments Kill legacy code, because we need to evolve. I ended there via dynamic machine -> ICH9 -> legacy ACPI... This should also help Igor cleanups: http://lore.kernel.org/qemu-devel/20240326171632.3cc7533d@imammedo.users.ipa.redhat.com/ Philippe Mathieu-Daudé (22): hw/i386/pc: Deprecate 2.4 to 2.12 pc-i440fx machines hw/i386/pc: Remove deprecated pc-i440fx-2.0 machine hw/usb/hcd-xhci: Remove XHCI_FLAG_FORCE_PCIE_ENDCAP flag hw/usb/hcd-xhci: Remove XHCI_FLAG_SS_FIRST flag hw/i386/acpi: Remove PCMachineClass::legacy_acpi_table_size hw/acpi/ich9: Remove 'memory-hotplug-support' property hw/acpi/ich9: Remove dead code related to 'acpi_memory_hotplug' hw/i386/pc: Remove deprecated pc-i440fx-2.1 machine target/i386/kvm: Remove x86_cpu_change_kvm_default() and 'kvm-cpu.h' hw/i386/pc: Remove PCMachineClass::smbios_uuid_encoded hw/smbios: Remove 'uuid_encoded' argument from smbios_set_defaults() hw/smbios: Remove 'smbios_uuid_encoded', simplify smbios_encode_uuid() hw/i386/pc: Remove PCMachineClass::enforce_aligned_dimm hw/mem/pc-dimm: Remove legacy_align argument from pc_dimm_pre_plug() hw/mem/memory-device: Remove legacy_align from memory_device_pre_plug() hw/i386/pc: Remove deprecated pc-i440fx-2.2 machine hw/i386/pc: Remove PCMachineClass::resizable_acpi_blob hw/i386/pc: Remove PCMachineClass::rsdp_in_ram hw/i386/acpi: Remove AcpiBuildState::rsdp field hw/i386/pc: Remove deprecated pc-i440fx-2.3 machine target/i386: Remove X86CPU::kvm_no_smi_migration field hw/i386/pc: Replace PCMachineClass::acpi_data_size by PC_ACPI_DATA_SIZE docs/about/deprecated.rst | 4 +- docs/about/removed-features.rst | 2 +- hw/usb/hcd-xhci.h | 4 +- include/hw/firmware/smbios.h | 3 +- include/hw/i386/pc.h | 22 ------ include/hw/mem/memory-device.h | 2 +- include/hw/mem/pc-dimm.h | 3 +- target/i386/cpu.h | 3 - target/i386/kvm/kvm-cpu.h | 41 ---------- hw/acpi/ich9.c | 46 ++--------- hw/arm/virt.c | 5 +- hw/i386/acpi-build.c | 95 ++--------------------- hw/i386/fw_cfg.c | 3 +- hw/i386/pc.c | 107 ++++---------------------- hw/i386/pc_piix.c | 102 +----------------------- hw/loongarch/virt.c | 4 +- hw/mem/memory-device.c | 12 +-- hw/mem/pc-dimm.c | 6 +- hw/ppc/spapr.c | 2 +- hw/riscv/virt.c | 2 +- hw/smbios/smbios.c | 13 +--- hw/usb/hcd-xhci-nec.c | 4 - hw/usb/hcd-xhci-pci.c | 4 +- hw/usb/hcd-xhci.c | 42 ++-------- hw/virtio/virtio-md-pci.c | 2 +- target/i386/cpu.c | 2 - target/i386/kvm/kvm-cpu.c | 3 +- target/i386/kvm/kvm.c | 7 +- tests/avocado/mem-addr-space-check.py | 9 +-- 29 files changed, 69 insertions(+), 485 deletions(-) delete mode 100644 target/i386/kvm/kvm-cpu.h