linux-kernelorg-stable/arch
Paolo Bonzini e9f17038d8 x86/tdx: mark tdh_vp_enter() as __flatten
In some cases tdx_tdvpr_pa() is not fully inlined into tdh_vp_enter(), which
causes the following warning:

  vmlinux.o: warning: objtool: tdh_vp_enter+0x8: call to tdx_tdvpr_pa() leaves .noinstr.text section

This happens if the compiler considers tdx_tdvpr_pa() to be "large", for example
because CONFIG_SPARSEMEM adds two function calls to page_to_section() and
__section_mem_map_addr():

({      const struct page *__pg = (pg);                         \
        int __sec = page_to_section(__pg);                      \
        (unsigned long)(__pg - __section_mem_map_addr(__nr_to_section(__sec)));
\
})

Because exiting the noinstr section is a no-no, just mark tdh_vp_enter() for
full inlining.

Reported-by: kernel test robot <lkp@intel.com>
Analyzed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505240530.5KktQ5mX-lkp@intel.com/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-05-26 16:45:07 -04:00
..
alpha treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
arc irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
arm Amlogic Fixes for v6.15: 2025-05-09 18:00:03 +02:00
arm64 KVM/arm64 updates for 6.16 2025-05-26 16:19:46 -04:00
csky
hexagon CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
loongarch LoongArch: KVM: Do not flush tlb if HW PTW supported 2025-05-20 20:20:18 +08:00
m68k CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
microblaze
mips Fix delayed timers 2025-05-11 11:19:52 -07:00
nios2 A set of updates for the interrupt subsystem: 2025-04-06 08:17:43 -07:00
openrisc OpenRISC updates for 6.15 2025-04-26 09:01:13 -07:00
parisc parisc architecture fix for kernel v6.15-rc5: 2025-05-04 08:47:18 -07:00
powerpc powerpc/boot: Fix dash warning 2025-04-24 12:25:39 +05:30
riscv KVM/riscv changes for 6.16 2025-05-26 16:27:00 -04:00
s390 s390/pci: Fix missing check for zpci_create_device() error return 2025-05-07 13:35:05 +02:00
sh CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
sparc CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
um um: let 'make clean' properly clean underlying SUBARCH as well 2025-05-12 15:03:42 +09:00
x86 x86/tdx: mark tdh_vp_enter() as __flatten 2025-05-26 16:45:07 -04:00
xtensa treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
.gitignore
Kconfig Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00