From nobody Sun Sep 28 16:37:06 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EE3C30FC02 for ; Tue, 23 Sep 2025 07:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758611060; cv=none; b=h/dWlR0aSLH3Vcor0w5bGjU+AZEaZADqXqrxRmPfuhQyIIh4Mn5l/JtfY+LMLoF99ooZxFzke5QRkwqF7PTkz5iHwkYN2yFxneJjMw4zqjv7R7jwFQ7Jh7YMMK/5AnVsJVMY/cwXXNWlAr1LN4O1VDLgV7YKfnoPHH8ztgrtu2s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758611060; c=relaxed/simple; bh=IcJJp5xPR5nte8FFlf6/ZvB0o7KifNbuksj0OAyRaaQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uRC7xVoBy57n0NJTDF65Fgh3SS/4PKShgh0a3BA+T6BB8OepacY1ySCowfnCuNBonjD+Af9PTlPzx8oNp98Yxr99a+egAtGNHAw+uf8jW5oejs+2jII/eE4bv3ulxdk+m4fCXDq5uzkxfLFBEInhAt8laa/HV5LhCcQFF0XPty8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ElXQVf6x; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ElXQVf6x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40008C19422; Tue, 23 Sep 2025 07:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758611060; bh=IcJJp5xPR5nte8FFlf6/ZvB0o7KifNbuksj0OAyRaaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ElXQVf6xGZqTUWWdCndF8Y959eqSP8HOjrOo5VSMyX+Yf3l1TBfYV9QHb5lDaCAmF MQrK4GFizcrdrxqk693b8E+AIKbMpv/knMWpvmC6IlvHDu+zwoQFpt3ruND6TyH73P rsI95I3MhwhoGZr39BV0Gl9g8mDGM0JmDoM+8sCNyGNS7XFmcqp1+QxSEih1Ycsvz7 iRlCSHDNB6FrwjUS4ykWCmOb7lknIOyOFuY9fl7CvoShF1nE1kftrM0zKc7WvjABBj +TWuAhKDZdNkJBQSJieVhrlxXWCujMNu3E0KLaZ1nS27tcyL8Axb2Gik8z/KDT+eOi RE5OWUQfX1+QQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v0x4U-00000006bKq-1dEy; Tue, 23 Sep 2025 09:04:18 +0200 From: Mauro Carvalho Chehab To: Igor Mammedov , "Michael S . Tsirkin" Cc: Jonathan Cameron , Shiju Jose , qemu-arm@nongnu.org, qemu-devel@nongnu.org, Mauro Carvalho Chehab , Ani Sinha , linux-kernel@vger.kernel.org Subject: [PATCH v12 08/17] acpi/generic_event_device: Update GHES migration to cover hest addr Date: Tue, 23 Sep 2025 09:04:02 +0200 Message-ID: X-Mailer: git-send-email 2.51.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" The GHES migration logic should now support HEST table location too. Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- hw/acpi/generic_event_device.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c index 95682b79a2df..55998303c22f 100644 --- a/hw/acpi/generic_event_device.c +++ b/hw/acpi/generic_event_device.c @@ -436,6 +436,34 @@ static const VMStateDescription vmstate_pcihp_state = =3D { } }; =20 +static const VMStateDescription vmstate_hest =3D { + .name =3D "acpi-hest", + .version_id =3D 1, + .minimum_version_id =3D 1, + .fields =3D (const VMStateField[]) { + VMSTATE_UINT64(hest_addr_le, AcpiGhesState), + VMSTATE_END_OF_LIST() + }, +}; + +static bool hest_needed(void *opaque) +{ + AcpiGedState *s =3D opaque; + return s->ghes_state.hest_addr_le; +} + +static const VMStateDescription vmstate_hest_state =3D { + .name =3D "acpi-ged/hest", + .version_id =3D 1, + .minimum_version_id =3D 1, + .needed =3D hest_needed, + .fields =3D (const VMStateField[]) { + VMSTATE_STRUCT(ghes_state, AcpiGedState, 1, + vmstate_hest, AcpiGhesState), + VMSTATE_END_OF_LIST() + } +}; + static const VMStateDescription vmstate_acpi_ged =3D { .name =3D "acpi-ged", .version_id =3D 1, @@ -449,6 +477,7 @@ static const VMStateDescription vmstate_acpi_ged =3D { &vmstate_cpuhp_state, &vmstate_ghes_state, &vmstate_pcihp_state, + &vmstate_hest_state, NULL } }; --=20 2.51.0