linux-stable/arch/s390
Thomas Huth b8419d16f4 KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field
commit 0dd4cdccda upstream.

We recently experienced some weird huge time jumps in nested guests when
rebooting them in certain cases. After adding some debug code to the epoch
handling in vsie.c (thanks to David Hildenbrand for the idea!), it was
obvious that the "epdx" field (the multi-epoch extension) did not get set
to 0xff in case the "epoch" field was negative.
Seems like the code misses to copy the value from the epdx field from
the guest to the shadow control block. By doing so, the weird time
jumps are gone in our scenarios.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2140899
Fixes: 8fa1696ea7 ("KVM: s390: Multiple Epoch Facility support")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Cc: stable@vger.kernel.org # 4.19+
Link: https://lore.kernel.org/r/20221123090833.292938-1-thuth@redhat.com
Message-Id: <20221123090833.292938-1-thuth@redhat.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-14 11:30:43 +01:00
..
appldata
boot s390/boot: fix use of expolines in the DMA code 2021-07-28 13:30:58 +02:00
configs locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00
crypto s390/archrandom: simplify back to earlier design and initialize earlier 2022-07-07 17:36:48 +02:00
hypfs s390/hypfs: avoid error message under KVM 2022-09-05 10:27:47 +02:00
include s390/futex: add missing EX_TABLE entry to __futex_atomic_op() 2022-11-03 23:56:54 +09:00
kernel s390/crashdump: fix TOD programmable field size 2022-12-08 11:22:59 +01:00
kvm KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field 2022-12-14 11:30:43 +01:00
lib s390: fix strrchr() implementation 2021-10-20 11:40:12 +02:00
mm s390/mm: do not trigger write fault when vma does not allow VM_WRITE 2022-09-05 10:27:44 +02:00
net bpf, s390: Fix potential memory leak about jit_data 2021-10-13 10:08:20 +02:00
numa s390/numa: set node distance to LOCAL_DISTANCE 2020-09-03 11:26:50 +02:00
oprofile
pci s390/pci: add missing EX_TABLE entries to __pcistg_mio_inuser()/__pcilg_mio_inuser() 2022-11-03 23:56:54 +09:00
purgatory s390/kexec_file: fix diag308 subcode when loading crash kernel 2020-12-30 11:51:34 +01:00
scripts
tools
Kbuild
Kconfig s390: remove unneeded 'select BUILD_BIN2C' 2022-07-07 17:36:49 +02:00
Kconfig.debug
Makefile s390: disable -Warray-bounds 2022-05-18 09:47:26 +02:00