lkml.org 
[lkml]   [2010]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/40] x86: Raise vsyscall priority on hotplug notifier chain
    Date
    From: Sheng Yang <sheng@linux.intel.com>

    KVM need vsyscall_init() to initialize MSR_TSC_AUX before it read the value.
    Per Avi's suggestion, this patch raised vsyscall priority on hotplug notifier
    chain, to 30.

    CC: Ingo Molnar <mingo@elte.hu>
    CC: linux-kernel@vger.kernel.org
    Signed-off-by: Sheng Yang <sheng@linux.intel.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
    ---
    arch/x86/kernel/vsyscall_64.c | 3 ++-
    1 files changed, 2 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
    index 9055e58..1c0c6ab 100644
    --- a/arch/x86/kernel/vsyscall_64.c
    +++ b/arch/x86/kernel/vsyscall_64.c
    @@ -301,7 +301,8 @@ static int __init vsyscall_init(void)
    register_sysctl_table(kernel_root_table2);
    #endif
    on_each_cpu(cpu_vsyscall_init, NULL, 1);
    - hotcpu_notifier(cpu_vsyscall_notifier, 0);
    + /* notifier priority > KVM */
    + hotcpu_notifier(cpu_vsyscall_notifier, 30);
    return 0;
    }

    --
    1.6.5.3


    \
     
     \ /
      Last update: 2010-02-10 18:25    [W:0.022 / U:29.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site