parlib: vmm: Allow VM uthreads to have no FP state
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 13 Sep 2017 19:56:06 +0000 (15:56 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 14 Sep 2017 20:37:58 +0000 (16:37 -0400)
commit462ef04f1cc82bd27815819f8a69c3263ddae7e6
treed0d20d471750a0e137c46b576f400003cb9d3e9c
parent1eef0ace8fa2da1139b780040a886ec93d78b971
parlib: vmm: Allow VM uthreads to have no FP state

This is for freshly created or reinitialized guest_threads.  They will run
with whatever the current vcore's FP state was.  We were basically doing
that already.

If we really need VM threads to have no FP state, we can add a helper to
zero the FP state (e.g. set the xstate_bv bits to 0 on x86).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/uthread.c
user/vmm/sched.c