From nobody Fri Apr 26 10:36:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1602872345; cv=none; d=zohomail.com; s=zohoarc; b=YtlmnyNIEWTxMDVT4MZMiclk88YiOCVtSZ30iNuVCPXiQuCUyBXCVERTpyWEnihQus/LvtX/6AF7PdtBwMiS95QZAf+AutijTRotTNFf2L2kaYrKE0Jox5Yt8tWV4bUo+l2TzeB1/4HCskKDcTsS4talAJHtzAZY2Yr6fVwld9U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602872345; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=HPyU4rDr+D3ZXTtWQApy+lKEHEgGby2Y7jRCHdEckys=; b=k/lDAmx9ytosw6SJm0ljeHb4x/QnW1x+KtvM25wkf4gvf4h9AKxGIq1M0QLa6T8kWWF17dI/vCkF8/35p7Ae8ctH23qIIsU/KublXCmtngGZYGKpv4Afu2sv2XCfhOlyaRrhTAhsK0xoBzUXUUMsusjPe9MF++2Bp4zrpQBwSGc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602872345314956.9444849070242; Fri, 16 Oct 2020 11:19:05 -0700 (PDT) Received: from localhost ([::1]:60694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTUJk-0005EO-5r for importer@patchew.org; Fri, 16 Oct 2020 14:19:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTUGt-0004H0-72; Fri, 16 Oct 2020 14:16:07 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:51811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTUGl-0007Bf-H5; Fri, 16 Oct 2020 14:16:06 -0400 Received: from localhost.localdomain ([82.252.141.186]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MRC3Y-1kqXQJ2xd6-00N9wz; Fri, 16 Oct 2020 20:15:51 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PATCH] goldfish_rtc: re-arm the alarm after migration Date: Fri, 16 Oct 2020 20:15:48 +0200 Message-Id: <20201016181548.1096112-1-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:s/iqftZ7tir8IDxhMcA7EMpvwSV2Jk89v0PYGwhqS9p32nbGIHX CldMaA7/q50d7U6LfEL93+bD8tNwM6YxKBNDlFfVusX8rHyqUykuIX50FEIbs1AadBVnX/q lPVDceO2YFHmUKGMMY0o2jmbOIAtJ3eTHIehR5AMHHA2lyYgrdERzwPasTgm4rkv+0+WPbi FL9Lm0xTMPf8EpSFvADAA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Dnf7TBKgIVA=:QM4YmSH95VIvPFu8iVXnsn I1C5WZ1y4CCv9dhZW0owpsDgB5oKLibhJ3MYBR9kZO9RAXxv4dD8wGEdxQUm474v470TPJ+It 4SV1qe71BsWKDunHQmh2aY8PRkm7xP30N0ONSg709Ymf7gXxnix5GGgpNsTsRXEzOhHZ2GENL jmABmuMSnAoLKlpu+Ll+Fa22wg34M8Td5+DOIuE+0xXe8G2s2gbtXoLwzcF+ABxve55TX2gG0 XFSKV5BOM8ySnhko1WZPY7GhJ0LETn05+Pg2pbalZI1NuDw+eDfSQYcIaOL8O6ek8OAGKoTiG mFenmBO39/HiiDq805On3xbuDbRVUSIw09brwBcfnQt1KFxY2lMRHT5UTEWd1HxdT8iwRfv1t EWhF1uYO/xm+uEDImBf8f9kSlJB+LixVcOiH5ry8WjF5KS+ISFKML/NplfcUz Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=212.227.126.130; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/16 14:15:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alistair Francis , Anup Patel , qemu-riscv@nongnu.org, Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" After a migration the clock offset is updated, but we also need to re-arm the alarm if needed. Signed-off-by: Laurent Vivier Reviewed-by: Alistair Francis --- hw/rtc/goldfish_rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/rtc/goldfish_rtc.c b/hw/rtc/goldfish_rtc.c index 0f4e8185a796..e07ff0164e0c 100644 --- a/hw/rtc/goldfish_rtc.c +++ b/hw/rtc/goldfish_rtc.c @@ -211,6 +211,8 @@ static int goldfish_rtc_post_load(void *opaque, int ver= sion_id) qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); s->tick_offset =3D s->tick_offset_vmstate - delta; =20 + goldfish_rtc_set_alarm(s); + return 0; } =20 --=20 2.26.2