From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E868D116F9 for ; Mon, 1 Dec 2025 12:51:33 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vQ3NE-00089k-1C; Mon, 01 Dec 2025 07:51:24 -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 1vQ3N6-00082l-F6 for qemu-devel@nongnu.org; Mon, 01 Dec 2025 07:51:18 -0500 Received: from fra-out-013.esa.eu-central-1.outbound.mail-perimeter.amazon.com ([63.178.132.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vQ3N3-0003lG-Qf for qemu-devel@nongnu.org; Mon, 01 Dec 2025 07:51:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.es; i=@amazon.es; q=dns/txt; s=amazoncorp2; t=1764593473; x=1796129473; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GpvcrHoLLiCW8zGBZinEleXUqigeCd//NOhCARn/C6U=; b=gbcEL/a0EhQ6EM4StGzgaNeCxU0MTywfMIRKQLbvogvSJ/uWBcxYABQ8 CY/TAPkWhekEzT5y5F70xtwexipQADgQ9lBUjKwNMigKSVY3MHDU/s+EC 5/B8h6FPUvNKQ92nqnJv73S5vUnCtktmlupTI/LUm8/O+DvAjgY/rcBKL TMUrLdyfZuYGsTrAetdvPzdJCbZevzrUQdhtWQzuWdkY/hZ57iNXfYgEz ssKiThHCLPqIXlrVfZ9u4KYEZbVJwvub+tiV0lyx0IYKJqiPwS5XDrDXm ebsQwA/UtbrDjeYQ7ppqGUIe3E0aPEQGbYVSbBn/lOBVITCUuLmQgDkQA A==; X-CSE-ConnectionGUID: VCUs5cz4Ro+wjfeJD3Ps4A== X-CSE-MsgGUID: HFYDoz4wSN+34yO7esZYKQ== X-IronPort-AV: E=Sophos;i="6.20,240,1758585600"; d="scan'208";a="5948352" Received: from ip-10-6-11-83.eu-central-1.compute.internal (HELO smtpout.naws.eu-central-1.prod.farcaster.email.amazon.dev) ([10.6.11.83]) by internal-fra-out-013.esa.eu-central-1.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2025 12:50:46 +0000 Received: from EX19MTAEUA002.ant.amazon.com [54.240.197.232:17969] by smtpin.naws.eu-central-1.prod.farcaster.email.amazon.dev [10.0.21.117:2525] with esmtp (Farcaster) id 795ad669-02ed-45b1-a621-6821e279ac59; Mon, 1 Dec 2025 12:50:43 +0000 (UTC) X-Farcaster-Flow-ID: 795ad669-02ed-45b1-a621-6821e279ac59 Received: from EX19D012EUA001.ant.amazon.com (10.252.50.122) by EX19MTAEUA002.ant.amazon.com (10.252.50.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.29; Mon, 1 Dec 2025 12:50:36 +0000 Received: from EX19D012EUA001.ant.amazon.com (10.252.50.122) by EX19D012EUA001.ant.amazon.com (10.252.50.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.29; Mon, 1 Dec 2025 12:50:36 +0000 Received: from EX19D012EUA001.ant.amazon.com ([fe80::b7ea:84f7:2c4b:2719]) by EX19D012EUA001.ant.amazon.com ([fe80::b7ea:84f7:2c4b:2719%3]) with mapi id 15.02.2562.029; Mon, 1 Dec 2025 12:50:36 +0000 From: "Chalios, Babis" To: "mst@redhat.com" , "imammedo@redhat.com" , "cohuck@redhat.com" , "pbonzini@redhat.com" CC: "qemu-devel@nongnu.org" , "dwmw2@infradead.org" , "Chalios, Babis" , "Graf (AWS), Alexander" , "mzxreary@0pointer.de" Subject: [RFC PATCH 0/4] vmclock: add support for VM generation counter and notifications Thread-Topic: [RFC PATCH 0/4] vmclock: add support for VM generation counter and notifications Thread-Index: AQHcYsEPTMhCf9QsoUSKU63ujcPAybUMvJaA Date: Mon, 1 Dec 2025 12:50:36 +0000 Message-ID: <20251201125023.18344-2-bchalios@amazon.es> References: <20251201125023.18344-1-bchalios@amazon.es> In-Reply-To: <20251201125023.18344-1-bchalios@amazon.es> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.247.161] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received-SPF: pass client-ip=63.178.132.221; envelope-from=prvs=423f6341f=bchalios@amazon.es; helo=fra-out-013.esa.eu-central-1.outbound.mail-perimeter.amazon.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, UNPARSEABLE_RELAY=0.001 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Latest specification of VMClock[1] adds support for VM generation counter= =0A= and notifications. VM generation counter is similar to disruption_marker=0A= but it only changes when the guest has been loaded from a snapshot, not=0A= on live migration. Its purpose is to notify the guest about snapshot=0A= events and let it perform actions such as recreating UUIDs, resetting=0A= network connections, reseeding entropy, etc.=0A= =0A= Moreover, the spec now describes a notification that the device can send=0A= after updating the seq counter to a new even number.=0A= =0A= I have already sent the Linux changes to the mailing list here:=0A= https://lore.kernel.org/lkml/20251127103159.19816-1-bchalios@amazon.es/T/#u= =0A= =0A= [1] https://david.woodhou.se/VMClock.pdf=0A= =0A= Babis Chalios (4):=0A= acpi: fix acpi_send_gpe_event() to handle more events=0A= hw/acpi: add new fields in VMClock ABI=0A= hw/acpi: add VM generation counter field to VMClock=0A= hw/acpi: add ACPI notification to VMClock device=0A= =0A= hw/acpi/core.c | 8 +++++-=0A= hw/acpi/vmclock.c | 28 +++++++++++++++++++-=0A= include/hw/acpi/acpi_dev_interface.h | 1 +=0A= include/standard-headers/linux/vmclock-abi.h | 20 ++++++++++++++=0A= 4 files changed, 55 insertions(+), 2 deletions(-)=0A= =0A= -- =0A= 2.34.1=0A= =0A=