Message ID | 20231211122322.15815-1-julien@xen.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <xen-devel-bounces@lists.xenproject.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9C9BC10DC3 for <xen-devel@archiver.kernel.org>; Mon, 11 Dec 2023 12:23:45 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.651730.1017504 (Exim 4.92) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1rCfJn-0005DX-Ld; Mon, 11 Dec 2023 12:23:27 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 651730.1017504; Mon, 11 Dec 2023 12:23:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1rCfJn-0005DQ-J4; Mon, 11 Dec 2023 12:23:27 +0000 Received: by outflank-mailman (input) for mailman id 651730; Mon, 11 Dec 2023 12:23:27 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from <julien@xen.org>) id 1rCfJn-0005DK-4A for xen-devel@lists.xenproject.org; Mon, 11 Dec 2023 12:23:27 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from <julien@xen.org>) id 1rCfJm-0003o9-Qw; Mon, 11 Dec 2023 12:23:26 +0000 Received: from 54-240-197-224.amazon.com ([54.240.197.224] helo=dev-dsk-jgrall-1b-035652ec.eu-west-1.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <julien@xen.org>) id 1rCfJm-0001JH-Hf; Mon, 11 Dec 2023 12:23:26 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From; bh=VZihDxXJcQXw/hVFKaFFEWZPmpJDY0TUUrOHUUSzBqI=; b=XJseB+ 9gSs84X1OTTObBDA2qghqP5DtQEC3STQ+Vk9t2gBWuGn9RdmmiyJuNlqBO5eCSCCwAnw6m0KXcPyM fCghblGF4aqLnDxFNr41D9lDaI7Tyw4GhA52VmuMKjWc1zFqlivFz8j3jigVIBZBne2rHZD7RRkaA BEDPcNcGcdU=; From: Julien Grall <julien@xen.org> To: xen-devel@lists.xenproject.org Cc: julien@xen.org, Julien Grall <jgrall@amazon.com>, Andrew Cooper <andrew.cooper3@citrix.com>, George Dunlap <george.dunlap@citrix.com>, Jan Beulich <jbeulich@suse.com>, Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>, =?utf-8?q?Roger_Pau_Monn=C3=A9?= <roger.pau@citrix.com> Subject: [PATCH v2 0/2] xen/x86: Optimize timer_irq_works() Date: Mon, 11 Dec 2023 12:23:20 +0000 Message-Id: <20231211122322.15815-1-julien@xen.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
xen/x86: Optimize timer_irq_works()
|
expand
|
From: Julien Grall <jgrall@amazon.com> Hi all, At the moment timer_irq_works() will always wait 100ms even with enough ticks elapsed. This is a bit wasteful when most of the HW should not be buggy. The admin may also know that their HW is not buggy so they could decide to skip the full 100ms. Also, looking at Linux changes, it was pointed out that the timer_irq_works() may always return false when using para-virtualized timer. It is not a problem for Xen, but still it makes sense to provide an option to disable the timer check. Patch #1 of the series will add the command line option while patch #2 will optimize timer_irq_works() for the good case. Cheers, Julien Grall (2): xen/x86: io_apic: Introduce a command line option to skip timer check xen/x86: ioapic: Bail out from timer_irq_works() as soon as possible docs/misc/xen-command-line.pandoc | 11 +++++++ xen/arch/x86/io_apic.c | 48 ++++++++++++++++++++++--------- 2 files changed, 45 insertions(+), 14 deletions(-)