linux/arch/s390
David Hildenbrand 0e7def5fb0 KVM: s390: provide only a single function for setting the tod (fix SCK)
Right now, SET CLOCK called in the guest does not properly take care of
the epoch index, as the call goes via the old kvm_s390_set_tod_clock()
interface. So the epoch index is neither reset to 0, if required, nor
properly set to e.g. 0xff on negative values.

Fix this by providing a single kvm_s390_set_tod_clock() function. Move
Multiple-epoch facility handling into it.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180207114647.6220-3-david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Fixes: 8fa1696ea7 ("KVM: s390: Multiple Epoch Facility support")
Cc: stable@vger.kernel.org
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2018-02-20 20:51:28 +00:00
..
appldata
boot s390/decompressor: discard __ksymtab and .eh_frame sections 2018-01-23 07:36:54 +01:00
configs firmware: Drop FIRMWARE_IN_KERNEL Kconfig option 2018-01-25 12:46:30 +01:00
crypto
hypfs
include KVM changes for 4.16 2018-02-10 13:16:35 -08:00
kernel s390: introduce execute-trampolines for branches 2018-02-07 15:57:02 +01:00
kvm KVM: s390: provide only a single function for setting the tod (fix SCK) 2018-02-20 20:51:28 +00:00
lib
mm KVM changes for 4.16 2018-02-10 13:16:35 -08:00
net bpf, s390x: remove obsolete exception handling from div/mod 2018-01-26 16:42:06 -08:00
numa
oprofile
pci
tools s390/tools: generate header files in arch/s390/include/generated/ 2018-01-23 07:36:53 +01:00
Kbuild
Kconfig s390/kconfig: Remove ARCH_WANTS_PROT_NUMA_PROT_NONE select 2018-02-08 07:07:44 +01:00
Kconfig.debug
Makefile s390: introduce execute-trampolines for branches 2018-02-07 15:57:02 +01:00
defconfig