x86/HVM: memset CPU context save area
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 19 Jan 2016 17:47:19 +0000 (17:47 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 19 Jan 2016 18:33:02 +0000 (18:33 +0000)
commit1949868d640427dc91bfb23741d78eb1d86841c8
tree0e35f04494a204ba0ff07cfe7ecb7eb597db1f68
parentef17887d848dae0ca46231b47bf30d3c1d4aa87d
x86/HVM: memset CPU context save area

In order to prevent leaking data in the padding field. Also remove the
memset done to the fpu_regs in case of no FPU context present, since it's
already taken care by the memset of the whole CPU context structure. The
same applies to setting ctxt.flags to 0 in case there's no FPU context.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c