mbox series

[0/8] xen: Untangle mm.h

Message ID 20250312174513.4075066-1-andrew.cooper3@citrix.com (mailing list archive)
Headers show
Series xen: Untangle mm.h | expand

Message

Andrew Cooper March 12, 2025, 5:45 p.m. UTC
This started out trying to fix one little TODO in x86's microcode loader, and
escalated somewhat...

tlb-clock.h is definitely not as clean as it could be, but it's an improvment
over today, and given how long it's taken to get this to compile, I'm not
looking to rewrite everything.

Andrew Cooper (8):
  xen/elfstructs: Include xen/types.h
  xen/livepatch: Fix include hierarchy
  xen: Sort includes
  xen/common: Split tlb-clock.h out of mm.h
  xen/arch: Strip out tlb-clock stubs for non-implementors
  xen/mm: Exclude flushtlb.h from mm.h for PPC and RISC-V
  xen/mm: Exclude flushtlb.h from mm.h for ARM
  xen/mm: Exclude flushtlb.h from mm.h for x86

 xen/arch/arm/arm32/livepatch.c            |  1 -
 xen/arch/arm/arm64/livepatch.c            |  1 -
 xen/arch/arm/include/asm/arm32/flushtlb.h |  2 +
 xen/arch/arm/include/asm/arm64/flushtlb.h |  2 +
 xen/arch/arm/include/asm/fixmap.h         |  2 +
 xen/arch/arm/include/asm/flushtlb.h       | 14 -------
 xen/arch/arm/include/asm/pmap.h           |  1 +
 xen/arch/arm/livepatch.c                  |  1 -
 xen/arch/arm/mmu/domain_page.c            |  2 +
 xen/arch/arm/mmu/pt.c                     |  1 +
 xen/arch/arm/mmu/setup.c                  |  3 +-
 xen/arch/arm/traps.c                      |  1 +
 xen/arch/ppc/include/asm/flushtlb.h       | 14 -------
 xen/arch/riscv/include/asm/flushtlb.h     | 14 -------
 xen/arch/x86/Kconfig                      |  1 +
 xen/arch/x86/alternative.c                | 13 +++---
 xen/arch/x86/cpu/microcode/amd.c          |  2 +-
 xen/arch/x86/livepatch.c                  | 10 ++---
 xen/common/Kconfig                        |  3 ++
 xen/common/memory.c                       |  5 ++-
 xen/common/page_alloc.c                   |  6 +--
 xen/include/xen/elfstructs.h              |  7 +++-
 xen/include/xen/livepatch.h               | 10 ++---
 xen/include/xen/livepatch_elf.h           |  1 -
 xen/include/xen/mm.h                      | 36 ++--------------
 xen/include/xen/tlb-clock.h               | 50 +++++++++++++++++++++++
 xen/include/xen/version.h                 |  1 -
 27 files changed, 102 insertions(+), 102 deletions(-)
 create mode 100644 xen/include/xen/tlb-clock.h


base-commit: 8e60d47cf0112c145b6b0e454d102b04c857db8c

Comments

Andrew Cooper March 12, 2025, 6:02 p.m. UTC | #1
On 12/03/2025 5:45 pm, Andrew Cooper wrote:
> This started out trying to fix one little TODO in x86's microcode loader, and
> escalated somewhat...
>
> tlb-clock.h is definitely not as clean as it could be, but it's an improvment
> over today, and given how long it's taken to get this to compile, I'm not
> looking to rewrite everything.

The other thing to say, I expect randconfig to shake out some things,
and FreeBSD Randconfig already has.

I'll let the piplines run for a bit before accumulating.

~Andrew