Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2509750rdb; Sun, 3 Dec 2023 21:52:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFe+mJVN5ttDRu99BBBg4vGHv/WelIsGNr0NZeqDaI0b6qVOB7Tj2RW2J3yRSlCnHMGFcip X-Received: by 2002:a05:6358:5304:b0:170:2e7f:bb98 with SMTP id n4-20020a056358530400b001702e7fbb98mr1316328rwf.55.1701669129052; Sun, 03 Dec 2023 21:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701669129; cv=none; d=google.com; s=arc-20160816; b=tWBdB8sL0gW34X5N0LdJxQvcN7BIn9hLhimqae2kDNXUfnOWjaCcOQK0AwdJYYXYUF wBDGFsIBYGeQ5q34tYaEeWbvv32jpxxRkxs7SQfruO9snO/hrNDcO6MFnKYjFlx93cyJ QFJAd7NXKTg+7Y1WqkfU2TXDWaAy0pNTcHBHE184Cb2fMzkLrXr73g/Gs0DgTITeOPlW r+vN95B8Pq/+ngQH9kEPDGsWttyWCjXRzXtVZsOjW8y3i1aa6bL5E8Dxy2DoGfQINSvu CAx9yDcXo+v+ofB1O0FRRe6W1hNPzDmWEtDBTpj0+k5jbuoA29SEwik+y+H1ciLIvIuS wwvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=v5NL1uLbK1sraymfKNrOvxe7Sa8n3LFnFTQyyc1u0ww=; fh=OIMg3nRJQCEZVrhfdPfK2GwSHGWK4T5ZSx1QgUGXlLs=; b=vv/X+/BELBAwLc362XsOfOoM3lvc1oW0eQMctJDpYt7eycz+OLMUdsC3/22/SG+gwu LzyFahP00dapHuLUPKadS1KKinwaEJ4Q2/LkmyVBmeTyvKMsC3KLsBZOFS641GdLvvyh FtwHbgMUUOsYaNdvs2WjUKyFG1GnFZiAF3bs/vsMiUsGVeDlB7Ee2eHw+8a8TA4SbCaW YvXrgOScZf+h6NlLudOROjYV+tp3jqEJhzVwqsl6WG4S7kYW8xNuq2xTkqzg2IQG+uL6 0tbi/MAGUf+gOxl06acggTRGKJfDc0wGGhg/NwCjM71xDrRN6Ip81u4FXJil5TiV7Ri4 lPUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x8-20020a170902ec8800b001ce5b8c95b0si3807189plg.479.2023.12.03.21.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 21:52:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 76FBE808EDE6; Sun, 3 Dec 2023 21:52:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjLDFvp (ORCPT + 99 others); Mon, 4 Dec 2023 00:51:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDFvo (ORCPT ); Mon, 4 Dec 2023 00:51:44 -0500 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0394995; Sun, 3 Dec 2023 21:51:51 -0800 (PST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1d06fffdb65so5728555ad.2; Sun, 03 Dec 2023 21:51:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701669110; x=1702273910; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v5NL1uLbK1sraymfKNrOvxe7Sa8n3LFnFTQyyc1u0ww=; b=KO+gOA5dj+q71tdMLaHnSwE29D1XAGoUpfr2dOQy0N+1ooVDQLd1S8Qn0mjRHLSAVM auWKG3+nvR0zmu7JBMlK3Jr/9b9Vgrsh/E3FAunzOnQd1Fesa4EDJqPoSHzh9SEW8dnI 97VSyvRhf8QNzul5cOFwDf2viIyd2jXQd6CnBseLRdPTdDyPjBkdDot7aFOh9pdAxG4n qUMsbcRfAMO/UcoDKt1nJWwYsEdtnX3dyD2YlEGUxpiwF7b0NKKKFZEOSbGTkWZdztPQ QII7mMN/j5kC7En1TG3N7WuIHqzBA0UpAafpb5angjUGYonoiHIeEHXhmwqC1c6fGXBJ dz1w== X-Gm-Message-State: AOJu0YxD0jS8zG7SAm1uUVmXcamNC1jvYxxfmMuIM1zG8D1J0rNEBChL Xs2j9IddfMMlMhsjUwsS0RY= X-Received: by 2002:a17:902:eac2:b0:1d0:6ffd:6e91 with SMTP id p2-20020a170902eac200b001d06ffd6e91mr1132480pld.137.1701669110354; Sun, 03 Dec 2023 21:51:50 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id n7-20020a170902d2c700b001cc52ca2dfbsm7534147plc.120.2023.12.03.21.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 21:51:49 -0800 (PST) Date: Mon, 4 Dec 2023 05:51:48 +0000 From: Wei Liu To: Boqun Feng Cc: pmartincic@linux.microsoft.com, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] hv_utils: Allow implicit ICTIMESYNCFLAG_SYNC Message-ID: References: <20231127213524.52783-1-pmartincic@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,TVD_PH_BODY_ACCOUNTS_PRE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 03 Dec 2023 21:52:06 -0800 (PST) On Thu, Nov 30, 2023 at 11:16:43AM -0800, Boqun Feng wrote: > On Mon, Nov 27, 2023 at 01:35:24PM -0800, pmartincic@linux.microsoft.com wrote: > > From: Peter Martincic > > > > Hyper-V hosts can omit the _SYNC flag to due a bug on resume from modern > > suspend. In such a case, the guest may fail to update its time-of-day to > > account for the period when it was suspended, and could proceed with a > > significantly wrong time-of-day. In such a case when the guest is > > significantly behind, fix it by treating a _SAMPLE the same as if _SYNC > > was received so that the guest time-of-day is updated. > > > > This is hidden behind param hv_utils.timesync_implicit. > > > > Signed-off-by: Peter Martincic > > Looks good to me. > > Acked-by: Boqun Feng Applied to hyperv-fixes, thanks!