• Cyrill Gorcunov's avatar
    vdso: Implement vdso proxy on restore · f2674431
    Cyrill Gorcunov authored
    When a task being restored we may meet two situations
    
     - vdso in image doesn't match the runtime vdso provided
       by a kernel. For this case we need to patch dumpee
       vdso redirecting calls to runtime vdso, thus dumpee
       vdso become a proxy.
    
     - vdso in image does match the runtime vdso, in this
       case we simply remap runtime vdso to address where
       dumpee vdso lives. Plain remapping here is quite
       important and allows us to save vdso pfn which will
       be used in parasite code later.
    
    Note after this patch the restored task may have two
    vdso in memory. Proper dumping of such situation will
    be addressed in future patches.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    f2674431
vdso.h 589 Bytes