linux/arch/x86/kvm/vmx
Kees Cook 189f164e57 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses
Conversion performed via this Coccinelle script:

  // SPDX-License-Identifier: GPL-2.0-only
  // Options: --include-headers-for-types --all-includes --include-headers --keep-comments
  virtual patch

  @gfp depends on patch && !(file in "tools") && !(file in "samples")@
  identifier ALLOC = {kmalloc_obj,kmalloc_objs,kmalloc_flex,
 		    kzalloc_obj,kzalloc_objs,kzalloc_flex,
		    kvmalloc_obj,kvmalloc_objs,kvmalloc_flex,
		    kvzalloc_obj,kvzalloc_objs,kvzalloc_flex};
  @@

  	ALLOC(...
  -		, GFP_KERNEL
  	)

  $ make coccicheck MODE=patch COCCI=gfp.cocci

Build and boot tested x86_64 with Fedora 42's GCC and Clang:

Linux version 6.19.0+ (user@host) (gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7), GNU ld version 2.44-12.fc42) #1 SMP PREEMPT_DYNAMIC 1970-01-01
Linux version 6.19.0+ (user@host) (clang version 20.1.8 (Fedora 20.1.8-4.fc42), LLD 20.1.8) #1 SMP PREEMPT_DYNAMIC 1970-01-01

Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-02-22 08:26:33 -08:00
..
capabilities.h KVM: x86/pmu: Load/save GLOBAL_CTRL via entry/exit fields for mediated PMU 2026-01-08 11:52:07 -08:00
common.h KVM: VMX: Fix check for valid GVA on an EPT violation 2025-11-06 06:06:18 -08:00
hyperv.c KVM: x86: drop x86.h include from cpuid.h 2024-11-01 09:22:23 -07:00
hyperv.h KVM: x86: Replace (almost) all guest CPUID feature queries with cpu_caps 2024-12-18 14:20:15 -08:00
hyperv_evmcs.c KVM: VMX: Add a wrapper around ROL16() to get a vmcs12 from a field encoding 2026-01-16 07:48:00 -08:00
hyperv_evmcs.h KVM: VMX: Add a wrapper around ROL16() to get a vmcs12 from a field encoding 2026-01-16 07:48:00 -08:00
main.c KVM: TDX: Convert INIT_MEM_REGION and INIT_VCPU to "unlocked" vCPU ioctl 2025-11-05 11:17:30 -08:00
nested.c Merge tag 'kvm-x86-pmu-6.20' of https://github.com/kvm-x86/linux into HEAD 2026-02-11 12:45:40 -05:00
nested.h KVM: VMX: Remove declaration of nested_mark_vmcs12_pages_dirty() 2026-01-14 06:01:03 -08:00
pmu_intel.c KVM: VMX: Add mediated PMU support for CPUs without "save perf global ctrl" 2026-01-08 11:52:23 -08:00
pmu_intel.h KVM: x86/pmu: Disable interception of select PMU MSRs for mediated vPMUs 2026-01-08 11:52:08 -08:00
posted_intr.c KVM: VMX: WARN if VT-d Posted IRQs aren't possible when starting IRQ bypass 2025-06-23 09:50:47 -07:00
posted_intr.h KVM: x86: Decouple device assignment from IRQ bypass 2025-06-23 09:50:46 -07:00
run_flags.h KVM: VMX: Use on-stack copy of @flags in __vmx_vcpu_run() 2025-11-18 16:22:35 -08:00
sgx.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
sgx.h KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC 2021-04-20 04:18:56 -04:00
tdx.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tdx.h KVM TDX changes for 6.19: 2025-11-26 09:36:37 +01:00
tdx_arch.h KVM: TDX: Handle TDX PV HLT hypercall 2025-03-14 14:20:57 -04:00
tdx_errno.h KVM: TDX: Add a place holder to handle TDX VM exit 2025-03-14 14:20:54 -04:00
vmcs.h KVM: nVMX: Disallow access to vmcs12 fields that aren't supported by "hardware" 2026-01-26 06:23:51 -08:00
vmcs12.c KVM: nVMX: Disallow access to vmcs12 fields that aren't supported by "hardware" 2026-01-26 06:23:51 -08:00
vmcs12.h KVM: nVMX: Disallow access to vmcs12 fields that aren't supported by "hardware" 2026-01-26 06:23:51 -08:00
vmcs_shadow_fields.h KVM: Fix some out-dated function names in comment 2020-01-21 13:57:27 +01:00
vmenter.S KVM VMX changes for 6.19: 2025-11-26 09:44:52 +01:00
vmx.c Merge tag 'kvm-x86-pmu-6.20' of https://github.com/kvm-x86/linux into HEAD 2026-02-11 12:45:40 -05:00
vmx.h Merge tag 'kvm-x86-pmu-6.20' of https://github.com/kvm-x86/linux into HEAD 2026-02-11 12:45:40 -05:00
vmx_onhyperv.c KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch} 2023-12-07 09:34:06 -08:00
vmx_onhyperv.h hyperv: Switch from hyperv-tlfs.h to hyperv/hvhdk.h 2025-01-10 00:54:21 +00:00
vmx_ops.h KVM: VMX: Use named operands in inline asm 2025-03-04 11:21:39 +01:00
x86_ops.h KVM VMX changes for 6.19: 2025-11-26 09:44:52 +01:00