From patchwork Tue Jul 28 14:10:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 247224 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp567162ilg; Tue, 28 Jul 2020 07:10:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5YI8MupIc6UUuDKgkH9ipkvc072eopHGlmoPaDO0O7scpa6D2KQKw/MrJ9ZUX/JCT3atr X-Received: by 2002:ab0:2ea2:: with SMTP id y2mr11088464uay.15.1595945453790; Tue, 28 Jul 2020 07:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595945453; cv=none; d=google.com; s=arc-20160816; b=A7h7bQlfx/VxVFO68pO1/KZ4qB7hjKMWKybd4PfN99SU6TubUrh7TmGfVsS28rcDn6 xbvpX4YbMo+EUb0c4h5la4Eoxw7+9QFIOPmlqepCk5xJvZVQw2zB2EblZxdBlIM054Fr 2HSw4VZONSQ4U7N+vD+pSgKXUdW0ER/EW/hxNDKeTZ3LJcWf7NaIbyU8enazWl9PFJ8A ZPteZgWGSxyYksncyJyScgu5K1A4BHlRDVyWsoLDRFpfoBBhPT6NZvSK5GBfJ6k8Blx4 sQ5efCJYrsRncfp4WuAse/7ZXiaD7NZFO2nY6JBpsQz8WmkrGVEkLcuirPvTqg+e5OMh PyGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=mieuf+1PukrvwRDyhtVFpcwgK95FDOLp9Ls77LBQOUQ=; b=hnQu/giWdCaIpwgbYYkBfGSW00125saTEQSbinM/XndXZsRcQP2mRnDn99zHXIqFXD oZFO9N6McjInAOQM6ikFuUrc8XHetoJ8ev12oWFIvx0reRBrA+cZ6eEZyWBiU4Z8trX7 8Fs6gazx1tTWJ1S6WfMojb0a0geOvX3ohloCgPX9ZDny54WAbNfTRoI5mNdkAF5alEJr TFM+kotlc0fYZDB29p7f1FLrDGltPNPeLZjYWzXcPbky0rUNxjSfUyIkLcpyRQMIgTE6 6OjWJmjIKdEnRWkXQeDGuvy1mjKR2phRh18c1CT1eyaufGlMDrpIl8pvZFY851vV5Ptk F6Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nPwAE26+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u10si1399931vsi.235.2020.07.28.07.10.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jul 2020 07:10:53 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nPwAE26+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0QJh-0003Ia-6a for patch@linaro.org; Tue, 28 Jul 2020 10:10:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0QJ1-0003Hd-JR for qemu-devel@nongnu.org; Tue, 28 Jul 2020 10:10:11 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:35788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0QIz-0006cl-Lq for qemu-devel@nongnu.org; Tue, 28 Jul 2020 10:10:11 -0400 Received: by mail-wr1-x442.google.com with SMTP id f1so17892824wro.2 for ; Tue, 28 Jul 2020 07:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mieuf+1PukrvwRDyhtVFpcwgK95FDOLp9Ls77LBQOUQ=; b=nPwAE26+SYhlQIxItHEm0iPaMvSlMI/5lcceyKkQo6kNW62SBzxvnnYkCgJfX69l1d VMSwvMENyzBL2zNnrxUauffXbEH063TNSx6zf/ZTx2fPbsfBcwbKIV1QrKr4O6D9AstR 3wXvFHW/OZZx9EuWJENCs3tJ0XqdfzC4kugRF98wgpTNwQpoUeeTonEgg6PW904V1mpP 6w1owI0IrnCAzCZin/YoULx2KKP5+okYvQBfj3jjETUszV2AjSd71eVpB/QpXSR0Uoci NDoacniS6xs7ZCXfH91SmnwBNoz3AhuzzH7V5H/TnKYjOVTWbX7noCsCpU8/xgeBKPrV XewQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mieuf+1PukrvwRDyhtVFpcwgK95FDOLp9Ls77LBQOUQ=; b=a13cApo/TDUKhFhhcclChtEgFSTrz+urCVaN+NmzUg0whzK9YKJ7R3b5CNQxlrSIFo 1gI41cDOnIoxn15f2s7Um0bF6xcYJLhEOatwx98XrkCtm7KiPM7GRO0YfbZmeKyVpXW7 Ztr3roVeni5VJ0a5rv4eagTG3KrCFMdqao/U79nQ9Jwx1YBkfWSAJYDVCo931gvImKGS U4jEh41qPsCj4nJKuAIAJwuusBbksFPs7N1uyMmBJOrsgfhgbRE7rvq7j09IoPTOE2Mv +fh7i9oBYf7Ef9pnCJIk//h65VDOMNAay3R7YCRpj6N6ghWZoTmRhjeOcTpKmfPI1ORl WsRA== X-Gm-Message-State: AOAM53281SlBFohzehKOFD3gOcoWHd6jrkAKm7dwE2QCycmB1bLkM5tX pKbfiRpf1mhqQ99K4OYITCYBHQ== X-Received: by 2002:a5d:4d8b:: with SMTP id b11mr25378555wru.341.1595945407373; Tue, 28 Jul 2020 07:10:07 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b8sm17393054wrv.4.2020.07.28.07.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 07:10:06 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 724EB1FF7E; Tue, 28 Jul 2020 15:10:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 0/2] clean-ups for sleep=off behaviour Date: Tue, 28 Jul 2020 15:10:03 +0100 Message-Id: <20200728141005.28664-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: pavel.dovgaluk@ispras.ru, pbonzini@redhat.com, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , boost.lists@gmail.com, victor.clement@openwide.fr Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, These fixes are more band-aids than anything else but they at least improve on the original situation where running a zephyr build with: -icount shift=6,align=off,sleep=off would lock the monitor hard as time rushed into the future. With these patches time still runs to the future pretty fast as Zephyr spends most of it's time in WFI waiting for input with a CVAL far in the future. This does does raise the question of what sleep=off is even for? Alex Bennée (2): qemu-timer: gracefully handle the end of time target/arm: only set the nexttick timer if !ISTATUS include/sysemu/cpus.h | 2 ++ softmmu/cpus.c | 13 +++++++++++++ target/arm/helper.c | 35 ++++++++++++++++++++++------------- util/qemu-timer.c | 16 ++++++++++++++++ stubs/Makefile.objs | 1 + 5 files changed, 54 insertions(+), 13 deletions(-) -- 2.20.1