Skip to content

x86: Use macros for selectors in asm

Sean Christopherson kvm 1 version Applied

Status from this message: Applied to kvm-x86 next (and now pulled by Paolo), with the fixup to use KERNEL_CS

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

v2 from the cover letter

- Commit to using __ASSEMBLER__.

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86: Move descriptor table selector #defines to the top of desc.hlib/x86/desc.h+57 -570 replies
2/3x86: Commit to using __ASSEMBLER__ instead of __ASSEMBLY__lib/x86/asm/page.h lib/x86/desc.h+3 -30 replies
3/3x86: replace segment selector magic number with macro definitionlib/x86/desc.h x86/cstart64.S x86/trampolines.S+15 -81 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/3] x86: Use macros for selectors in asm

Use macros for segment selectors in assembly instead of open coded literals.

v2:
- Commit to using __ASSEMBLER__.

v1: https://lore.kernel.org/all/[email protected]

Hang SU (1):
x86: replace segment selector magic number with macro definition

Sean Christopherson (2):
x86: Move descriptor table selector #defines to the top of desc.h
x86: Commit to using __ASSEMBLER__ instead of __ASSEMBLY__

 lib/x86/asm/page.h |   4 +-
 lib/x86/desc.h     | 123 +++++++++++++++++++++++----------------------
 x86/cstart64.S     |   8 +--
 x86/trampolines.S  |   8 +--
 4 files changed, 75 insertions(+), 68 deletions(-)

base-commit: f77fb696cfd0e4a5562cdca189be557946bf522f

Signature · 1 line
2.48.1.601.g30ceb7b040-goog