From patchwork Mon Feb 19 14:14:07 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: 774085 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1180903wrs; Mon, 19 Feb 2024 06:14:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV5AJp2b+WONQb4uiA6rf1AQw2AE4V4i1760x3BXpHpB1nukZIrkTL9RNPeLJC+5jmqU323eqh+PB9cn1bV2AK5 X-Google-Smtp-Source: AGHT+IENVBlxBPYy58aGpNVbhK30wACpS0buNy5ml3/8zh/vFIKLZRhJgi/rIk0wLfXCPKEW1jC5 X-Received: by 2002:a05:6102:50a1:b0:470:660f:33bb with SMTP id bl33-20020a05610250a100b00470660f33bbmr1111582vsb.4.1708352095086; Mon, 19 Feb 2024 06:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708352095; cv=none; d=google.com; s=arc-20160816; b=Pj/CvCzX1jpsptGJXJcRT75UCNq/lGD2OysVw1ype0bXWzRlQcrG8TVvC2/wA2np/k lI2nRJ9tequQnqHzEI5FyvlNC/Fy0v48u9uNFt/yd6D+ywD6GUAcAtlomaFVZqFDV5Mx WnSAlZTsAwu9IPzcGRJIYu5jizPN0apJpPqnOronulXzB46GjWAdTx/BWAy/ctHzaH6d 6aw3MeWyq15+Z73nSuXn2zwKlBnq4CZf3g1iwu/kT+0udkzpARrkJVjjrG5RtMtKlQ22 etE/Zktu5juqnMTH21YlnJ0U/Epge58wgtG5PVuSEMauhhhs9pH6giYoZEN6xjl75h8G d3Yg== 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=RrGDeP6FKIUU6jW18CkpL97+y4+8zvvTBqQzIVQHxhI=; fh=samD0lp4jLKeDhkTkeB861D9LItYSgbb2UVql1zSm0s=; b=teUSeE9q5QIixW7bwZ9LJRnovMHo9TrbkpvQwHHYSk0fFGqSNlp1bNv4hlof2SnLC3 Qm3l1BVzUAJTQfzZlYPrVIruQKsym86Qd8wa0UENqa4Yxb/ch8nCaVZsjQk0ZdFV7JAM tbEZEZZzF+rqMiVcQgtxVmCmldP+R/vTGHkW5qjgVawGObMdArqBs8PMt9JzVXb74aCS hpf9ZWVNVsHMqUdoeXv7BT8mYolr0lHR5eXcxLIhHXVV7GA+EoTflqGTNuAeGkIAqP6p K8dndrUEirrVBux48xB+xkWNaftOUI6vg9SDCGkHVN+Nln8KhNvGl02KxPRvtTQttYxg XJ0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZEv+ioZj; 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 k28-20020a056102117c00b0046d35974ef2si698791vsg.820.2024.02.19.06.14.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2024 06:14:55 -0800 (PST) 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=ZEv+ioZj; 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 1rc4Ph-0003Kf-58; Mon, 19 Feb 2024 09:14:33 -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 1rc4Pc-0003DG-Rb for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:29 -0500 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc4PX-0008PB-Og for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:28 -0500 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-561587ce966so8841347a12.1 for ; Mon, 19 Feb 2024 06:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708352061; x=1708956861; 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=RrGDeP6FKIUU6jW18CkpL97+y4+8zvvTBqQzIVQHxhI=; b=ZEv+ioZjkdfLAJWgCBHaI1a91L2/vdjP6Fl9WapRXiVVBQylbEFq8CYQC1o9Y1TmGo vUGzcXHcqRccomlfZoUhC83FfFgmvInwFeSHs/ighjWR+LepgTCYIJezcol79nYzeQbr w/zCKqmhJvJgdDX3URIYGHJjFRhK+qvEugCTltvVGq5jXThOWRL1Ve8kOhiJ5WECkUhP YEd2sf782ruD6TqFkMua1Y9F/lUF1aaFutqlu5lTDgDGjdf2nwBsx5BUXSV4VEo1pAiz hbcA2ESejZOu7SmQHBEfgaHW5j31jabmWpE4dQdOGFnQ+lwBZnCav/vfHWU0mIcQ46K8 UgWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708352061; x=1708956861; 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=RrGDeP6FKIUU6jW18CkpL97+y4+8zvvTBqQzIVQHxhI=; b=NmNiZNfM3yh5CjQ5FRjm4ryuRRSJmRGw0xPYH4jzvUSRJzaqi/0nNUlLQtam5EC3UX k1u/dFN2WF+t30/NS02NeJmVOcYcZmyQ7unpwkD03gLJVJkcWcAoHNmvOXV6nN1T7kMF 26mxLCiT8v6idWVnRcX7rjOUzbRGUNdtH3FLjZLnguIjgACqOvLpqO0ynMxqraudzHfs w8FkWZAvORuRD0ts/IewNgvpPNPs8lyXpTP6Tqthn1m0sgXPZsOx+BYdfK/lB8x9FayG hPdL+/OnOFq5RY1uu6bi6YP8Qmbuj9m0VmiS4VNMgnEBTcAyWCN3nyf62lB1L32G69fQ iksg== X-Gm-Message-State: AOJu0Yxgpag5o/7AIWclv6UI0uqlvXNOSyPhOTy24OGTydoLntXHVnpN ieB+RD63w7EwlDxQJWZ3iyZePvSWPaCULQtxl/4wJEKdCxDzPqsxuBLtTWcvb56/eeLJDxZj/xf N X-Received: by 2002:a05:6402:500f:b0:561:fc2:bec0 with SMTP id p15-20020a056402500f00b005610fc2bec0mr15748624eda.4.1708352061418; Mon, 19 Feb 2024 06:14:21 -0800 (PST) Received: from m1x-phil.lan ([176.176.181.220]) by smtp.gmail.com with ESMTPSA id fg11-20020a056402548b00b00564168e6674sm2569687edb.51.2024.02.19.06.14.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Feb 2024 06:14:21 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Marcel Apfelbaum , Igor Mammedov , "Michael S. Tsirkin" , Ani Sinha , Bernhard Beschow , Eduardo Habkost , qemu-trivial@nongnu.org, =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/5] hw/acpi: Include missing 'qapi/qapi-types-acpi.h' generated header Date: Mon, 19 Feb 2024 15:14:07 +0100 Message-ID: <20240219141412.71418-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240219141412.71418-1-philmd@linaro.org> References: <20240219141412.71418-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=philmd@linaro.org; helo=mail-ed1-x536.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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 ACPIOSTInfo is a QAPI generated structure: $ git grep -w ACPIOSTInfo qapi/acpi.json:81:# @ACPIOSTInfo: qapi/acpi.json:99:{ 'struct': 'ACPIOSTInfo', qapi/acpi.json:109:# Return a list of ACPIOSTInfo for devices that support status Include the "qapi/qapi-types-acpi.h" header to avoid the following errors when including "hw/acpi/cpu.h" or "hw/acpi/memory_hotplug.h" elsewhere: include/hw/acpi/cpu.h:67:52: error: unknown type name 'ACPIOSTInfoList' void acpi_cpu_ospm_status(CPUHotplugState *cpu_st, ACPIOSTInfoList ***list); ^ include/hw/acpi/memory_hotplug.h:51:55: error: unknown type name 'ACPIOSTInfoList' void acpi_memory_ospm_status(MemHotplugState *mem_st, ACPIOSTInfoList ***list); ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu --- include/hw/acpi/cpu.h | 1 + include/hw/acpi/memory_hotplug.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/hw/acpi/cpu.h b/include/hw/acpi/cpu.h index bc901660fb..e011d01adf 100644 --- a/include/hw/acpi/cpu.h +++ b/include/hw/acpi/cpu.h @@ -12,6 +12,7 @@ #ifndef ACPI_CPU_H #define ACPI_CPU_H +#include "qapi/qapi-types-acpi.h" #include "hw/qdev-core.h" #include "hw/acpi/acpi.h" #include "hw/acpi/aml-build.h" diff --git a/include/hw/acpi/memory_hotplug.h b/include/hw/acpi/memory_hotplug.h index dfe9cf3fde..38841d7b06 100644 --- a/include/hw/acpi/memory_hotplug.h +++ b/include/hw/acpi/memory_hotplug.h @@ -1,6 +1,7 @@ #ifndef QEMU_HW_ACPI_MEMORY_HOTPLUG_H #define QEMU_HW_ACPI_MEMORY_HOTPLUG_H +#include "qapi/qapi-types-acpi.h" #include "hw/qdev-core.h" #include "hw/acpi/acpi.h" #include "hw/acpi/aml-build.h" From patchwork Mon Feb 19 14:14:08 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: 774087 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1181123wrs; Mon, 19 Feb 2024 06:15:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUYsL7HN0KoWH+/ee7Iq5ebfBt6AZdg4tLLmT585vWAKd55uwwamhHLC12gP9B0bhe8KEJLTgecuL38Hgo0RT8a X-Google-Smtp-Source: AGHT+IGbOiMB1zU9c8Q53N0lZ3lJEB8su+flr/zFy11imhy4GXcxHIk/wcCwEZEJpZ6t2g4Oxbuk X-Received: by 2002:a25:680e:0:b0:dbd:553d:9d6a with SMTP id d14-20020a25680e000000b00dbd553d9d6amr11811962ybc.40.1708352119439; Mon, 19 Feb 2024 06:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708352119; cv=none; d=google.com; s=arc-20160816; b=c+XfEg3DLhO+g5bpfhTQqwzVSN8hwMvb8IWtYyNu5Ulbj6f9vzt0S0GKTBf4qmYWz+ EvzugM3AemetQ230HQZ7piCw/CZPjHMkUxnkY7SQnwSf6fR/3a22/E9+/WdSLVftxF80 KWPIBEp9iyksUYZKSDHzx1byNMGBCjG4ja1J7K9xTbq2K9N33p+gGKOOvRndG71F9DFa j8JhEE+HruEfPhHPJDPoj3fMqAKd5Wwbk2JxLU06qooMBMiwGDAGJmjnJuStp+R+ouwm 9P+GFpoGly43q8r1UnV3m8g9740KkoqUAuFWt5Dp7mLFQkxGt994rBNznN0B5WK+YHc+ 3bwQ== 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=11KfkGQwT3DyJXfReiuxEKgaxGdeCZY+EPPlA79U4tU=; fh=yT+wxnQYDKcbtxqETNICx7Fd5Rfmw4bxCjNf3k11898=; b=h4A86ZL4WBFLx+7y4IoVc2S03+I7TyTgVUNj0UcqQi2isWQRiWP+87dxAPeyQXcMmh /6Vf0U6E0Jpx7qxikfeEf2B9gNgKTiB1Fm2LjtINpVJeBMCG8TzJDQNdoY0pPqzQ8cyE MhhTrsLltK+GN50okhnd3dOdAhF0MsBu7cpwAWSBB5M1IpU0rWnj0SQXlnJd6glMEeqp pIlnb3Ra3O9maq25eX/Jtvf5A5GA6touoQQ8JBJGsj1HXExWamQT6t2it+FxhimsX8oF e5DnzjF02f1zvPhQbxM/BG4ihyb/aj2PEHzpcHpR5rURPoY5rxqCkq7uPt5eYs1An7aW fg5g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pTOXppyC; 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 i26-20020a05620a145a00b0078321c60d62si6442824qkl.762.2024.02.19.06.15.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2024 06:15:19 -0800 (PST) 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=pTOXppyC; 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 1rc4Pi-0003RA-8j; Mon, 19 Feb 2024 09:14:34 -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 1rc4Pf-0003MS-Ht for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:32 -0500 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 1rc4Pd-0008Pi-MJ for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:31 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-563fe793e1cso3629288a12.3 for ; Mon, 19 Feb 2024 06:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708352068; x=1708956868; 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=11KfkGQwT3DyJXfReiuxEKgaxGdeCZY+EPPlA79U4tU=; b=pTOXppyCCNnSKTiAvd73zmqstq3gnxuwl8txhpgdj1sonk/iAFmRQdPmqr2SV2npsq li+QMdS5IG+3ScnhuhzHNN5f6YvWk24ch+thKLTWf0aFouTHD3Lp9InjCuwCqkB+tubv dWvPFEh6zAIIUxnJEqH4mLWwhLvFi8eR/2JF+HoZEWtsvDHgpA3B6rl327eCe8BP0tyt XlGgqOHUej/oOs/pZLFayXFmWPSOdLjxHFOHsyD4jox4PmxTfUwk/GLGH59AW0Uzbycp RoC/fwpKb+XEDB/m2gXIbO7NIur9hyzYAf6VPH2IYi2F/R9iZJkAepvoabBhOtKZq8BZ 85AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708352068; x=1708956868; 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=11KfkGQwT3DyJXfReiuxEKgaxGdeCZY+EPPlA79U4tU=; b=u67isUKEt/Al2tegIKgVGDp69ol8x6LB4qWIGXhqhCCJpNGbHgBgt/nQBRgKd9RtvF Cv/tH4Qsl1lR/OMQBGTI3z8dUMSIjc31ad7Fm5STY+0tSfEO5SoXhWsPrOLBkzcsNd1U oNwckDK3oLgLxNaxS2LRq3UMs9MrnTIQ616V+Jrs1M7Lwkc1177dBQT+2YvPqkUQjnkT MYQjGGlnH/9gkDyr4CMhs032Z7UcI27X9X0zuMRcE/jwjkEYj/sZjeXo2mm9wn7e4o6g eAEoH5XIMxjgUyfZ9+/BUbvewQe+6jQw+Y0TdUjIEg8rYMMaHefmBsEGGNg9cUr0pWzM Iajw== X-Gm-Message-State: AOJu0YwV7PpipVQR2ljGGViu8hjxXQ7fUVifTDLWanfyPQw1dd25pO8O SjlfEqAO4nzu8LG5zQF3S5io30oO9Sl28OwIAOBqpJaPHE+0oDuoUJwKmftI2P/Ljnwt3mc75z2 p X-Received: by 2002:a17:906:a89:b0:a3e:a8bf:4c22 with SMTP id y9-20020a1709060a8900b00a3ea8bf4c22mr1345883ejf.9.1708352067862; Mon, 19 Feb 2024 06:14:27 -0800 (PST) Received: from m1x-phil.lan ([176.176.181.220]) by smtp.gmail.com with ESMTPSA id vi17-20020a170907d41100b00a3d47ee62c7sm2983185ejc.124.2024.02.19.06.14.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Feb 2024 06:14:27 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Marcel Apfelbaum , Igor Mammedov , "Michael S. Tsirkin" , Ani Sinha , Bernhard Beschow , Eduardo Habkost , qemu-trivial@nongnu.org, =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= , Zhao Liu Subject: [PATCH 2/5] hw/acpi/cpu: Use CPUState typedef Date: Mon, 19 Feb 2024 15:14:08 +0100 Message-ID: <20240219141412.71418-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240219141412.71418-1-philmd@linaro.org> References: <20240219141412.71418-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 QEMU coding style recommend using structure typedefs: https://www.qemu.org/docs/master/devel/style.html#typedefs Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Zhao Liu --- include/hw/acpi/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/acpi/cpu.h b/include/hw/acpi/cpu.h index e011d01adf..e6e1a9ef59 100644 --- a/include/hw/acpi/cpu.h +++ b/include/hw/acpi/cpu.h @@ -20,7 +20,7 @@ #include "hw/hotplug.h" typedef struct AcpiCpuStatus { - struct CPUState *cpu; + CPUState *cpu; uint64_t arch_id; bool is_inserting; bool is_removing; From patchwork Mon Feb 19 14:14:09 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: 774090 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1181359wrs; Mon, 19 Feb 2024 06:15:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUNbcj5AlcwriGoekSqpUeGrX4V9NjrCtmjhgzgn0yJChVwbolCDBmSRwQIE/eDqrMCDbzmLoXvhUtnFtNdgGsQ X-Google-Smtp-Source: AGHT+IEgjLuu2AxFbUUXW+C2o78rZyTZr+pDorTsbNVA8SptivEe3xZPYF3amIK90mPtPOxvY372 X-Received: by 2002:a05:6871:3a0e:b0:21e:8025:4aa7 with SMTP id pu14-20020a0568713a0e00b0021e80254aa7mr9336240oac.14.1708352147885; Mon, 19 Feb 2024 06:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708352147; cv=none; d=google.com; s=arc-20160816; b=y+7z/7PAtwJqs3ijm6aNnXjFxSw04B54l+r/HAQQ0idHDXLUX9XHBX6mFslsCZ1/o4 ttKQblpTNOcat1bmm5GKs2S3Co4CEK2hxjOgUg4xpLYsq0j6waQruiIS5bpiiRLD7dMC nml6VxwwmPNf9UPNXUVwn1wPveLcTZzJ77s07HZ+/Y1rrs5WHTkBpYJ5LkCc9awPNCpO qPUuWjcBFDOH1i+oXhmZdsAVJCcWHr3rqH6l/x0pNY4k9JtqPzR/ocgcMBDrOcVeIruk c93KLQmYWVdQ8e/VjWid6jaII9xp4OM5Ki7dgLHqTJS6A4ponYfN+y8EtPSRPuUyw1zk lEKQ== 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=9J7bsYDfP840rvlPB/SKF671rHZmvSXNYnENubFOAY4=; fh=samD0lp4jLKeDhkTkeB861D9LItYSgbb2UVql1zSm0s=; b=gRuLRCwH7T9gK90pqzgmJhwFQ/p63fHRnED3Qd8yjk1p+2AO/eC9Hf3gQRtF0ilFO2 swbmPxVMnDHDZinU0NVyOWHd3XaWDdHLDKQ7SsuhmvNfSZ1QYotXtMRQxCACuy9lmZYm waimvOpA9Fv+QWNlQJEDFNjMYzEsLTAgj0+wZB3Pxw/6WnTIUT//cCJVfdejczGUcZ1e 4umS7IpglDO28wT/wc1fbCls2UEGStIumvK4qJvSzUH0UCAT92Q68u+jaKCBttjDx5PG P4sa9yexgQ7OvJMm/UaJPEpN70eFOeilwih9ctPgdfnDkJuGuPdPdXR4o6xbccIi6YQi Sd4A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRlQMj6i; 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 fa1-20020a0561302f8100b007d660015e2fsi192228uab.33.2024.02.19.06.15.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2024 06:15:47 -0800 (PST) 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=fRlQMj6i; 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 1rc4Pm-0003XM-Kw; Mon, 19 Feb 2024 09:14:38 -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 1rc4Pl-0003WP-5e for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:37 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc4Pj-0008Rl-He for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:36 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-563e6131140so3715311a12.2 for ; Mon, 19 Feb 2024 06:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708352073; x=1708956873; 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=9J7bsYDfP840rvlPB/SKF671rHZmvSXNYnENubFOAY4=; b=fRlQMj6i5Xc5IPuTDGuslNsMhS1juNA1ayD4DuAhNmZUqHqo8TXKz+EKfnfGFD1d+I cQAYvFHDVUPcjmYPxv+1rApUA+TUZvkjdUpRquSR4d5oPqnhuDtTkk+Tc6AuKcje7+Yj 8OWw0xeGZ2rWW1WKav6/6zLhkfiWHvNI+3dnCFeJ8HR0z4nYgpUmvyQJjjiQ1KOTl0iY FD2iRTt1MvPVCM4AzTJ/lugkZ0iTVYJHkmB76XQf8sy5pDPPvzwtoyQ03CzhRLuXKnW3 UwRVUTS5BxpPwd9PhkPd7BIqF6g4MO2z6AGbHAH+MLl1XWI4Ho+iYdx1uUpIQV+Dl1tL 1V8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708352073; x=1708956873; 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=9J7bsYDfP840rvlPB/SKF671rHZmvSXNYnENubFOAY4=; b=DPlVvCFsVR072V4WkZ5iqj7cIAL4N/dXUdLHKfsbTEMF7iKB9WAUBuB8geFWifCg+S fFD31h1cCI3l2XmevrHHPaQp/XXiUZ45vNi+Oz0joe8u5T58RmbwxvqrIiYeC9G2QI/2 Uode7I37CrReMyMou//2G+LDjBXybMybdIN0s+no3kNGUy6aiMlh6BP/HwxrqkzG1kwV v0ysEYmT3cfV5+fktwIRxn80HdATxpMZ/Q6DS8Ot4Vta9I72wz1YBw5bTm1kB7iNIWsh MQsPQG7LY3BBpjfn2a2fEbaF3Hwq6KgLH2ZbobKUsGEiSBlrPt1QQSj0UnC65c8ttZ5V LyRA== X-Gm-Message-State: AOJu0YzvjeLhbx24qENMMPd2G6WgxfvZIeooEKPbi/tPOi/WXEo3fhSf I8r+6KI6VNv4Uyg9d5teoBx7DQkjMs+1DWD6Z6vZk4TadUia1WVrrudhRuRdKcqsBBtKTvQl64H p X-Received: by 2002:a05:6402:1801:b0:564:7007:e14c with SMTP id g1-20020a056402180100b005647007e14cmr2272437edy.22.1708352073683; Mon, 19 Feb 2024 06:14:33 -0800 (PST) Received: from m1x-phil.lan ([176.176.181.220]) by smtp.gmail.com with ESMTPSA id fg11-20020a056402548b00b00564168e6674sm2569850edb.51.2024.02.19.06.14.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Feb 2024 06:14:33 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Marcel Apfelbaum , Igor Mammedov , "Michael S. Tsirkin" , Ani Sinha , Bernhard Beschow , Eduardo Habkost , qemu-trivial@nongnu.org, =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/5] hw/acpi/ich9: Include missing headers Date: Mon, 19 Feb 2024 15:14:09 +0100 Message-ID: <20240219141412.71418-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240219141412.71418-1-philmd@linaro.org> References: <20240219141412.71418-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=philmd@linaro.org; helo=mail-ed1-x529.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=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 The ICH9LPCPMRegs structure has MemoryRegion and Notifier fields, so requires the "qemu/notify.h" and "exec/memory.h" headers. However nothing from "hw/acpi/acpi_dev_interface.h" is required, so reduce its inclusion to hw/acpi/ich9.c source file where it is used. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/acpi/ich9.h | 3 ++- hw/acpi/ich9.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/hw/acpi/ich9.h b/include/hw/acpi/ich9.h index 2faf7f0cae..215de3c91f 100644 --- a/include/hw/acpi/ich9.h +++ b/include/hw/acpi/ich9.h @@ -21,12 +21,13 @@ #ifndef HW_ACPI_ICH9_H #define HW_ACPI_ICH9_H +#include "qemu/notify.h" +#include "exec/memory.h" #include "hw/acpi/acpi.h" #include "hw/acpi/cpu_hotplug.h" #include "hw/acpi/cpu.h" #include "hw/acpi/pcihp.h" #include "hw/acpi/memory_hotplug.h" -#include "hw/acpi/acpi_dev_interface.h" #include "hw/acpi/ich9_tco.h" #define ACPI_PCIHP_ADDR_ICH9 0x0cc0 diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 573d032e8e..be375a8b9d 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -35,7 +35,7 @@ #include "sysemu/runstate.h" #include "hw/acpi/acpi.h" #include "hw/acpi/ich9_tco.h" - +#include "hw/acpi/acpi_dev_interface.h" #include "hw/southbridge/ich9.h" #include "hw/mem/pc-dimm.h" #include "hw/mem/nvdimm.h" From patchwork Mon Feb 19 14:14:10 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: 774089 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1181352wrs; Mon, 19 Feb 2024 06:15:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXfEOYU0QXhMhJqU8hlWTEaBZ2mD3kcQI4NLNiMuT1BGBAz7hTI1Jp7ks7lEo56/qcIj/MdoMsq9N+scbq6GKxe X-Google-Smtp-Source: AGHT+IEm0ZK5ODm7TqM1R6tup1RilNTigyOefRJ83C5kaHS9RfqCRqCmibJzAI9xw/CyJDOUT0+P X-Received: by 2002:a05:6808:4482:b0:3c1:5b63:579b with SMTP id eq2-20020a056808448200b003c15b63579bmr2918130oib.49.1708352147291; Mon, 19 Feb 2024 06:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708352147; cv=none; d=google.com; s=arc-20160816; b=YaIvMOtj908lQtjGoYT69bJb04kECz+DqM2eT+d1TsS1M6Ox4v6kxmvex6Ppkt6iJf aAfZtLmsBB6Cxmkyc7vPx3qbYWx+uAiZE5//sNFHcoEjhFjv+embe0knp2Qp+B+bpRdk 1S46k+E8cdjr9Tei4QQKSayj/c0XT6QZpAgDmscqXTDlMWAAbiP0aRn0dA4yMcYeo5HB rQxMD1YL0/yq/nbtI0fJG2Q6h0+12EtZnx7nLJ8ajg1JJRHt9PMv1FgEVaB8lfWRzs0I YbTEu10qasINBHSf7HTORDuOAo7ir6nltXT8O7b/YnXPNMogtOqzgVws7uUIigzW7WRY Hx3A== 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=19+qnM30bgsd9CC9/msvt9m3ig3W+6Jc4ToSCcgfANA=; fh=samD0lp4jLKeDhkTkeB861D9LItYSgbb2UVql1zSm0s=; b=oUW4/16GEQ2Nwt3J4neXeNlubTxs/pXoqhQrcB2bNWrxhymi1MvrrjNXHhnWAA7BLl u1lKk050VcvJqOXC/1T8Z8/L+tzihXZcDPMsnmRK3MD8Ee6WmbtLDDao8s0egwbvURct 558ReigXgYZHbvu2oDPel+A9BGnXU5oM6oj2YSA29K7UPgQy9QHh2pK5he/m2zrqt9K5 7TIK7LSOr5y5Icv153XORBaOahFi+IoirFLGoe2646rBItMsu2EbSfbaADgxKzxbYLEA sBXNUX1YM/MUlzEIEJQUnYjxlb+5BdXBEYiyvlxWtpDqSpPMPuXrE/kVHwm7xkF2yLl9 kmrg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tN9mSXOx; 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 iq19-20020a056130629300b007d61b4b6a4fsi987927uab.70.2024.02.19.06.15.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2024 06:15:47 -0800 (PST) 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=tN9mSXOx; 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 1rc4Ps-0003bd-34; Mon, 19 Feb 2024 09:14:44 -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 1rc4Pq-0003YP-8C for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:42 -0500 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 1rc4Po-0008SL-Ti for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:42 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5649eb3ab68so828635a12.3 for ; Mon, 19 Feb 2024 06:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708352079; x=1708956879; 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=19+qnM30bgsd9CC9/msvt9m3ig3W+6Jc4ToSCcgfANA=; b=tN9mSXOxKqMxGPk9JDbRT4NSQdDLxtE0kcF4IsJM8iiek+ieWDY7J+VqmlrH4SJuEO Er+TDVuil7/daLrc4wUvD/IkTESLBkfTOTYQlYLCjgYAeGBsDMuEd+CXxPeGVBPgWyCD 9Osxd7yiV+p4l3hsY4PgzuR9eRdc2v9Akf5+74o+xlkoLoIJIsL0k5cWcK5LNmQ8xbXJ FshnemYOpUpH4U9hi35GTHGBPoN1lLcWdZq5MdgeWXC1DK1tdXchs3vxbMXX8NyKH5NT 9fwqraJw23H6VOpVV8h8ln7A6SMo7s+0y4npnlFzv8XcXBqVamAU/IgGPycIVsXrcFgC pLdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708352079; x=1708956879; 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=19+qnM30bgsd9CC9/msvt9m3ig3W+6Jc4ToSCcgfANA=; b=sf0Auo0Z5tgBA73NLw3Yg0zQf7i1qcC0URRH5e/nNGhUPSiMDciCDz7K+OkGSfdtOY oIs+c+QTq+6F5CB0IijsnfJ9+8cyt7wWw3d0CdeLUHcs7NwNgYN1RnVP9eBHpPdui41e CXPWgj7ZYDnzpeQ1Cd2RxASiVQya9L5algYz5DgaerLw+K8GzQWbO0bYXAhyjP18roxR Z8oMXFQGIGpNjqg/4WteMzuySAMbfcrrtwSlmKbjlEalzuQXMusOor9a0e25iLPtJC5k c9523l8eJQKeVSffUMeypOehg9jHDiKodQy+doirKgNwy++jW7Ot8Y3hflPnfiWPm30z ka6g== X-Gm-Message-State: AOJu0Yz460xt2+25m9c3jK1GmPqnChLgHT9Y8NpGMNJJrOpkdKJMIlpE UalRCRrM1bswxA0S4GSMRXFT5B21n4DyEaGvNfvkv1hAAB6kH9c7LfjmPrH3farPmbslqVP10BY 0 X-Received: by 2002:a17:906:f8d6:b0:a3e:998a:14b with SMTP id lh22-20020a170906f8d600b00a3e998a014bmr1766628ejb.47.1708352079412; Mon, 19 Feb 2024 06:14:39 -0800 (PST) Received: from m1x-phil.lan ([176.176.181.220]) by smtp.gmail.com with ESMTPSA id vx10-20020a170907a78a00b00a3edb758561sm144542ejc.129.2024.02.19.06.14.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Feb 2024 06:14:38 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Marcel Apfelbaum , Igor Mammedov , "Michael S. Tsirkin" , Ani Sinha , Bernhard Beschow , Eduardo Habkost , qemu-trivial@nongnu.org, =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 4/5] hw/acpi/ich9_tco: Include missing 'migration/vmstate.h' header Date: Mon, 19 Feb 2024 15:14:10 +0100 Message-ID: <20240219141412.71418-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240219141412.71418-1-philmd@linaro.org> References: <20240219141412.71418-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=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 We need the VMStateDescription structure definition from "migration/vmstate.h" in order to declare vmstate_tco_io_sts. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu --- include/hw/acpi/ich9_tco.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/hw/acpi/ich9_tco.h b/include/hw/acpi/ich9_tco.h index c4393caee0..2562a7cf39 100644 --- a/include/hw/acpi/ich9_tco.h +++ b/include/hw/acpi/ich9_tco.h @@ -11,6 +11,7 @@ #define HW_ACPI_TCO_H #include "exec/memory.h" +#include "migration/vmstate.h" /* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */ #define TCO_TICK_NSEC 600000000LL From patchwork Mon Feb 19 14:14:11 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: 774088 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1181135wrs; Mon, 19 Feb 2024 06:15:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUTbkNMKImT89W7d7ULDnzE3SrUuBEVjRwxgC7SKW/3jE9I22GH2MmVMPvc5H+i66DZalhdWfaY3YxgeajoFEhY X-Google-Smtp-Source: AGHT+IFTMrEdHRDpP00zbLlI44RCUSPfeVRk/zcaTG2J+A8UcAnI+/okw6izLSjlBeMI8CfVrMTO X-Received: by 2002:a05:6102:b09:b0:470:605a:69d with SMTP id b9-20020a0561020b0900b00470605a069dmr2047301vst.25.1708352121487; Mon, 19 Feb 2024 06:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708352121; cv=none; d=google.com; s=arc-20160816; b=BK2v88Npt9bREsemzxzA5tHvQry/uvxb/Qyt2v3vE+7VLvxvj8pO06mZmweRDF6rbY 6+h1W7EcmTMt57WztLciEsCxov1KEQl+efOcOoM+C39UgM9wAlU2kKtZlF2zQSqpVNbx 0n9LJwA1W2HYiGPjg2yWwSZBg9SZjKw/OD2/Phi5th93Hyn0qUWlthJ08WVzpJ7/e+G5 ak1D2eZzjpZVwaUbsYv+yifzK8ZE1fxu4VBMw9NNHPHkXKCk5K55mIYsh4jrcPkuzKx9 6eflVMaLbLt4PBDFAA9YgwzT60a2iAgwNDRihffQb9hOy654VHNcT7iP+17Lzh6CuXlT T1Xw== 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=daMydCoKKjW/BM3LMOveVy0d9uKVycJYmVQBhTRBuqo=; fh=samD0lp4jLKeDhkTkeB861D9LItYSgbb2UVql1zSm0s=; b=lf/ypSS3sJvHSRvNitLEhT7iGjyHPsolHvyo4cBIV42eaBGsYZUROm88sJH0Q52HU4 xPJFbPx84RZxwBsD61TDHkjSi4JiR/eqisu/zyf2j+Qh3EdvOhLHHm38ATi1ZbXa6HoR H2HD725AkLI+j/WB9qnC1Gl9EPPdLi2xPPRpiGDnY3ZCwTCW8uQii4af2s22DxK5MuYO GShXsS9hltJ2MPSI9lOdL5YN+sqfSTjEx5EkPjX2/XRTcgabE9KpFA+JEJjDaJqwZx8G jLM8Ian7qL8qNXPhRGaABK8hIoY1RNQ9i4qPrcwWSyqzSnC+Vz/p7XVVe9CbtuPP35ob awUw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LORgC9+N; 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 ia26-20020a0561024b1a00b0046d287967bbsi97959vsb.721.2024.02.19.06.15.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2024 06:15:21 -0800 (PST) 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=LORgC9+N; 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 1rc4Q0-0003fm-Nv; Mon, 19 Feb 2024 09:14:52 -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 1rc4Pz-0003ej-8N for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:51 -0500 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc4Pw-0008Sm-2G for qemu-devel@nongnu.org; Mon, 19 Feb 2024 09:14:50 -0500 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2d10ad265d5so44735411fa.0 for ; Mon, 19 Feb 2024 06:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708352085; x=1708956885; 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=daMydCoKKjW/BM3LMOveVy0d9uKVycJYmVQBhTRBuqo=; b=LORgC9+N5hXmGsDhZ7T3uVN+cbwxJCT3tMewfvov5Te5q0EXACBqGg+XlGS+4QPTxJ 7IpKo+UntF0Fhl6hx/2qmBoJH9rvCn9QP4iOtdD49rqO/SXNM7NFwIYBSwhGcw5szi5K bHe09ERo2ZOlE0uNbaXPy3KtqHrDHsf+q+IaSnUIbHDQP9AlrIc6pI9hfmuNjSYq9Fqa 0E7fZg7fnL2MfXGk3HzYktT0ya/Np/11KmKSPNM4ZSik0IyLuj+d4BvnGvHd0AgUnXgl Xw1+snYUdTapNhHH0NJYC5fqwp0lg8nUNwsVwbKz/5d8RVimeL/W82Rf3ErjHCjrPsqz 5bPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708352085; x=1708956885; 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=daMydCoKKjW/BM3LMOveVy0d9uKVycJYmVQBhTRBuqo=; b=K0VL0dRkSDCgN+60rQbQXxHAzkBrCO7nDWxt43thDoe1a2UODhHTbZsXFpegllCPjE BPoF4kk9kDmdE3RPV60Ji6PJPdlwP4rRzBwEjdpKfdv4hW7tTZwviNTdIT4dw/fPvmpd DyhI2E5yKo1cyizBYahfRKr96vrAmi5UlYv+Af/PDueojdNvTS615GwJVhqKwvY2pIkU 28DBtP0DdGyT8Cz5Jw5KFGyDe/HXLL8MJQJxMG3nVrSO9OANoIfA7NbA0LzPROwMe9Bi NP8QL0FyFmZt/HHzlG6Z+Nwhn0YCTknXoi3LPBAZPXoWTprCB1UDd8hvguC7FscmqkVa RSJg== X-Gm-Message-State: AOJu0YzEnLmu7g7Xqplthgrn6B5bcDgY1WGi5eh8Zu3YlvWAr6q21zff S/GCYINgitjLocb/ldSNHf7dglhFdFKNSRh0j+iIfJa4sdAfHtBxBnOqoQvyPlQ/6ezKC0TMgDb F X-Received: by 2002:a05:6512:e8f:b0:512:be57:6dcf with SMTP id bi15-20020a0565120e8f00b00512be576dcfmr820919lfb.8.1708352085061; Mon, 19 Feb 2024 06:14:45 -0800 (PST) Received: from m1x-phil.lan ([176.176.181.220]) by smtp.gmail.com with ESMTPSA id cx1-20020a170907168100b00a3c456b0c0esm2974171ejd.108.2024.02.19.06.14.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Feb 2024 06:14:44 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Marcel Apfelbaum , Igor Mammedov , "Michael S. Tsirkin" , Ani Sinha , Bernhard Beschow , Eduardo Habkost , qemu-trivial@nongnu.org, =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 5/5] hw/i386/q35: Include missing 'hw/acpi/acpi.h' header Date: Mon, 19 Feb 2024 15:14:11 +0100 Message-ID: <20240219141412.71418-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240219141412.71418-1-philmd@linaro.org> References: <20240219141412.71418-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=philmd@linaro.org; helo=mail-lj1-x236.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=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 "hw/acpi/acpi.h" is implicitly included. Included it explicitly to avoid when refactoring headers: hw/i386/pc_q35.c:209:43: error: use of undeclared identifier 'ACPI_PM_PROP_ACPI_PCIHP_BRIDGE' ACPI_PM_PROP_ACPI_PCIHP_BRIDGE, ^ Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/pc_q35.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index d346fa3b1d..a91f414922 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -58,6 +58,7 @@ #include "hw/hyperv/vmbus-bridge.h" #include "hw/mem/nvdimm.h" #include "hw/i386/acpi-build.h" +#include "hw/acpi/acpi.h" #include "target/i386/cpu.h" /* ICH9 AHCI has 6 ports */