mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/5] x86: Cleanups around slow_down_io()
@ 2025-12-16 13:41 Juergen Gross
  2025-12-16 13:41 ` [PATCH v2 1/5] x86/paravirt: Replace io_delay() hook with a bool Juergen Gross
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Juergen Gross @ 2025-12-16 13:41 UTC (permalink / raw)
  To: linux-kernel, x86, virtualization, kvm, linux-block
  Cc: Juergen Gross, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, H. Peter Anvin, Ajay Kaher, Alexey Makhalov,
	Broadcom internal kernel review list, Paolo Bonzini,
	Vitaly Kuznetsov, Boris Ostrovsky, xen-devel, Denis Efremov,
	Jens Axboe

While looking at paravirt cleanups I stumbled over slow_down_io() and
the related REALLY_SLOW_IO define.

Do several cleanups, resulting in a deletion of REALLY_SLOW_IO and the
io_delay() paravirt function hook.

Patch 4 is removing the config options for selecting the default delay
mechanism and sets the default to "no delay". This is in preparation of
removing the io_delay() functionality completely, as suggested by Ingo
Molnar.

Patch 5 is adding an additional config option allowing to avoid
building io_delay.c (default is still to build it).

Changes in V2:
- patches 2 and 3 of V1 have been applied
- new patches 4 and 5

Juergen Gross (5):
  x86/paravirt: Replace io_delay() hook with a bool
  block/floppy: Don't use REALLY_SLOW_IO for delays
  x86/io: Remove REALLY_SLOW_IO handling
  x86/io_delay: Switch io_delay() default mechanism to "none"
  x86/io_delay: Add config option for controlling build of io_delay.

 arch/x86/Kconfig                      |  8 +++
 arch/x86/Kconfig.debug                | 30 ----------
 arch/x86/include/asm/floppy.h         | 31 ++++++++--
 arch/x86/include/asm/io.h             | 17 +++---
 arch/x86/include/asm/paravirt.h       | 11 +---
 arch/x86/include/asm/paravirt_types.h |  3 +-
 arch/x86/kernel/Makefile              |  3 +-
 arch/x86/kernel/cpu/vmware.c          |  2 +-
 arch/x86/kernel/io_delay.c            | 81 +--------------------------
 arch/x86/kernel/kvm.c                 |  8 +--
 arch/x86/kernel/paravirt.c            |  3 +-
 arch/x86/kernel/setup.c               |  4 +-
 arch/x86/xen/enlighten_pv.c           |  6 +-
 drivers/block/floppy.c                |  2 -
 14 files changed, 55 insertions(+), 154 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-09 12:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-16 13:41 [PATCH v2 0/5] x86: Cleanups around slow_down_io() Juergen Gross
2025-12-16 13:41 ` [PATCH v2 1/5] x86/paravirt: Replace io_delay() hook with a bool Juergen Gross
2025-12-16 13:41 ` [PATCH v2 2/5] block/floppy: Don't use REALLY_SLOW_IO for delays Juergen Gross
2025-12-16 13:41 ` [PATCH v2 3/5] x86/io: Remove REALLY_SLOW_IO handling Juergen Gross
2025-12-16 13:41 ` [PATCH v2 4/5] x86/io_delay: Switch io_delay() default mechanism to "none" Juergen Gross
2025-12-16 13:41 ` [PATCH v2 5/5] x86/io_delay: Add config option for controlling build of io_delay Juergen Gross
2026-01-09 12:07 ` [PATCH v2 0/5] x86: Cleanups around slow_down_io() Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®