[GIT PULL] x86/cc for v6.11-rc1

From: Borislav Petkov
Date: Mon Jul 15 2024 - 07:37:01 EST


Hi Linus,

please pull the x86 confidential computing lineup for v6.11-rc1.

Thx.

---

The following changes since commit 83a7eefedc9b56fe7bfeff13b6c7356688ffa670:

Linux 6.10-rc3 (2024-06-09 14:19:43 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip x86_cc_for_v6.11_rc1

for you to fetch changes up to 16df35946120fca2346c415fae429c821391eef8:

ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parsed (2024-06-17 17:46:28 +0200)

----------------------------------------------------------------
- Unrelated x86/cc changes queued here to avoid ugly cross-merges and
conflicts:

- Carve out CPU hotplug function declarations into a separate header
with the goal to be able to use the lockdep assertions in a more
flexible manner

- As a result, refactor cacheinfo code after carving out a function
to return the cache ID associated with a given cache level

- Cleanups

- Add support to be able to kexec TDX guests. For that

- Expand ACPI MADT CPU offlining support

- Add machinery to prepare CoCo guests memory before kexec-ing into a new
kernel

- Cleanup, readjust and massage related code

----------------------------------------------------------------
Ashish Kalra (1):
x86/mm: Do not zap page table entries mapping unaccepted memory table during kdump

Borislav Petkov (1):
x86/relocate_kernel: Use named labels for less confusion

Kirill A. Shutemov (17):
x86/acpi: Extract ACPI MADT wakeup code into a separate file
x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init
cpu/hotplug: Add support for declaring CPU offlining not supported
cpu/hotplug, x86/acpi: Disable CPU offlining for ACPI MADT wakeup
x86/kexec: Keep CR4.MCE set during kexec for TDX guest
x86/mm: Make x86_platform.guest.enc_status_change_*() return an error
x86/mm: Return correct level from lookup_address() if pte is none
x86/tdx: Account shared memory
x86/mm: Add callbacks to prepare encrypted memory for kexec
x86/tdx: Convert shared memory back to private on kexec
x86/mm: Make e820__end_ram_pfn() cover E820_TYPE_ACPI ranges
x86/acpi: Rename fields in the acpi_madt_multiproc_wakeup structure
x86/acpi: Do not attempt to bring up secondary CPUs in the kexec case
x86/smp: Add smp_ops.stop_this_cpu() callback
x86/mm: Introduce kernel_ident_mapping_free()
x86/acpi: Add support for CPU offlining for ACPI MADT wakeup method
ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parsed

Nikolay Borisov (1):
x86/kexec: Remove spurious unconditional JMP from from identity_mapped()

Tony Luck (4):
cpu: Move CPU hotplug function declarations into their own header
cpu: Drop "extern" from function declarations in cpuhplock.h
cacheinfo: Add function to get cacheinfo for a given CPU and cache level
x86/resctrl: Replace open coded cacheinfo searches

arch/x86/Kconfig | 7 +
arch/x86/coco/core.c | 1 -
arch/x86/coco/tdx/tdx.c | 121 ++++++++++++-
arch/x86/hyperv/ivm.c | 22 +--
arch/x86/include/asm/acpi.h | 7 +
arch/x86/include/asm/init.h | 3 +
arch/x86/include/asm/pgtable.h | 5 +
arch/x86/include/asm/pgtable_types.h | 1 +
arch/x86/include/asm/set_memory.h | 3 +
arch/x86/include/asm/smp.h | 1 +
arch/x86/include/asm/x86_init.h | 14 +-
arch/x86/kernel/acpi/Makefile | 1 +
arch/x86/kernel/acpi/boot.c | 86 +--------
arch/x86/kernel/acpi/madt_playdead.S | 28 +++
arch/x86/kernel/acpi/madt_wakeup.c | 292 ++++++++++++++++++++++++++++++
arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 17 +-
arch/x86/kernel/cpu/resctrl/rdtgroup.c | 14 +-
arch/x86/kernel/crash.c | 12 ++
arch/x86/kernel/e820.c | 9 +-
arch/x86/kernel/process.c | 7 +
arch/x86/kernel/reboot.c | 18 ++
arch/x86/kernel/relocate_kernel_64.S | 27 +--
arch/x86/kernel/x86_init.c | 8 +-
arch/x86/mm/ident_map.c | 73 ++++++++
arch/x86/mm/init_64.c | 16 +-
arch/x86/mm/mem_encrypt_amd.c | 8 +-
arch/x86/mm/pat/set_memory.c | 75 ++++++--
drivers/acpi/tables.c | 14 ++
include/acpi/actbl2.h | 19 +-
include/linux/cacheinfo.h | 25 ++-
include/linux/cc_platform.h | 10 -
include/linux/cpu.h | 33 +---
include/linux/cpuhplock.h | 49 +++++
kernel/cpu.c | 12 +-
34 files changed, 812 insertions(+), 226 deletions(-)
create mode 100644 arch/x86/kernel/acpi/madt_playdead.S
create mode 100644 arch/x86/kernel/acpi/madt_wakeup.c
create mode 100644 include/linux/cpuhplock.h


--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette