[PATCH v5 2/2] drivers/virt: vmgenid: add vm generation id driver

2021-02-01 Thread acatan--- via
- Background The VM Generation ID is a feature defined by Microsoft (paper: http://go.microsoft.com/fwlink/?LinkId=260709) and supported by multiple hypervisor vendors. The feature can be used to drive the `sysgenid` mechanism required in virtualized environments by software that works with local

[PATCH v5 1/2] drivers/misc: sysgenid: add system generation id driver

2021-02-01 Thread acatan--- via
- Background and problem The System Generation ID feature is required in virtualized or containerized environments by applications that work with local copies or caches of world-unique data such as random values, uuids, monotonically increasing counters, etc. Such applications can be negatively af

[PATCH v5 0/2] System Generation ID driver and VMGENID backend

2021-02-01 Thread acatan--- via
This feature is aimed at virtualized or containerized environments where VM or container snapshotting duplicates memory state, which is a challenge for applications that want to generate unique data such as request IDs, UUIDs, and cryptographic nonces. The patch set introduces a mechanism that pro

Re: [PATCH v4 1/2] drivers/misc: sysgenid: add system generation id driver

2021-01-21 Thread acatan--- via
On 12/01/2021, 15:09, "Michael S. Tsirkin" wrote: On Tue, Jan 12, 2021 at 02:15:59PM +0200, Adrian Catangiu wrote: > +3) Mapped memory polling simplified example:: > + > + /* > + * app/library function that provides cached secrets > + */ > + char

Re: [PATCH v4 0/2] System Generation ID driver and VMGENID backend

2021-01-21 Thread acatan--- via
On 12/01/2021, 14:49, "Michael S. Tsirkin" wrote: On Tue, Jan 12, 2021 at 02:15:58PM +0200, Adrian Catangiu wrote: > The first patch in the set implements a device driver which exposes a > read-only device /dev/sysgenid to userspace, which contains a > monotonically increasing u32

Re: [PATCH v4 1/2] drivers/misc: sysgenid: add system generation id driver

2021-01-21 Thread acatan--- via
On 12/01/2021, 15:07, "Greg KH" wrote: On Tue, Jan 12, 2021 at 02:15:59PM +0200, Adrian Catangiu wrote: > + Partial reads are not allowed - read buffer needs to be at least > + ``sizeof(unsigned)`` in size. "sizeof(unsigned)"? How about being specific and making this a real "X