Skip to content

Commit cf7c007

Browse files
author
Herton R. Krzesinski
committed
Merge: Fix a problem with the time handling of nested KVM guests
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1750 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2140899 Nested guests on s390x encounter a mixed up system time in some cases (like rebooting or after migration of the host KVM guest). This patch fixes the problem. Signed-off-by: Thomas Huth <thuth@redhat.com> Approved-by: Cédric Le Goater <clg@redhat.com> Approved-by: David Hildenbrand <david@redhat.com> Approved-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 8e40db6 + 7ae5eec commit cf7c007

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/s390/kvm/vsie.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,10 @@ static int shadow_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
546546
if (test_kvm_cpu_feat(vcpu->kvm, KVM_S390_VM_CPU_FEAT_CEI))
547547
scb_s->eca |= scb_o->eca & ECA_CEI;
548548
/* Epoch Extension */
549-
if (test_kvm_facility(vcpu->kvm, 139))
549+
if (test_kvm_facility(vcpu->kvm, 139)) {
550550
scb_s->ecd |= scb_o->ecd & ECD_MEF;
551+
scb_s->epdx = scb_o->epdx;
552+
}
551553

552554
/* etoken */
553555
if (test_kvm_facility(vcpu->kvm, 156))

0 commit comments

Comments
 (0)