[PATCH 0/1] User space notifications about VM cloning

From: Babis Chalios
Date: Wed May 31 2023 - 05:52:04 EST


This patch revisits the story of user space notification about VM
events. It uses uevents to send a notification to user space that the
VMGENID has changed, thus we are now in a new VM.

Please note, that this is not a "you need to reseed your PRNGs" event,
which was what the previous RFC [1] was trying to do. It is, explicitly,
meant to be a "you are now running in a new VM" event for the user space
to consume, so it can do things like regenerating its MAC addresses and
refreshing DHCP. For these cases, we do not want to tie on the "you need
to reseed your PRNGs" event, since these do not necessarily get emitted
only when VMs get cloned.

[1] https://lore.kernel.org/lkml/65d872db2e1be29bb03b43ed606e7cc9e74ec08d.camel@xxxxxxxxxxxxx/T/

Babis Chalios (1):
vmgenid: emit uevent when VMGENID updates

drivers/virt/vmgenid.c | 2 ++
1 file changed, 2 insertions(+)

--
2.39.2