|
@@ -457,7 +457,7 @@ static void __init sev_map_percpu_data(void)
|
|
static void __init kvm_smp_prepare_cpus(unsigned int max_cpus)
|
|
static void __init kvm_smp_prepare_cpus(unsigned int max_cpus)
|
|
{
|
|
{
|
|
native_smp_prepare_cpus(max_cpus);
|
|
native_smp_prepare_cpus(max_cpus);
|
|
- if (kvm_para_has_hint(KVM_HINTS_DEDICATED))
|
|
|
|
|
|
+ if (kvm_para_has_hint(KVM_HINTS_REALTIME))
|
|
static_branch_disable(&virt_spin_lock_key);
|
|
static_branch_disable(&virt_spin_lock_key);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -553,7 +553,7 @@ static void __init kvm_guest_init(void)
|
|
}
|
|
}
|
|
|
|
|
|
if (kvm_para_has_feature(KVM_FEATURE_PV_TLB_FLUSH) &&
|
|
if (kvm_para_has_feature(KVM_FEATURE_PV_TLB_FLUSH) &&
|
|
- !kvm_para_has_hint(KVM_HINTS_DEDICATED) &&
|
|
|
|
|
|
+ !kvm_para_has_hint(KVM_HINTS_REALTIME) &&
|
|
kvm_para_has_feature(KVM_FEATURE_STEAL_TIME))
|
|
kvm_para_has_feature(KVM_FEATURE_STEAL_TIME))
|
|
pv_mmu_ops.flush_tlb_others = kvm_flush_tlb_others;
|
|
pv_mmu_ops.flush_tlb_others = kvm_flush_tlb_others;
|
|
|
|
|
|
@@ -649,7 +649,7 @@ static __init int kvm_setup_pv_tlb_flush(void)
|
|
int cpu;
|
|
int cpu;
|
|
|
|
|
|
if (kvm_para_has_feature(KVM_FEATURE_PV_TLB_FLUSH) &&
|
|
if (kvm_para_has_feature(KVM_FEATURE_PV_TLB_FLUSH) &&
|
|
- !kvm_para_has_hint(KVM_HINTS_DEDICATED) &&
|
|
|
|
|
|
+ !kvm_para_has_hint(KVM_HINTS_REALTIME) &&
|
|
kvm_para_has_feature(KVM_FEATURE_STEAL_TIME)) {
|
|
kvm_para_has_feature(KVM_FEATURE_STEAL_TIME)) {
|
|
for_each_possible_cpu(cpu) {
|
|
for_each_possible_cpu(cpu) {
|
|
zalloc_cpumask_var_node(per_cpu_ptr(&__pv_tlb_mask, cpu),
|
|
zalloc_cpumask_var_node(per_cpu_ptr(&__pv_tlb_mask, cpu),
|
|
@@ -745,7 +745,7 @@ void __init kvm_spinlock_init(void)
|
|
if (!kvm_para_has_feature(KVM_FEATURE_PV_UNHALT))
|
|
if (!kvm_para_has_feature(KVM_FEATURE_PV_UNHALT))
|
|
return;
|
|
return;
|
|
|
|
|
|
- if (kvm_para_has_hint(KVM_HINTS_DEDICATED))
|
|
|
|
|
|
+ if (kvm_para_has_hint(KVM_HINTS_REALTIME))
|
|
return;
|
|
return;
|
|
|
|
|
|
__pv_init_lock_hash();
|
|
__pv_init_lock_hash();
|