[PATCH v2] KVM: x86: Fix potential preemption when get the current kvmclock timestamp

2017-05-11 Thread Wanpeng Li
From: Wanpeng Li BUG: using __this_cpu_read() in preemptible [] code: qemu-system-x86/2809 caller is __this_cpu_preempt_check+0x13/0x20 CPU: 2 PID: 2809 Comm: qemu-system-x86 Not tainted 4.11.0+ #13 Call Trace: dump_stack+0x99/0xce

[PATCH v2] KVM: x86: Fix potential preemption when get the current kvmclock timestamp

2017-05-11 Thread Wanpeng Li
From: Wanpeng Li BUG: using __this_cpu_read() in preemptible [] code: qemu-system-x86/2809 caller is __this_cpu_preempt_check+0x13/0x20 CPU: 2 PID: 2809 Comm: qemu-system-x86 Not tainted 4.11.0+ #13 Call Trace: dump_stack+0x99/0xce check_preemption_disabled+0xf5/0x100