Skip to content
  • Avi Kivity's avatar
    core, x86: Add user return notifiers · 7c68af6e
    Avi Kivity authored
    
    
    Add a general per-cpu notifier that is called whenever the kernel is
    about to return to userspace.  The notifier uses a thread_info flag
    and existing checks, so there is no impact on user return or context
    switch fast paths.
    
    This will be used initially to speed up KVM task switching by lazily
    updating MSRs.
    
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    LKML-Reference: <1253342422-13811-1-git-send-email-avi@redhat.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    7c68af6e