]> git.itanic.dy.fi Git - linux-stable/commit
vmgenid: emit uevent when VMGENID updates
authorBabis Chalios <bchalios@amazon.es>
Wed, 31 May 2023 09:51:19 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2023 10:52:00 +0000 (10:52 +0000)
commitad6bcdad2b6724e113f191a12f859a9e8456b26d
treead0a0b9d081046fd3960c769a30947715a8044aa
parentb9873755a6c8ccfce79094c4dce9efa3ecb1a749
vmgenid: emit uevent when VMGENID updates

We receive an ACPI notification every time the VM Generation ID changes
and use the new ID as fresh randomness added to the entropy pool. This
commits emits a uevent every time we receive the ACPI notification, as a
means to notify the user space that it now is in a new VM.

Signed-off-by: Babis Chalios <bchalios@amazon.es>
Reviewed-by: Alexander Graf <graf@amazon.com>
Reviewed-by: Lennart Poettering <mzxreary@0pointer.de>
Link: https://lore.kernel.org/r/20230531095119.11202-2-bchalios@amazon.es
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/vmgenid.c