linux-stable/arch/s390/kvm
Thomas Huth 0dd4cdccda KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field
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>
2022-11-24 14:43:17 +01:00
..
diag.c KVM: s390: restore old debugfs names 2021-07-27 16:59:00 -04:00
gaccess.c KVM: s390: Pass initialized arg even if unused 2022-09-21 16:18:35 +02:00
gaccess.h KVM: s390: Cleanup ipte lock access and SIIF facility checks 2022-07-20 10:57:36 +02:00
guestdbg.c KVM: s390: Add memcg accounting to KVM allocations 2020-12-10 13:36:05 +01:00
intercept.c KVM: s390: pv: don't present the ecall interrupt twice 2022-07-19 15:48:14 +02:00
interrupt.c KVM: s390: pci: fix GAIT physical vs virtual pointers usage 2022-09-21 16:18:38 +02:00
irq.h KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
Kconfig KVM: s390: pv: add mmu_notifier 2022-07-19 12:05:57 +00:00
kvm-s390.c KVM: s390: pv: don't allow userspace to set the clock under PV 2022-11-07 10:14:15 +01:00
kvm-s390.h KVM: s390: pv: don't allow userspace to set the clock under PV 2022-11-07 10:14:15 +01:00
Makefile KVM: s390: pci: add basic kvm_zdev structure 2022-07-11 09:54:27 +02:00
pci.c KVM: s390: pci: Fix allocation size of aift kzdev elements 2022-11-07 10:14:15 +01:00
pci.h KVM: s390: pci: fix plain integer as NULL pointer warnings 2022-09-21 16:18:30 +02:00
priv.c KVM: s390: guest support for topology function 2022-07-20 10:57:36 +02:00
pv.c KVM: s390: pv: destroy the configuration before its memory 2022-07-19 12:06:56 +00:00
sigp.c KVM: s390: pv: don't present the ecall interrupt twice 2022-07-19 15:48:14 +02:00
trace-s390.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vsie.c KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field 2022-11-24 14:43:17 +01:00