Re: [PATCH 1/1] vmgenid: emit uevent with new generation ID
From: Luca Boccassi
Date: Tue Jul 30 2024 - 07:32:24 EST
On Tue, 2024-07-30 at 11:48 +0200, Babis Chalios wrote:
> There are many system services that need to be notified when the VM they
> are running in is resumed from a snapshot. One example are network
> managers which need to renew DHCP leases and/or re-create MAC addresses
> for virtual interfaces. Other example are daemons that manage system
> clocks which need reset upon snapshot resume.
>
> Send a uevent notification to user space from the VMGenID driver when
> we receive the ACPI notification about a new generation ID. This way, we
> notify user space software about the VM cloning event and give it a
> chance to adapt to the new environment.
>
> Signed-off-by: Babis Chalios <bchalios@xxxxxxxxx>
> ---
> drivers/virt/vmgenid.c | 2 ++
> 1 file changed, 2 insertions(+)
Speaking as a systemd maintainer, this is precisely what we need for
systemd-networkd and systemd-timesyncd, thanks for taking care of this.
Acked-by: Luca Boccassi <bluca@xxxxxxxxxx>
--
Kind regards,
Luca Boccassi