x86/xsaves: fix two miscellaneous issues
authorShuai Ruan <shuai.ruan@intel.com>
Thu, 7 Apr 2016 22:04:13 +0000 (00:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2016 22:04:13 +0000 (00:04 +0200)
commit6b5e0bc7e4ff9e6a8124357d1318259f1cf78b46
tree62d1aed5d3a5e78f9b7e9a52e7e8f63367be9966
parentd5bdea59e789662071017ff119f99cd55a4a6425
x86/xsaves: fix two miscellaneous issues

1. get_xsave_addr() will only be called when
xsave_area_compressed(xsave) is true. So drop the
conditional expression.

2. expand_xsave_states() will memset the area when
get NULL from get_xsave_addr().

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Shuai Ruan <shuai.ruan@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/xstate.c