Re: [REGRESSION] Re: [PATCH] Revert "vmgenid: emit uevent when VMGENID updates"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [REGRESSION] Re: [PATCH] Revert "vmgenid: emit uevent when VMGENID updates"
- From: Babis Chalios <bchalios@xxxxxxxxx>
- Date: Fri, 3 May 2024 12:14:19 +0200
- Cc: Alexander Graf <graf@xxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, <stable@xxxxxxxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, "Theodore Ts'o" <tytso@xxxxxxx>, "Cali, Marco" <xmarcalx@xxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, "rostedt@xxxxxxxxxxx" <rostedt@xxxxxxxxxxx>, "Christian Brauner" <brauner@xxxxxxxxxx>, <linux@xxxxxxxxxxxxx>, <regressions@xxxxxxxxxxxxxxx>, Lennart Poettering <mzxreary@xxxxxxxxxxx>
- In-reply-to: <Zi9ilaX3254KL3Pp@gardel-login>
- User-agent: Mozilla Thunderbird
Hi Jason,
Friendly ping?
IMHO Lennart, Alex and myself have raised (what I think to be) valid
technical points regarding your concerns about your belief that the
uevent mechanism is an ad-hoc mechanism that you don't consider viable.
Just to summarize:
* Upon VM clone, user space needs to adjust various components (DHCP
leases, MAC addresses, etc.) that have nothing to do with PRNGs.
* The path of exposing the VM clone event via vgetrandom() (or any other
interface of random.c) is simply wrong. The random subsystem is the
natural component to inform about when cached entropy is stale. It
should not be responsible for informing user space about VM clone
events. IOW, "reseed your PRNGs" is not equivalent to "your VM has been
cloned".
Given all this, it would help the discussion if you explained why you
believe random.c should propagate VM clone events and how.
If you don't believe that, could you explain what is the problem with
the proposed uevent mechanism? Personally, I agree with Lennart that
VMGenID is a generic ACPI device built for exactly this purpose. VMGenID
is not an "ad-hoc driver". It is a standard which is supported by most
(all?) major VMMs out there today and its whole purpose is to deliver
inside the VM a notification that it was cloned.
Cheers,
Babis
[Index of Archives]
[Linux Kernel]
[Kernel Development Newbies]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]