mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
x86: Raise vsyscall priority on hotplug notifier chain
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>
This commit is contained in:
parent
2bf78fa7b9
commit
be43f83dad
1 changed files with 2 additions and 1 deletions
|
@ -301,7 +301,8 @@ static int __init vsyscall_init(void)
|
||||||
register_sysctl_table(kernel_root_table2);
|
register_sysctl_table(kernel_root_table2);
|
||||||
#endif
|
#endif
|
||||||
on_each_cpu(cpu_vsyscall_init, NULL, 1);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue