WSL2-Linux-Kernel/arch/s390
Thomas Huth f6550976fe 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:37:20 +01:00
..
appldata
boot s390/boot: add secure boot trailer 2022-11-10 18:15:32 +01:00
configs
crypto s390/archrandom: simplify back to earlier design and initialize earlier 2022-07-07 17:53:24 +02:00
hypfs s390/hypfs: avoid error message under KVM 2022-09-05 10:30:11 +02:00
include s390/futex: add missing EX_TABLE entry to __futex_atomic_op() 2022-11-03 23:59:13 +09:00
kernel s390/crashdump: fix TOD programmable field size 2022-12-02 17:41:07 +01:00
kvm KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field 2022-12-14 11:37:20 +01:00
lib s390/uaccess: add missing EX_TABLE entries to __clear_user() 2022-11-10 18:15:32 +01:00
mm s390/mm: do not trigger write fault when vma does not allow VM_WRITE 2022-08-31 17:16:48 +02:00
net
pci s390/pci: add missing EX_TABLE entries to __pcistg_mio_inuser()/__pcilg_mio_inuser() 2022-11-03 23:59:13 +09:00
purgatory
tools
Kbuild
Kconfig s390: remove unneeded 'select BUILD_BIN2C' 2022-07-07 17:53:27 +02:00
Kconfig.debug
Makefile s390: disable -Warray-bounds 2022-05-18 10:26:52 +02:00