lkml.org 
[lkml]   [2019]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCHv6 23/36] x86/vdso: Allocate timens vdso
    Dmitry,

    On Mon, 19 Aug 2019, Dmitry Safonov wrote:
    > On 8/18/19 5:21 PM, Thomas Gleixner wrote:
    > > That means your timens_to_host() and host_to_timens() conversion functions
    > > should just use that special VDSO page and do the same array based
    > > unconditional add/sub of the clock specific offset.
    >
    > I was a bit scarred that clock_mode change would result in some complex
    > logic, but your patch showed me that it's definitely not so black as I
    > was painting it.

    Right. It took me a while to find the right spot which does not affect the
    non-timens path and at the same time gives a reasonable result for the
    timens case.

    One thing occured to me while doing that vvar_fault() hack for testing. For
    the timens case it will hit

    if (sym_offset == image->sym_vvar_page) {

    first, which is then installing the special vvar page.

    It's clear that the code will hit the next fault immediately when trying to
    access the real vvar page at the timens offset. So it might be sensible to
    map that one in one go to avoid the immediate second page fault. But that
    should be a separate patch after the initial 'functional' one.

    Thanks,

    tglx

    \
     
     \ /
      Last update: 2019-08-19 16:46    [W:3.297 / U:0.808 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site