This feature does clocksource work in interrupt context, which interoperates
badly with the DTrace probes there.
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
.notifier_call = kvm_pv_reboot_notify,
};
+#ifndef CONFIG_DTRACE
static u64 kvm_steal_clock(int cpu)
{
u64 steal;
return steal;
}
+#endif
void kvm_disable_steal_time(void)
{
if (kvm_para_has_feature(KVM_FEATURE_ASYNC_PF))
x86_init.irqs.trap_init = kvm_apf_trap_init;
+#ifndef CONFIG_DTRACE
if (kvm_para_has_feature(KVM_FEATURE_STEAL_TIME)) {
has_steal_clock = 1;
pv_time_ops.steal_clock = kvm_steal_clock;
}
+#endif
if (kvm_para_has_feature(KVM_FEATURE_PV_EOI))
apic_set_eoi_write(kvm_guest_apic_eoi_write);