Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit e5c30142 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Initialize fpu state in preemptible context


init_fpu() (which is indirectly called by the fpu switching code) assumes
it is in process context.  Rather than makeing init_fpu() use an atomic
allocation, which can cause a task to be killed, make sure the fpu is
already initialized when we enter the run loop.

KVM-Stable-Tag.
Reported-and-tested-by: default avatarKirill A. Shutemov <kas@openvz.org>
Acked-by: default avatarPekka Enberg <penberg@kernel.org>
Reviewed-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 444e863d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment