Re: [PATCH] KVM: X86: Fix softlockup when get the current kvmclock timestamp

From: Paolo Bonzini
Date: Mon Nov 06 2017 - 04:30:02 EST


On 06/11/2017 01:55, Wanpeng Li wrote:
> This can be reproduced when running kvm-unit-tests/hyperv_stimer.flat and
> cpu-hotplug stress simultaneously. kvm_get_time_scale() takes too long which
> results in softlockup.

Apart from the pr_debug, kvm_get_time_scale should take less than a
microsecond. The patch is fine, but can you confirm that pr_debug is
the culprit?

Thanks,

Paolo