Re: [PATCHv6 02/36] timens: Add timens_offsets

2019-08-15 Thread Thomas Gleixner
On Thu, 15 Aug 2019, Dmitry Safonov wrote: > + page = alloc_page(GFP_KERNEL | __GFP_ZERO); > + if (!page) > + goto fail_free; > + ns->offsets = page_address(page); > + if (old_ns->offsets) > + memcpy(ns->offsets, old_ns->offsets, sizeof(struct >

[PATCHv6 02/36] timens: Add timens_offsets

2019-08-15 Thread Dmitry Safonov
From: Andrei Vagin Introduce offsets for time namespace. They will contain an adjustment needed to convert clocks to/from host's. Allocate one page for each time namespace that will be premapped into userspace among vvar pages. A new namespace is created with the same offsets as the time