Searched hist:"96 b2d7a83a27fbae10fc57c39577a7e2689d9f0a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/s390/kvm/ |
H A D | kvm-s390.c | diff 96b2d7a83a27fbae10fc57c39577a7e2689d9f0a Fri Jun 12 06:53:51 CDT 2015 Hendrik Brueckner <brueckner@linux.vnet.ibm.com> s390/kvm: validate the floating-point control before restoring it
The kvm_arch_vcpu_load() does not validate whether the floating-point control (FPC) is valid. Further, the return code of the restore is not checked too. If the FPC is invalid, the restore fails and the host FPC value might remain. The correct behavior would be to clear the FPC if it is not valid. Hence, validate the FPC value and, optionally, reset the value before restoring it.
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
|