[PATCH v2 0/2] xen/x86: Optimize timer_irq_works()

Julien Grall posted 2 patches 4 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20231211122322.15815-1-julien@xen.org
docs/misc/xen-command-line.pandoc | 11 +++++++
xen/arch/x86/io_apic.c            | 48 ++++++++++++++++++++++---------
2 files changed, 45 insertions(+), 14 deletions(-)
[PATCH v2 0/2] xen/x86: Optimize timer_irq_works()
Posted by Julien Grall 4 months, 2 weeks ago
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(-)

-- 
2.40.1