x86/domctl: further fix to XEN_DOMCTL_[gs]etvcpuextstate
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jun 2014 10:03:16 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Jun 2014 10:03:16 +0000 (12:03 +0200)
commit895661ae98f0249f50280b4acfb9dda70b76d7e9
tree3312054ffe32379aa2a231726bee1933bec44562
parent07884c98671a734f20f2ac8302032657d262f3c9
x86/domctl: further fix to XEN_DOMCTL_[gs]etvcpuextstate

Do not clobber errors from certain codepaths.  Clobbering of -EINVAL from
failing "evc->size <= PV_XSAVE_SIZE(_xcr0_accum)" was a pre-existing bug.

However, clobbering -EINVAL/-EFAULT from the get codepath was a bug
unintentionally introduced by 090ca8c1 "x86/domctl: two functional fixes to
XEN_DOMCTL_[gs]etvcpuextstate".

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c