Revert "arm64/arm: xen: enlighten: Fix KPTI checks"
This reverts commit 2836c72e8d which is
commit 20f3b8eafe0ba5d3c69d5011a9b07739e9645132 upstream.
It breaks the Android ABI and we do not care about Xen on Android, so it
is safe to revert.
Bug: 161946584
Change-Id: I4bf8a87650256a5f4b2faee626557604631ee286
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
55d4929d66
commit
c42877e34f
2 changed files with 9 additions and 17 deletions
|
|
@ -164,6 +164,9 @@ static int xen_starting_cpu(unsigned int cpu)
|
||||||
BUG_ON(err);
|
BUG_ON(err);
|
||||||
per_cpu(xen_vcpu, cpu) = vcpup;
|
per_cpu(xen_vcpu, cpu) = vcpup;
|
||||||
|
|
||||||
|
if (!xen_kernel_unmapped_at_usr())
|
||||||
|
xen_setup_runstate_info(cpu);
|
||||||
|
|
||||||
after_register_vcpu_info:
|
after_register_vcpu_info:
|
||||||
enable_percpu_irq(xen_events_irq, 0);
|
enable_percpu_irq(xen_events_irq, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -520,6 +523,9 @@ static int __init xen_guest_init(void)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!xen_kernel_unmapped_at_usr())
|
||||||
|
xen_time_setup_guest();
|
||||||
|
|
||||||
if (xen_initial_domain())
|
if (xen_initial_domain())
|
||||||
pvclock_gtod_register_notifier(&xen_pvclock_gtod_notifier);
|
pvclock_gtod_register_notifier(&xen_pvclock_gtod_notifier);
|
||||||
|
|
||||||
|
|
@ -529,13 +535,7 @@ static int __init xen_guest_init(void)
|
||||||
}
|
}
|
||||||
early_initcall(xen_guest_init);
|
early_initcall(xen_guest_init);
|
||||||
|
|
||||||
static int xen_starting_runstate_cpu(unsigned int cpu)
|
static int __init xen_pm_init(void)
|
||||||
{
|
|
||||||
xen_setup_runstate_info(cpu);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int __init xen_late_init(void)
|
|
||||||
{
|
{
|
||||||
if (!xen_domain())
|
if (!xen_domain())
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
@ -548,16 +548,9 @@ static int __init xen_late_init(void)
|
||||||
do_settimeofday64(&ts);
|
do_settimeofday64(&ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xen_kernel_unmapped_at_usr())
|
return 0;
|
||||||
return 0;
|
|
||||||
|
|
||||||
xen_time_setup_guest();
|
|
||||||
|
|
||||||
return cpuhp_setup_state(CPUHP_AP_ARM_XEN_RUNSTATE_STARTING,
|
|
||||||
"arm/xen_runstate:starting",
|
|
||||||
xen_starting_runstate_cpu, NULL);
|
|
||||||
}
|
}
|
||||||
late_initcall(xen_late_init);
|
late_initcall(xen_pm_init);
|
||||||
|
|
||||||
|
|
||||||
/* empty stubs */
|
/* empty stubs */
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,6 @@ enum cpuhp_state {
|
||||||
/* Must be the last timer callback */
|
/* Must be the last timer callback */
|
||||||
CPUHP_AP_DUMMY_TIMER_STARTING,
|
CPUHP_AP_DUMMY_TIMER_STARTING,
|
||||||
CPUHP_AP_ARM_XEN_STARTING,
|
CPUHP_AP_ARM_XEN_STARTING,
|
||||||
CPUHP_AP_ARM_XEN_RUNSTATE_STARTING,
|
|
||||||
CPUHP_AP_ARM_CORESIGHT_STARTING,
|
CPUHP_AP_ARM_CORESIGHT_STARTING,
|
||||||
CPUHP_AP_ARM_CORESIGHT_CTI_STARTING,
|
CPUHP_AP_ARM_CORESIGHT_CTI_STARTING,
|
||||||
CPUHP_AP_ARM64_ISNDEP_STARTING,
|
CPUHP_AP_ARM64_ISNDEP_STARTING,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue