Centos-kernel-stream-9/scripts
Scott Weaver c81a765dbd Merge: Rebase KVM common and x86 to 6.9
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4150

# Merge Request Required Information

## Summary of Changes

This pull request rebases KVM to 6.9

Tested: Smoke tested with kvm unit tests and selftests on AMD machine.

---

These are commits that I didn't include in the rebase, and rough justification:

```
kvm: explicitly set FOLL_HONOR_NUMA_FAULT in hva_to_pfn_slow() [GIT]
    2023-08-21 David Hildenbrand      kvm: explicitly set FOLL_HONOR_NUMA_FAULT in hva_to_pfn_slow()
	-> Misses the required API

kvm: mmu: dynamically allocate the x86-mmu shrinker [GIT]
    2023-10-04 Qi Zheng               kvm: mmu: dynamically allocate the x86-mmu shrinker
	-> Misses the required API

selftests/kvm: Replace attribute with macro [GIT]
    2023-10-13 Maciej Wieczor-Retman  selftests/kvm: Replace attribute with macro
    needs __printf macros in selftests and backporting commit that added them caused issues

[PATCH v3 0/5] KVM: selftests: Add ID reg test, update headers
[PATCH v8 00/13] KVM: arm64: PMU: Allow userspace to limit the number  of PMCs on vCPU
[PATCH 0/2] perf build: Fixes for arm64 sysreg-defs build rules
[PATCH v6 00/12] KVM: arm64: Support FEAT_LPA2 at hyp s1 and vm s2
    2023-10-18 Jing Zhang             KVM: arm64: selftests: Test for setting ID register from usersapce
    2023-10-24 Reiji Watanabe         KVM: selftests: aarch64: Introduce vpmu_counter_access test
    2023-11-22 Oliver Upton           perf build: Ensure sysreg-defs Makefile respects output dir
    2023-11-27 Ryan Roberts           KVM: selftests: arm64: Determine max ipa size per-page size
    2023-11-27 Ryan Roberts           KVM: selftests: arm64: Support P52V48 4K and 16K guest_modes
	-> patches that are better to be backported via arm rebase

[PATCH v2 0/4] eventfd: simplify signal helpers
    2023-11-28 Christian Brauner      eventfd: simplify eventfd_signal()
	-> Refactoring, and causes too many conflicts

[PATCH] arch/x86: Fix typos
    2024-01-03 Bjorn Helgaas          arch/x86: Fix typos
	-> x86 refactoring

[PATCH v2 0/4] KVM: selftests: Annotate guest printfs as such
    2023-12-01 Sean Christopherson    KVM: selftests: Annotate guest ucall, printf, and assert helpers with __printf()

    needs __printf macros in selftests and backporting commit that added them caused issues

[PATCH v6 00/13] x86/bugs: Add a separate config for each mitigation
    2024-01-10 Breno Leitao           x86/bugs: Rename CONFIG_RETPOLINE            => CONFIG_MITIGATION_RETPOLINE
	-> x86 refactoring

[PATCH v13 00/35] x86: enable FRED for x86-64
    2024-01-25 Xin Li                 x86/trapnr: Add event type macros to <asm/trapnr.h>
    2024-01-31 Xin Li                 KVM: VMX: Call fred_entry_from_kvm() for IRQ/NMI handling
	-> should be backported with FRED

[PATCH v2 00/25] Add AMD Secure Nested Paging (SEV-SNP)  Initialization Support
    2024-01-29 Brijesh Singh          crypto: ccp: Add support to initialize the AMD-SP for SEV-SNP
    2024-01-29 Brijesh Singh          KVM: SEV: Make AVIC backing, VMSA and VMCB memory allocation SNP safe
	-> Small part of SEV-SNP, should go together with it IMHO

[PATCH v6 0/2] shrink lib/string.i via IWYU
    2024-02-01 Tanzir Hasan           kernel.h: removed REPEAT_BYTE from kernel.h
	-> Tree wide refactoring

Re: [RFC PATCH v2] x86/sev: enforce RIP-relative accesses in early  SEV/SME code
    2024-02-06 Ard Biesheuvel         x86/sev: Fix position dependent variable references in startup code
	-> x86 guest code, IMHO should no be part of KVM rebase

[PATCH v3 0/8] treewide: Use clocksource ID for  get_device_system_crosststamp()
    2024-02-07 Peter Hilber           kvmclock: Unexport kvmclock clocksource
	-> Tree wide refactoring

work around gcc bugs with 'asm goto' with outputs [GIT]
    2024-02-09 Linus Torvalds         work around gcc bugs with 'asm goto' with outputs
	-> Lots of conflicts, code that probably only Linus understands :). Might be needed, not 100% sure

[PATCH v8 0/6] Delay VERW
    2024-02-19 Pawan Gupta            x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key
    2024-02-19 Sean Christopherson    KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH
    2024-02-19 Pawan Gupta            KVM/VMX: Move VERW closer to VMentry for MDS mitigation
	-> Should be backported by x86 core together with the rest of the patch series IMHO

treewide: replace or remove redundant def_bool in Kconfig files [GIT]
    2024-02-20 Masahiro Yamada        treewide: replace or remove redundant def_bool in Kconfig files
	-> Tree wide refactoring

kbuild: change tool coverage variables to take the path relative to $(obj) [GIT]
    2024-02-23 Masahiro Yamada        kbuild: change tool coverage variables to take the path relative to $(obj)
	-> Tree wide refactoring

[PATCH] treewide: remove meaningless assignments in Makefiles
    2024-02-23 Masahiro Yamada        treewide: remove meaningless assignments in Makefiles
	-> Tree wide refactoring

[patch 0/9] x86: Cure tons of sparse warnings (mostly __percpu)
    2024-03-04 Thomas Gleixner        x86/cpu: Provide a declaration for itlb_multihit_kvm_mitigation
	-> Another x86 refactoring

[PATCH v7 0/9] x86: Confine early 1:1 mapped startup code
    2024-03-04 Ard Biesheuvel         x86/sme: Move early SME kernel encryption handling into .head.text
	-> x86 common code

mm/treewide: replace pmd_large() with pmd_leaf() [GIT]
mm/treewide: replace pud_large() with pud_leaf() [GIT]
mm/treewide: drop pXd_large() [GIT]
    2024-03-06 Peter Xu               mm/treewide: replace pmd_large() with pmd_leaf()
    2024-03-06 Peter Xu               mm/treewide: replace pud_large() with pud_leaf()
    2024-03-06 Peter Xu               mm/treewide: drop pXd_large()
	-> Tree wide refactoring

KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests [GIT]
    2024-03-11 Pawan Gupta            KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests
	-> should be applied as part of the mitigation code

[PATCH v2] mshyperv: Introduce hv_get_hypervisor_version function
[PATCH] hyperv-tlfs: Rename some HV_REGISTER_* defines for  consistency
[PATCH v3] mshyperv: Introduce hv_numa_node_to_pxm_info()
    2024-03-12 Nuno Das Neves         mshyperv: Introduce hv_get_hypervisor_version function
    2024-03-18 Nuno Das Neves         hyperv-tlfs: Rename some HV_REGISTER_* defines for consistency
    2024-03-22 Nuno Das Neves         mshyperv: Introduce hv_numa_node_to_pxm_info()
	-> should be part of next hyperv rebase

[PATCH 0/5] x86/sev: Fix SNP host late disable
    2024-04-04 Borislav Petkov (AMD)  x86/kvm/Kconfig: Have KVM_AMD_SEV select ARCH_HAS_CC_PLATFORM
    2024-04-04 Borislav Petkov (AMD)  x86/CPU/AMD: Track SNP host status with cc_platform_*()
	-> I think that this should also be backported with rest of x86 code

x86/cpufeatures: Add CPUID_LNX_5 to track recently added Linux-defined word [GIT]
    2024-04-04 Sean Christopherson    x86/cpufeatures: Add CPUID_LNX_5 to track recently added Linux-defined word
	-> x86 fix for commit that is not yet backported

x86/bhi: Add support for clearing branch history at syscall entry [GIT]
x86/bhi: Define SPEC_CTRL_BHI_DIS_S [GIT]
x86/bhi: Mitigate KVM by default [GIT]
KVM: x86: Add BHI_NO [GIT]
    2024-04-08 Pawan Gupta            x86/bhi: Add support for clearing branch history at syscall entry
    2024-04-08 Daniel Sneddon         x86/bhi: Define SPEC_CTRL_BHI_DIS_S
    2024-04-08 Pawan Gupta            x86/bhi: Mitigate KVM by default
    2024-04-08 Daniel Sneddon         KVM: x86: Add BHI_NO
	-> x86 mitigation code, should be applied as part of the mitigation

```

## Approved Development Ticket
All submissions to CentOS Stream must reference an approved ticket in [Red Hat Jira](https://issues.redhat.com/). Please follow the CentOS Stream [contribution documentation](https://docs.centos.org/en-US/stream-contrib/quickstart/) for how to file this ticket and have it approved.

```
JIRA: https://issues.redhat.com/browse/RHEL-32430
Depends: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4090
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
```

Approved-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Approved-by: Tony Camuso <tcamuso@redhat.com>
Approved-by: Paolo Bonzini <bonzini@gnu.org>
Approved-by: Steve Best <sbest@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Approved-by: Gavin Shan <gshan@redhat.com>

Merged-by: Scott Weaver <scweaver@redhat.com>
2024-05-30 09:32:40 -04:00
..
atomic locking/atomic: Add generic try_cmpxchg{,64}_local() support 2024-03-20 09:43:03 -04:00
basic .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
clang-tools scripts: handle BrokenPipeError for python scripts 2024-03-20 09:42:44 -04:00
coccinelle coccinelle: api: remove kobj_to_dev.cocci script 2021-06-21 20:45:49 +02:00
dtc treewide: Replace zero-length arrays with flexible-array members 2023-10-20 06:12:35 -04:00
dummy-tools scripts: dummy-tools, add pahole 2022-10-25 14:58:09 +02:00
gcc-plugins randstruct: Reorganize Kconfigs and attribute macros 2024-03-20 09:42:34 -04:00
gdb x86: replace CONFIG_HAVE_KVM with IS_ENABLED(CONFIG_KVM) 2024-05-13 18:38:35 -04:00
genksyms .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
kconfig Kbuild updates for v5.14 2021-07-10 11:01:38 -07:00
ksymoops
mod kbuild: get rid of duplication in *.mod files 2023-03-24 17:06:53 -04:00
package objtool: Add CONFIG_OBJTOOL 2022-10-27 15:26:51 -04:00
selinux
tracing tracing: Always use canonical ftrace path 2023-09-18 12:02:13 +02:00
.gitignore scripts: add `generate_rust_target.rs` 2024-03-20 09:42:43 -04:00
Kbuild.include Merge: objtool: resolve on-going cmdline arg conflicts 2024-05-22 21:15:43 +00:00
Kconfig.include kbuild: check the minimum assembler version in Kconfig 2021-04-25 05:14:41 +09:00
Lindent
Makefile Fix CVE-2020-26541 2021-04-26 08:38:10 -07:00
Makefile.asm-generic kbuild: add kbuild-file macro 2024-04-22 15:46:37 -04:00
Makefile.build Merge: objtool: resolve on-going cmdline arg conflicts 2024-05-22 21:15:43 +00:00
Makefile.clean kbuild: add kbuild-file macro 2024-04-22 15:46:37 -04:00
Makefile.compiler kbuild: add test-{ge,gt,le,lt} macros 2024-03-20 09:42:51 -04:00
Makefile.dtbinst kbuild: add kbuild-file macro 2024-04-22 15:46:37 -04:00
Makefile.extrawarn Makefile.compiler: replace cc-ifversion with compiler-specific macros 2024-03-20 09:42:51 -04:00
Makefile.gcc-plugins randstruct: Split randstruct Makefile and CFLAGS 2024-03-20 09:42:35 -04:00
Makefile.headersinst kbuild: prefix $(srctree)/ to some included Makefiles 2021-03-15 19:20:48 +09:00
Makefile.host
Makefile.kasan kasan: remove hwasan-kernel-mem-intrinsic-prefix=1 for clang-14 2024-04-30 17:51:32 -06:00
Makefile.kcov
Makefile.kcsan kcsan: Ignore GCC 11+ warnings about TSan runtime support 2023-09-22 13:20:59 -04:00
Makefile.kmsan kmsan: add KMSAN runtime core 2023-10-20 06:14:34 -04:00
Makefile.lib kbuild: factor out the common objtool arguments 2024-04-11 13:36:04 -04:00
Makefile.modfinal kbuild: Disable GCOV for *.mod.o 2024-03-20 09:42:46 -04:00
Makefile.modinst kbuild: add support for zstd compressed modules 2021-04-25 05:25:06 +09:00
Makefile.modpost kbuild: add kbuild-file macro 2024-04-22 15:46:37 -04:00
Makefile.package kbuild: deb-pkg: change the source package name to linux-upstream 2021-04-25 05:30:45 +09:00
Makefile.randstruct randstruct: Split randstruct Makefile and CFLAGS 2024-03-20 09:42:35 -04:00
Makefile.ubsan ubsan: remove overflow checks 2021-02-26 09:41:05 -08:00
Makefile.userprogs
Makefile.vmlinux_o kbuild: factor out the common objtool arguments 2024-04-11 13:36:04 -04:00
adjust_autoksyms.sh kbuild: split the second line of *.mod into *.usyms 2023-03-24 17:06:53 -04:00
as-version.sh kbuild: check the minimum assembler version in Kconfig 2021-04-25 05:14:41 +09:00
asn1_compiler.c
bin2c.c
bloat-o-meter scripts: switch explicitly to Python 3 2021-01-22 06:34:44 +09:00
bootgraph.pl
bpf_doc.py bpf, docs: Fix invalid escape sequence warnings in bpf_doc.py 2023-12-15 09:29:02 +01:00
cc-can-link.sh
cc-version.sh scripts: Remove ICC-related dead code 2024-03-20 09:42:45 -04:00
check-sysctl-docs
check_extable.sh scripts: check_extable: fix typo in user error message 2022-04-07 09:58:25 -04:00
checkdeclares.pl scripts: a new script for checking duplicate struct declaration 2021-04-30 11:20:35 -07:00
checkincludes.pl
checkkconfigsymbols.py scripts: handle BrokenPipeError for python scripts 2024-03-20 09:42:44 -04:00
checkpatch.pl checkpatch: add ethtool_sprintf rules 2024-04-05 11:27:37 +02:00
checkstack.pl
checksyscalls.sh arch, mm: wire up memfd_secret system call where relevant 2021-07-08 11:48:21 -07:00
checkversion.pl scripts: checkversion: modernize linux/version.h search strings 2021-08-05 20:55:39 +09:00
cleanfile
cleanpatch
coccicheck scripts: coccicheck: fix troubles on non-English builds 2021-05-18 11:09:59 +02:00
config kconfig: config script: add a little user help 2021-01-04 10:38:11 +09:00
const_structs.checkpatch
decode_stacktrace.sh scripts/decode_stacktrace.sh: indicate 'auto' can be used for base path 2021-07-08 11:48:22 -07:00
decodecode
depmod.sh depmod: handle the case of /sbin/depmod without /sbin in PATH 2021-01-01 12:26:39 -08:00
dev-needs.sh
diffconfig scripts: handle BrokenPipeError for python scripts 2024-03-20 09:42:44 -04:00
documentation-file-ref-check scripts: documentation-file-ref-check: fix bpf selftests path 2022-06-03 17:23:54 +03:00
export_report.pl
extract-cert.c cert host tools: Stop complaining about deprecated OpenSSL functions 2023-01-09 13:32:41 -05:00
extract-ikconfig
extract-module-sig.pl
extract-sys-certs.pl
extract-vmlinux
extract_xc3028.pl
faddr2line
file-size.sh
find-unused-docs.sh
gcc-ld
gcc-x86_32-has-stack-protector.sh x86/stackprotector/32: Make the canary into a regular percpu variable 2021-03-08 13:19:05 +01:00
gcc-x86_64-has-stack-protector.sh
gen_autoksyms.sh kbuild: split the second line of *.mod into *.usyms 2023-03-24 17:06:53 -04:00
gen_ksymdeps.sh
generate_initcall_order.pl init: lto: ensure initcall ordering 2021-01-14 08:21:09 -08:00
generate_rust_target.rs x86: enable initial Rust support 2024-03-20 09:42:43 -04:00
get_abi.pl scripts: get_abi: ignore code blocks for cross-references 2021-03-31 13:53:16 -06:00
get_dvb_firmware
get_feat.pl
get_maintainer.pl
gfp-translate scripts: fix the gfp flags header path in gfp-translate 2023-10-20 06:16:06 -04:00
headerdep.pl
headers_check.pl
headers_install.sh x86: Remove the arch_calc_vm_prot_bits() macro from the UAPI 2024-03-20 09:43:23 -04:00
insert-sys-cert.c
install.sh kbuild: factor out the common installation code into scripts/install.sh 2024-04-10 21:00:29 -04:00
jobserver-exec scripts/jobserver-exec: Fix a typo ("envirnoment") 2021-05-17 12:10:03 +09:00
kallsyms.c kallsyms: add kallsyms_seqs_of_names to list of special symbols 2023-06-13 22:45:47 +02:00
kernel-doc scripts/kernel-doc: support EXPORT_SYMBOL_NS_GPL() with -export 2023-03-09 16:36:08 -07:00
ld-version.sh kbuild: collect minimum tool versions into scripts/min-tool-version.sh 2021-04-25 05:14:26 +09:00
leaking_addresses.pl leaking_addresses: Always print a trailing newline 2021-11-23 07:21:24 -05:00
link-vmlinux.sh kbuild: factor out the common objtool arguments 2024-04-11 13:36:04 -04:00
makelst
markup_oops.pl
min-tool-version.sh scripts/min-tool-version.sh: raise minimum clang version to 14.0.0 for s390 2024-05-10 10:49:46 +02:00
mkcompile_h sched/preempt: Tell about PREEMPT_DYNAMIC on kernel headers 2022-04-07 09:35:08 -04:00
mksysmap
mkuboot.sh
module.lds.S Revert "arm64: unwind: add asynchronous unwind tables to kernel and modules" 2023-08-31 22:40:39 -04:00
modules-check.sh kbuild: check module name conflict for external modules as well 2021-04-25 05:22:42 +09:00
nsdeps scripts/nsdeps: adjust to the format change of *.mod files 2023-03-24 17:06:54 -04:00
objdiff kbuild: clean .tmp_* pattern by make clean 2023-06-30 19:59:54 -04:00
objdump-func scripts: Create objdump-func helper script 2022-10-27 15:26:52 -04:00
pahole-flags.sh bpf: Add --skip_encoding_btf_inconsistent_proto, --btf_gen_optimized to pahole flags for v1.25 2023-10-12 11:41:04 +02:00
pahole-version.sh kbuild: Add CONFIG_PAHOLE_VERSION 2022-10-25 14:57:45 +02:00
parse-maintainers.pl
patch-kernel
profile2linkerlist.pl
prune-kernel
recordmcount.c ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount 2021-03-02 17:27:18 -05:00
recordmcount.h recordmcount: Correct st_shndx handling 2021-06-18 09:09:17 -04:00
recordmcount.pl scripts/recordmcount.pl: Remove check_objcopy() and $can_use_local 2021-08-04 17:49:26 -04:00
remove-stale-files x86/purgatory: Omit use of bin2c 2024-05-15 10:32:32 +08:00
setlocalversion kbuild: do not include include/config/auto.conf from shell scripts 2022-10-27 14:27:57 -04:00
show_delta
sign-file.c cert host tools: Stop complaining about deprecated OpenSSL functions 2023-01-09 13:32:41 -05:00
sorttable.c LoongArch: Add ELF-related definitions 2024-05-15 13:58:51 +08:00
sorttable.h
spdxcheck-test.sh
spdxcheck.py scripts/spdxcheck.py: Strictly read license files in utf-8 2021-07-12 09:56:50 -06:00
spelling.txt Merge: ALSA - update drivers for 9.3 2023-07-04 11:15:01 +02:00
sphinx-pre-install scripts: sphinx-pre-install: fix the need of virtenv packages 2021-06-01 16:29:30 -06:00
split-man.pl
stackdelta
stackusage
subarch.include
syscallhdr.sh scripts: check duplicated syscall number in syscall table 2021-07-09 04:00:39 +09:00
syscallnr.sh scripts: add generic syscallnr.sh 2021-07-09 04:01:14 +09:00
syscalltbl.sh scripts: check duplicated syscall number in syscall table 2021-07-09 04:00:39 +09:00
tags.sh kbuild: allow to combine multiple V= levels 2024-03-20 09:42:55 -04:00
test_fortify.sh fortify: Update compile-time tests for Clang 14 2022-12-10 23:01:44 +01:00
tools-support-relr.sh Makefile: fix GDB warning with CONFIG_RELR 2021-06-08 13:09:34 +01:00
unifdef.c
ver_linux Removed the oprofiled version option 2021-05-03 17:23:06 -06:00
xen-hypercalls.sh
xz_wrap.sh