Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8743217rwb; Thu, 24 Nov 2022 03:50:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf49Rly4diogSuZkkliKRjH8tSOCzU/RzEIW3w0m+PESL57eCGu4CgZE6VQ6KYShOO2J75Tz X-Received: by 2002:a05:6a00:1a14:b0:572:5be2:505b with SMTP id g20-20020a056a001a1400b005725be2505bmr13775468pfv.52.1669290621431; Thu, 24 Nov 2022 03:50:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669290621; cv=none; d=google.com; s=arc-20160816; b=fnuzHRz1NmdkM9asKOUFGRNxrxtl/l+AGhv88MqIo4eZSNlXrG+/McTBv/zPkdSuZX zhSRzO2KHLYv7ruzHOydBw+W89WBUc1FOvWx0WSqbRbzr8eIT5QUdUV89TNUwIjmLLXU DZekhFUS7ktYp3sYRngaTtHfe8wrnWMV6Qx/eaLWjzq8ZKw3gsqDKVxTDAeRG1qNIjO4 dWMlLvkj3yt9ZIifqUblvTf1ZjFUTi5Mvt67zetrPeH9wu6+4ZVg2sTJ0tPmCAirCGsF h7xth6Z82gio9w7Vx9/C1/kYbWfUvuthEq0Ue//njaZAdbNiYdkLBEKAZCEzGGhELrdz LH/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=meOlUg5MwMVHhaGR+idYAm5TqDEXqBJj0zANbpF8wbk=; b=vfSAszh1Lo+oBY70YSKZBNDaDcL5kWPzXMiVGG1xEHliFx2gM8TWC5xOo/+X76pWOP SWz2IXUIZ68qZ2VbSqWX4xdhPWPpANv2dnlkAI9vPn3vk7dokrP1xxT1iiCCLuwwgzYh /3GKVaETpodbp0hurMCxLRTFnByFB+BdR9w+H48AWzcf+idFSH2XZB1w+oKbS+GajnC0 e0zDDt7QpP9hdQThIOBygmZp3w1pcHHELXaxUmPje3wTNRSg+/DgjgvPXA1qwzcehJne O+5TMuAp5gW1oXgwFp5iQR+Uj5G26lp0vQW0dXquxm9RgYtD6I6y6BMrGRTfZgq4rVI5 TXVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SvswAlx1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q140-20020a632a92000000b00476e98ca7d5si1172448pgq.785.2022.11.24.03.50.09; Thu, 24 Nov 2022 03:50:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SvswAlx1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbiKXKrp (ORCPT + 86 others); Thu, 24 Nov 2022 05:47:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbiKXKrm (ORCPT ); Thu, 24 Nov 2022 05:47:42 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AE931647A9 for ; Thu, 24 Nov 2022 02:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669286803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=meOlUg5MwMVHhaGR+idYAm5TqDEXqBJj0zANbpF8wbk=; b=SvswAlx1GhLqE1a0gq9TVQKkmYZkJrxG8RttmdB868AwLKR9Ih/ZFMFTTaOOCOC+rstyZV /nIqlgpHIgOlTrj1nGfKHcKD9yzZQS/kFQxiFV3F9fAemCRg/vvkst5Y795hXOt5FLZL4j lPBBMKkIxIhfN8ovF5aafajRp4hCkC0= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-102-fxUXaI-POM2IOd5Fs3tYwA-1; Thu, 24 Nov 2022 05:46:42 -0500 X-MC-Unique: fxUXaI-POM2IOd5Fs3tYwA-1 Received: by mail-wm1-f70.google.com with SMTP id p14-20020a05600c204e00b003cf4cce4da5so491184wmg.0 for ; Thu, 24 Nov 2022 02:46:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=meOlUg5MwMVHhaGR+idYAm5TqDEXqBJj0zANbpF8wbk=; b=8RLxZ47RVvCeqA5qlXfD6jYUFcwtTEqf0JFmYYJ7MtaLmaxWrCWOQDaLFp67cQS/Oi dMI9EbpmRt2KKupRorrujQSfZBP36wibdeB3Fj5bC48rBYHjKHQoXtUsVYLqsDPyO/Fi DVc8+MNx6h41RNUQLT9nbpt9idmVxprjrLRQG+Fz6EmUD/ZeeXKafSRWCiuKoKgAq2O5 lSjcenlyYfWKDS5zthu5JXvVDiAe9dbLSvaUd6vMKepxE8gVf6yj3vCiuAFnovn1Xeki OwQ9qZhp5CF2KuPjy/bAdYRoeAJyBIppzSQlPXulcMMPbmyutdBKe2FNXIqB3bwbzXJB zplA== X-Gm-Message-State: ANoB5pl+/jcDbXWtf0wQimNkguUOVnkTMouXlTe18L/Aznlm3XCooOV6 K58e5yOEGZ3eQEr8RwYg+U48Nkf+BvFIVJ8tfxOK2GiWFdUv7/eOw39yPd0z025T0VmS2S+ZSq1 fQ27lDsshyqi2y8CWNzaqRw/m X-Received: by 2002:a5d:4ec7:0:b0:241:e27f:840e with SMTP id s7-20020a5d4ec7000000b00241e27f840emr7459989wrv.690.1669286801108; Thu, 24 Nov 2022 02:46:41 -0800 (PST) X-Received: by 2002:a5d:4ec7:0:b0:241:e27f:840e with SMTP id s7-20020a5d4ec7000000b00241e27f840emr7459977wrv.690.1669286800876; Thu, 24 Nov 2022 02:46:40 -0800 (PST) Received: from [192.168.0.5] (ip-109-43-177-190.web.vodafone.de. [109.43.177.190]) by smtp.gmail.com with ESMTPSA id n8-20020a05600c4f8800b003cfd64b6be1sm6445455wmq.27.2022.11.24.02.46.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Nov 2022 02:46:40 -0800 (PST) Message-ID: Date: Thu, 24 Nov 2022 11:46:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field Content-Language: en-US To: Janosch Frank , kvm@vger.kernel.org, Claudio Imbrenda Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Borntraeger , David Hildenbrand , "Collin L. Walling" , Jason J Herne References: <20221123090833.292938-1-thuth@redhat.com> <4d46020f-f33a-474c-b791-be11c2ce2aa6@linux.ibm.com> From: Thomas Huth In-Reply-To: <4d46020f-f33a-474c-b791-be11c2ce2aa6@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/11/2022 11.27, Janosch Frank wrote: > On 11/23/22 10:08, Thomas Huth wrote: >> 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: 8fa1696ea781 ("KVM: s390: Multiple Epoch Facility support") >> Signed-off-by: Thomas Huth > > Could you please add a test for this to the KVM unit tests? > I'd guess you might already have some code for it from your debugging sessions. I don't have some test code for this yet - I was only testing with the scenario that is described in the bugzilla ticket. But sure, I can have a try to come up with a k-u-t test. Thomas