All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Jan Beulich" <JBeulich@suse.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [PATCH 0/8] x86/IDT: Generate the IDT at build time
Date: Mon, 24 Feb 2025 16:05:01 +0000	[thread overview]
Message-ID: <20250224160509.1117847-1-andrew.cooper3@citrix.com> (raw)

This is a chunk of the FRED work split out because it's pretty self contained.

It's mostly cleanup/refactoring, although patch

traps.c is already overly large and going to get larger with FRED, so I'm
splitting traps-init.c out of it, as the two have reasonably-different logic.
That's implemented in this series but not used in anger in this series.

Testing, including Eclair:

  https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1684170631
  https://cirrus-ci.com/build/6590097610506240

(Qubes ADL was offline at this time, but has passed on prior runs.  Also Zen3p
passing is good enough to prove the changes.)

Andrew Cooper (8):
  x86: Sort includes in various files
  x86/IDT: Collect IDT related content idt.h
  x86/IDT: Rename X86_NR_VECTORS to X86_IDT_VECTORS
  x86/IDT: Rename idt_table[] to bsp_idt[]
  x86/IDT: Make idt_tables[] be per_cpu(idt)
  x86/IDT: Generate bsp_idt[] at build time
  x86/IDT: Don't rewrite bsp_idt[] at boot time
  x86/traps: Convert pv_trap_init() to being an initcall

 xen/arch/x86/Makefile                   |   1 +
 xen/arch/x86/acpi/power.c               |  19 +--
 xen/arch/x86/cpu/common.c               |  23 ++--
 xen/arch/x86/crash.c                    |  41 +++---
 xen/arch/x86/domain.c                   |  87 ++++++------
 xen/arch/x86/hvm/svm/svm.c              |   5 +-
 xen/arch/x86/hvm/vlapic.c               |   4 +-
 xen/arch/x86/hvm/vmx/intr.c             |   4 +-
 xen/arch/x86/hvm/vmx/vmcs.c             |  30 +++--
 xen/arch/x86/hvm/vmx/vmx.c              |   6 +-
 xen/arch/x86/include/asm/desc.h         |  76 -----------
 xen/arch/x86/include/asm/gen-idt.h      | 121 +++++++++++++++++
 xen/arch/x86/include/asm/gen-idt.lds.h  |  27 ++++
 xen/arch/x86/include/asm/hvm/vmx/vmcs.h |   4 +-
 xen/arch/x86/include/asm/idt.h          | 109 +++++++++++++++
 xen/arch/x86/include/asm/irq.h          |   4 +-
 xen/arch/x86/include/asm/processor.h    |  37 ------
 xen/arch/x86/include/asm/pv/traps.h     |   4 -
 xen/arch/x86/include/asm/x86-defns.h    |   2 +-
 xen/arch/x86/io_apic.c                  |   2 +-
 xen/arch/x86/irq.c                      |  12 +-
 xen/arch/x86/machine_kexec.c            |  13 +-
 xen/arch/x86/mm.c                       |  58 ++++----
 xen/arch/x86/pv/callback.c              |   4 +-
 xen/arch/x86/pv/domain.c                |   4 +-
 xen/arch/x86/pv/traps.c                 |  19 +--
 xen/arch/x86/setup.c                    |  84 ++++++------
 xen/arch/x86/smpboot.c                  |  37 +++---
 xen/arch/x86/traps-init.c               |   7 +
 xen/arch/x86/traps.c                    | 169 +++++++-----------------
 xen/arch/x86/x86_64/entry.S             | 106 ++++++++-------
 xen/arch/x86/x86_64/traps.c             |  28 ++--
 xen/arch/x86/xen.lds.S                  |   2 +
 33 files changed, 625 insertions(+), 524 deletions(-)
 create mode 100644 xen/arch/x86/include/asm/gen-idt.h
 create mode 100644 xen/arch/x86/include/asm/gen-idt.lds.h
 create mode 100644 xen/arch/x86/include/asm/idt.h
 create mode 100644 xen/arch/x86/traps-init.c

-- 
2.39.5



             reply	other threads:[~2025-02-24 16:07 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-24 16:05 Andrew Cooper [this message]
2025-02-24 16:05 ` [PATCH 1/8] x86: Sort includes in various files Andrew Cooper
2025-02-24 16:11   ` Jan Beulich
2025-02-24 16:05 ` [PATCH 2/8] x86/IDT: Collect IDT related content idt.h Andrew Cooper
2025-02-25  8:27   ` Jan Beulich
2025-02-26 17:15     ` Andrew Cooper
2025-02-27  7:49       ` Jan Beulich
2025-02-24 16:05 ` [PATCH 3/8] x86/IDT: Rename X86_NR_VECTORS to X86_IDT_VECTORS Andrew Cooper
2025-02-25  8:31   ` Jan Beulich
2025-02-26 17:27     ` Andrew Cooper
2025-02-27  7:57       ` Jan Beulich
2025-02-24 16:05 ` [PATCH 4/8] x86/IDT: Rename idt_table[] to bsp_idt[] Andrew Cooper
2025-02-25  9:00   ` Jan Beulich
2025-02-25 12:54     ` Andrew Cooper
2025-02-25 14:33       ` Jan Beulich
2025-02-25 16:20         ` Andrew Cooper
2025-02-25 16:29           ` Jan Beulich
2025-02-24 16:05 ` [PATCH 5/8] x86/IDT: Make idt_tables[] be per_cpu(idt) Andrew Cooper
2025-02-25  9:07   ` Jan Beulich
2025-02-25 15:40     ` Andrew Cooper
2025-02-25 16:33       ` Jan Beulich
2025-03-04 14:40         ` Andrew Cooper
2025-02-24 16:05 ` [PATCH 6/8] x86/IDT: Generate bsp_idt[] at build time Andrew Cooper
2025-02-26 12:39   ` Jan Beulich
2025-02-26 13:37     ` Andrew Cooper
2025-02-26 14:14       ` Jan Beulich
2025-02-26 15:14         ` Andrew Cooper
2025-02-24 16:05 ` [PATCH 7/8] x86/IDT: Don't rewrite bsp_idt[] at boot time Andrew Cooper
2025-02-26 12:48   ` Jan Beulich
2025-02-26 12:53     ` Andrew Cooper
2025-02-26 13:18       ` Jan Beulich
2025-02-26 13:23         ` Andrew Cooper
2025-02-24 16:05 ` [PATCH 8/8] x86/traps: Convert pv_trap_init() to being an initcall Andrew Cooper
2025-02-26 12:53   ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250224160509.1117847-1-andrew.cooper3@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=roger.pau@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.