TDX Guest: TDX core support
Subsystems (8)
v8 cover TDX Guest: TDX core support
Hi All,
Intel's Trust Domain Extensions (TDX) protects confidential guest VMs from the host and physical attacks by isolating the guest register state and by encrypting the guest memory. In TDX, a special TDX module sits between the host and the guest, and runs in a special mode and manages the guest/host separation.
Please review and consider applying.
More details of TDX guests can be found in Documentation/x86/tdx.rst.
Dependencies:
-------------
The patchset depends on changes in swiotlb-init-cleanup branch of the Christoph's misc tree[1]. It makes SWIOTLB forced for platforms with CC_ATTR_GUEST_MEM_ENCRYPT. These changes are not required to apply the patchset, but the kernel will not be bootable on TDX platform.
[1] git://git.infradead.org/users/hch/misc swiotlb-init-cleanup
SEV/TDX comparison:
-------------------
TDX has a lot of similarities to SEV. It enhances confidentiality of guest memory and state (like registers) and includes a new exception (#VE) for the same basic reasons as SEV-ES. Like SEV-SNP (not merged yet), TDX limits the host's ability to make changes in the guest physical address space.
TDX/VM comparison:
------------------
Some of the key differences between TD and regular VM is,
1. Multi CPU bring-up is done using the ACPI MADT wake-up table.
2. A new #VE exception handler is added. The TDX module injects #VE exception to the guest TD in cases of instructions that need to be emulated, disallowed MSR accesses, etc.
3. By default memory is marked as private, and TD will selectively share it with VMM based on need.
You can find TDX related documents in the following link.
https://software.intel.com/content/www/br/pt/develop/articles/intel-trust-domain-extensions.html
Git tree:
https://github.com/intel/tdx.git guest-upstream
Previous version:
https://lore.kernel.org/r/[email protected]
Changes from v7:
- Rebased to v5.18-rc1
- Actually address Thomas' feedback on patch 02/30
- Rework try_accept_one() to fix build issue with older GCC;
- Remove timeout on a secondary vCPU wake up;
- Drop protection from re-wakeup as it is handled by core;
- Fix TDX_SEAMCALL_VMFAILINVALID definition;
- Updates to commit messages;
- Add Reviewed-bys;
Changes from v6:
- Drop unused early_is_tdx_guest() and tdx_guest_detected;
- Drop unused port I/O callback in pio_ops;
- Restructure code around TDX_GET_INFO, cc_mask and physical_mask;
- Drop unneeded mailbox_lock in ACPI wake up code;
- Use memory barrier for serialzation around acpi_mp_wake_mailbox;
- Update comments and commit messages;
- Add Reviewed-bys and Suggested-by;
- Fix few nits from checkpatch;
Changes from v5:
- Drop paranoid check against TDX_IDENT;
- Move files around;
- Clarify why TDX_SEAMCALL_VMFAILINVALID has the value it has;
- Better diagnostics for TDVMCALL failure;
- WARN() instead of BUG() for confused instruction decoder for MMIO;
- Rework port I/O in decompression code to avoid "pio_ops." at all call sites
of I/O helpers;
- Refactor code around tdx_enc_status_changed()
- Utilize updated swiotlb code to initialize it for TDX (swiotlb-init-cleanup branch)
- io_apic_set_fixmap_nocache() -> io_apic_set_fixmap();
- Updates to comments and commit messages;
Changes from v4:
- Update comments for TDX_MODULE_CALL()
- Clarify how TDX_SEAMCALL_VMFAILINVALID is defined
- Updated comments in __tdx_hypercall()
- Get rid of td_info
- Move exc_general_protection() refactoring into a separate patch
- Updates comments around #VE handling
- Add hcall_func() to differenciate exit reason from hypercalls
- Only allow hypervisor CPUID leaves to be handled with #VE
- Update MMIO handling comments and commit message
- Update commit messages from port I/O related pateches
- Rename init_io_ops() to init_default_io_ops()
- Refactor handle_io()
- Fold warning fix from a stand along patch to patch that make the warning triggerable
- Do not flush cache on entering sleep state for any virtual machine, not only TDX
- Documentation is updated
Changes from v3:
- Rebased on top of merged x86/coco patches
- Sanity build-time check for TDX detection (Cyrill Gorcunov)
- Correction in the documentation regarding #VE for CPUID
Changes from v2:
- Move TDX-Guest-specific code under arch/x86/coco/
- Code shared between host and guest is under arch/x86/virt/
- Fix handling CR4.MCE for !CONFIG_X86_MCE
- A separate patch to clarify CR0.NE situation
- Use u8/u16/u32 for port I/O handler
- Rework TDCALL helpers:
+ consolidation between guest and host
+ clearer interface
+ A new tdx_module_call() panic() if TDCALL fails
- Rework MMIO handling to imporove readability
- New generic API to deal encryption masks
- Move tdx_early_init() before copy_bootdata() (again)
- Rework #VE handing to share more code with #GP handler
- Rework __set_memory_enc_pgtable() to provide proper abstruction for both SME/SEV and TDX cases.
- Fix warning on build with X86_MEM_ENCRYPT=y
- ... and more
Changes from v1:
- Rebased to tip/master (94985da003a4).
- Address feedback from Borislav and Josh.
- Wire up KVM hypercalls. Needed to send IPI.
Andi Kleen (1):
x86/tdx: Port I/O: add early boot support
Isaku Yamahata (1):
x86/tdx: ioapic: Add shared bit for IOAPIC base address
Kirill A. Shutemov (18):
x86/tdx: Provide common base for SEAMCALL and TDCALL C wrappers x86/tdx: Extend the confidential computing API to support TDX guests x86/tdx: Exclude shared bit from __PHYSICAL_MASK x86/traps: Refactor exc_general_protection()
x86/traps: Add #VE support for TDX guest
x86/tdx: Add HLT support for TDX guests
x86/tdx: Add MSR support for TDX guests
x86/tdx: Handle CPUID via #VE
x86/tdx: Handle in-kernel MMIO
x86: Adjust types used in port I/O helpers
x86: Consolidate port I/O helpers
x86/boot: Port I/O: allow to hook up alternative helpers x86/boot: Port I/O: add decompression-time support for TDX x86/boot: Set CR0.NE early and keep it set during the boot x86/tdx: Make pages shared in ioremap()
x86/mm/cpa: Add support for TDX shared memory
x86/mm: Make DMA memory shared for TD guest
ACPICA: Avoid cache flush inside virtual machines
Kuppuswamy Sathyanarayanan (8):
x86/tdx: Detect running as a TDX guest in early boot x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper
functions
x86/tdx: Detect TDX at early kernel decompression time x86/tdx: Port I/O: add runtime hypercalls
x86/tdx: Wire up KVM hypercalls
x86/acpi, x86/boot: Add multiprocessor wake-up support x86/topology: Disable CPU online/offline control for TDX guests Documentation/x86: Document TDX kernel architecture
Sean Christopherson (2):
x86/boot: Add a trampoline for booting APs via firmware handoff x86/boot: Avoid #VE during boot for TDX platforms
Documentation/x86/index.rst | 1 + Documentation/x86/tdx.rst | 214 +++++++ arch/x86/Kconfig | 15 + arch/x86/boot/boot.h | 37 +- arch/x86/boot/compressed/Makefile | 1 + arch/x86/boot/compressed/head_64.S | 27 +- arch/x86/boot/compressed/misc.c | 12 + arch/x86/boot/compressed/misc.h | 4 +- arch/x86/boot/compressed/pgtable.h | 2 +- arch/x86/boot/compressed/tdcall.S | 3 + arch/x86/boot/compressed/tdx.c | 77 +++ arch/x86/boot/compressed/tdx.h | 13 + arch/x86/boot/cpuflags.c | 3 +- arch/x86/boot/cpuflags.h | 1 + arch/x86/boot/io.h | 41 ++ arch/x86/boot/main.c | 4 + arch/x86/coco/Makefile | 2 + arch/x86/coco/core.c | 22 +- arch/x86/coco/tdx/Makefile | 3 + arch/x86/coco/tdx/tdcall.S | 204 +++++++ arch/x86/coco/tdx/tdx.c | 692 +++++++++++++++++++++++ arch/x86/include/asm/acenv.h | 14 +- arch/x86/include/asm/apic.h | 7 + arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/disabled-features.h | 8 +- arch/x86/include/asm/idtentry.h | 4 + arch/x86/include/asm/io.h | 42 +- arch/x86/include/asm/kvm_para.h | 22 + arch/x86/include/asm/mem_encrypt.h | 6 +- arch/x86/include/asm/realmode.h | 1 + arch/x86/include/asm/shared/io.h | 34 ++ arch/x86/include/asm/shared/tdx.h | 40 ++ arch/x86/include/asm/tdx.h | 91 +++ arch/x86/kernel/acpi/boot.c | 93 ++- arch/x86/kernel/apic/apic.c | 10 + arch/x86/kernel/apic/io_apic.c | 18 +- arch/x86/kernel/asm-offsets.c | 17 + arch/x86/kernel/head64.c | 7 + arch/x86/kernel/head_64.S | 28 +- arch/x86/kernel/idt.c | 3 + arch/x86/kernel/process.c | 4 + arch/x86/kernel/smpboot.c | 12 +- arch/x86/kernel/traps.c | 143 ++++- arch/x86/mm/ioremap.c | 5 + arch/x86/mm/mem_encrypt.c | 9 +- arch/x86/realmode/rm/header.S | 1 + arch/x86/realmode/rm/trampoline_64.S | 57 +- arch/x86/realmode/rm/trampoline_common.S | 12 +- arch/x86/realmode/rm/wakemain.c | 4 + arch/x86/virt/vmx/tdx/tdxcall.S | 96 ++++ include/linux/cc_platform.h | 10 + kernel/cpu.c | 7 + 52 files changed, 2065 insertions(+), 119 deletions(-) create mode 100644 Documentation/x86/tdx.rst create mode 100644 arch/x86/boot/compressed/tdcall.S create mode 100644 arch/x86/boot/compressed/tdx.c create mode 100644 arch/x86/boot/compressed/tdx.h create mode 100644 arch/x86/boot/io.h create mode 100644 arch/x86/coco/tdx/Makefile create mode 100644 arch/x86/coco/tdx/tdcall.S create mode 100644 arch/x86/coco/tdx/tdx.c create mode 100644 arch/x86/include/asm/shared/io.h create mode 100644 arch/x86/include/asm/shared/tdx.h create mode 100644 arch/x86/include/asm/tdx.h create mode 100644 arch/x86/virt/vmx/tdx/tdxcall.S
Signature · 1 line
2.35.1
PATCH v8 1/30 x86/tdx: Detect running as a TDX guest in early boot
From: Kuppuswamy Sathyanarayanan <[email protected]>
In preparation of extending cc_platform_has() API to support TDX guest, use CPUID instruction to detect support for TDX guests in the early boot code (via tdx_early_init()). Since copy_bootdata() is the first user of cc_platform_has() API, detect the TDX guest status before it.
Define a synthetic feature flag (X86_FEATURE_TDX_GUEST) and set this bit in a valid TDX guest platform.
--- arch/x86/Kconfig | 12 ++++++++++++ arch/x86/coco/Makefile | 2 ++ arch/x86/coco/tdx/Makefile | 3 +++ arch/x86/coco/tdx/tdx.c | 22 ++++++++++++++++++++++ arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/disabled-features.h | 8 +++++++- arch/x86/include/asm/tdx.h | 21 +++++++++++++++++++++ arch/x86/kernel/head64.c | 4 ++++ 8 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 arch/x86/coco/tdx/Makefile create mode 100644 arch/x86/coco/tdx/tdx.c create mode 100644 arch/x86/include/asm/tdx.h
arch/x86/Kconfig +12 -0
@@ -878,6 +878,18 @@ config ACRN_GUEST IOT with small footprint and real-time features. More details can be found in https://projectacrn.org/. +config INTEL_TDX_GUEST + bool "Intel TDX (Trust Domain Extensions) - Guest Support" + depends on X86_64 && CPU_SUP_INTEL + depends on X86_X2APIC + help + Support running as a guest under Intel TDX. Without this support, + the guest kernel can not boot or run under TDX. + TDX includes memory encryption and integrity capabilities + which protect the confidentiality and integrity of guest + memory contents and CPU state. TDX guests are protected from + some attacks from the VMM. + endif #HYPERVISOR_GUEST source "arch/x86/Kconfig.cpu"
arch/x86/coco/Makefile +2 -0
@@ -4,3 +4,5 @@ KASAN_SANITIZE_core.o := n CFLAGS_core.o += -fno-stack-protector obj-y += core.o + +obj-$(CONFIG_INTEL_TDX_GUEST) += tdx/
arch/x86/coco/tdx/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += tdx.o
arch/x86/coco/tdx/tdx.c new file +22 -0
@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2021-2022 Intel Corporation */ + +#undef pr_fmt +#define pr_fmt (fmt) "tdx: " fmt + +#include <linux/cpufeature.h> +#include <asm/tdx.h> + +void __init tdx_early_init (void ) +{ +u32 eax, sig[3 ]; + +cpuid_count (TDX_CPUID_LEAF_ID ,0 , &eax, &sig[0 ], &sig[2 ], &sig[1 ]); + +if (memcmp (TDX_IDENT , sig,sizeof (sig))) +return ; + +setup_force_cpu_cap (X86_FEATURE_TDX_GUEST ); + +pr_info ("Guest detected\n" ); +}
arch/x86/include/asm/cpufeatures.h +1 -0
@@ -238,6 +238,7 @@#define X86_FEATURE_VMW_VMMCALL ( 8*32+19)/* "" VMware prefers VMMCALL hypercall instruction */ #define X86_FEATURE_PVUNLOCK ( 8*32+20)/* "" PV unlock function */ #define X86_FEATURE_VCPUPREEMPT ( 8*32+21)/* "" PV vcpu_is_preempted function */ +#define X86_FEATURE_TDX_GUEST ( 8*32+22)/* Intel Trust Domain Extensions Guest */ /* Intel-defined CPU features, CPUID level 0x00000007:0 (EBX), word 9 */ #define X86_FEATURE_FSGSBASE ( 9*32+ 0)/* RDFSBASE, WRFSBASE, RDGSBASE, WRGSBASE instructions*/
arch/x86/include/asm/disabled-features.h +7 -1
@@ -68,6 +68,12 @@# define DISABLE_SGX (1 << (X86_FEATURE_SGX & 31))#endif +#ifdef CONFIG_INTEL_TDX_GUEST +# define DISABLE_TDX_GUEST 0 +#else +# define DISABLE_TDX_GUEST (1 << (X86_FEATURE_TDX_GUEST & 31)) +#endif +/* * Make sure to add features to the correct mask */
@@ -79,7 +85,7 @@#define DISABLED_MASK5 0#define DISABLED_MASK6 0#define DISABLED_MASK7 (DISABLE_PTI) -#define DISABLED_MASK8 0 +#define DISABLED_MASK8 (DISABLE_TDX_GUEST)#define DISABLED_MASK9 (DISABLE_SMAP|DISABLE_SGX)#define DISABLED_MASK10 0#define DISABLED_MASK11 0
arch/x86/include/asm/tdx.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2021-2022 Intel Corporation */ +#ifndef _ASM_X86_TDX_H +#define _ASM_X86_TDX_H + +#include <linux/init.h> + +#define TDX_CPUID_LEAF_ID 0x21 +#define TDX_IDENT "IntelTDX " + +#ifdef CONFIG_INTEL_TDX_GUEST + +void __init tdx_early_init (void ); + +#else + +static inline void tdx_early_init (void ) { }; + +#endif /* CONFIG_INTEL_TDX_GUEST */ + +#endif /* _ASM_X86_TDX_H */
arch/x86/kernel/head64.c +4 -0
@@ -40,6 +40,7 @@#include <asm/extable.h> #include <asm/trapnr.h> #include <asm/sev.h> +#include <asm/tdx.h> /* * Manage page tables very early on.
@@ -514,6 +515,9 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)idt_setup_early_handler (); +/* Needed before cc_platform_has() can be used for TDX */ +tdx_early_init (); +copy_bootdata (__va (real_mode_data));/*
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Detect running as a TDX guest in early boot
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 59bd54a84d15e9335de5b8abe7b3b9713a36b99b Gitweb: https://git.kernel.org/tip/59bd54a84d15e9335de5b8abe7b3b9713a36b99b Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:10 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:50 -07:00
x86/tdx: Detect running as a TDX guest in early boot
In preparation of extending cc_platform_has() API to support TDX guest, use CPUID instruction to detect support for TDX guests in the early boot code (via tdx_early_init()). Since copy_bootdata() is the first user of cc_platform_has() API, detect the TDX guest status before it.
Define a synthetic feature flag (X86_FEATURE_TDX_GUEST) and set this bit in a valid TDX guest platform.
--- arch/x86/Kconfig | 12 ++++++++++++ arch/x86/coco/Makefile | 2 ++ arch/x86/coco/tdx/Makefile | 3 +++ arch/x86/coco/tdx/tdx.c | 22 ++++++++++++++++++++++ arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/disabled-features.h | 8 +++++++- arch/x86/include/asm/tdx.h | 21 +++++++++++++++++++++ arch/x86/kernel/head64.c | 4 ++++ 8 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 arch/x86/coco/tdx/Makefile create mode 100644 arch/x86/coco/tdx/tdx.c create mode 100644 arch/x86/include/asm/tdx.h
arch/x86/Kconfig +12 -0
@@ -878,6 +878,18 @@ config ACRN_GUEST IOT with small footprint and real-time features. More details can be found in https://projectacrn.org/. +config INTEL_TDX_GUEST + bool "Intel TDX (Trust Domain Extensions) - Guest Support" + depends on X86_64 && CPU_SUP_INTEL + depends on X86_X2APIC + help + Support running as a guest under Intel TDX. Without this support, + the guest kernel can not boot or run under TDX. + TDX includes memory encryption and integrity capabilities + which protect the confidentiality and integrity of guest + memory contents and CPU state. TDX guests are protected from + some attacks from the VMM. + endif #HYPERVISOR_GUEST source "arch/x86/Kconfig.cpu"
arch/x86/coco/Makefile +2 -0
@@ -4,3 +4,5 @@ KASAN_SANITIZE_core.o := n CFLAGS_core.o += -fno-stack-protector obj-y += core.o + +obj-$(CONFIG_INTEL_TDX_GUEST) += tdx/
arch/x86/coco/tdx/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += tdx.o
arch/x86/coco/tdx/tdx.c new file +22 -0
@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2021-2022 Intel Corporation */ + +#undef pr_fmt +#define pr_fmt (fmt) "tdx: " fmt + +#include <linux/cpufeature.h> +#include <asm/tdx.h> + +void __init tdx_early_init (void ) +{ +u32 eax, sig[3 ]; + +cpuid_count (TDX_CPUID_LEAF_ID ,0 , &eax, &sig[0 ], &sig[2 ], &sig[1 ]); + +if (memcmp (TDX_IDENT , sig,sizeof (sig))) +return ; + +setup_force_cpu_cap (X86_FEATURE_TDX_GUEST ); + +pr_info ("Guest detected\n" ); +}
arch/x86/include/asm/cpufeatures.h +1 -0
@@ -238,6 +238,7 @@#define X86_FEATURE_VMW_VMMCALL ( 8*32+19)/* "" VMware prefers VMMCALL hypercall instruction */ #define X86_FEATURE_PVUNLOCK ( 8*32+20)/* "" PV unlock function */ #define X86_FEATURE_VCPUPREEMPT ( 8*32+21)/* "" PV vcpu_is_preempted function */ +#define X86_FEATURE_TDX_GUEST ( 8*32+22)/* Intel Trust Domain Extensions Guest */ /* Intel-defined CPU features, CPUID level 0x00000007:0 (EBX), word 9 */ #define X86_FEATURE_FSGSBASE ( 9*32+ 0)/* RDFSBASE, WRFSBASE, RDGSBASE, WRGSBASE instructions*/
arch/x86/include/asm/disabled-features.h +7 -1
@@ -68,6 +68,12 @@# define DISABLE_SGX (1 << (X86_FEATURE_SGX & 31))#endif +#ifdef CONFIG_INTEL_TDX_GUEST +# define DISABLE_TDX_GUEST 0 +#else +# define DISABLE_TDX_GUEST (1 << (X86_FEATURE_TDX_GUEST & 31)) +#endif +/* * Make sure to add features to the correct mask */
@@ -79,7 +85,7 @@#define DISABLED_MASK5 0#define DISABLED_MASK6 0#define DISABLED_MASK7 (DISABLE_PTI) -#define DISABLED_MASK8 0 +#define DISABLED_MASK8 (DISABLE_TDX_GUEST)#define DISABLED_MASK9 (DISABLE_SMAP|DISABLE_SGX)#define DISABLED_MASK10 0#define DISABLED_MASK11 0
arch/x86/include/asm/tdx.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2021-2022 Intel Corporation */ +#ifndef _ASM_X86_TDX_H +#define _ASM_X86_TDX_H + +#include <linux/init.h> + +#define TDX_CPUID_LEAF_ID 0x21 +#define TDX_IDENT "IntelTDX " + +#ifdef CONFIG_INTEL_TDX_GUEST + +void __init tdx_early_init (void ); + +#else + +static inline void tdx_early_init (void ) { }; + +#endif /* CONFIG_INTEL_TDX_GUEST */ + +#endif /* _ASM_X86_TDX_H */
arch/x86/kernel/head64.c +4 -0
@@ -40,6 +40,7 @@#include <asm/extable.h> #include <asm/trapnr.h> #include <asm/sev.h> +#include <asm/tdx.h> /* * Manage page tables very early on.
@@ -514,6 +515,9 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)idt_setup_early_handler (); +/* Needed before cc_platform_has() can be used for TDX */ +tdx_early_init (); +copy_bootdata (__va (real_mode_data));/*
PATCH v8 2/30 x86/tdx: Provide common base for SEAMCALL and TDCALL C wrappers
In reply to Kirill A. ShutemovSecure Arbitration Mode (SEAM) is an extension of VMX architecture. It defines a new VMX root operation (SEAM VMX root) and a new VMX non-root operation (SEAM VMX non-root) which are both isolated from the legacy VMX operation where the host kernel runs.
A CPU-attested software module (called 'TDX module') runs in SEAM VMX root to manage and protect VMs running in SEAM VMX non-root. SEAM VMX root is also used to host another CPU-attested software module (called 'P-SEAMLDR') to load and update the TDX module.
Host kernel transits to either P-SEAMLDR or TDX module via the new SEAMCALL instruction, which is essentially a VMExit from VMX root mode to SEAM VMX root mode. SEAMCALLs are leaf functions defined by P-SEAMLDR and TDX module around the new SEAMCALL instruction.
A guest kernel can also communicate with TDX module via TDCALL instruction.
TDCALLs and SEAMCALLs use an ABI different from the x86-64 system-v ABI. RAX is used to carry both the SEAMCALL leaf function number (input) and the completion status (output). Additional GPRs (RCX, RDX, R8-R11) may be further used as both input and output operands in individual leaf.
TDCALL and SEAMCALL share the same ABI and require the largely same code to pass down arguments and retrieve results.
Define an assembly macro that can be used to implement C wrapper for both TDCALL and SEAMCALL.
---
TDCALL wrapper will be implemented using the macro later in the series. SEAMCALL wrapper is out-of-scope for the series and will be implemented as part of TDX host enabling.
--- arch/x86/include/asm/tdx.h | 29 ++++++++++ arch/x86/kernel/asm-offsets.c | 9 ++++ arch/x86/virt/vmx/tdx/tdxcall.S | 96 +++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 arch/x86/virt/vmx/tdx/tdxcall.S
arch/x86/include/asm/tdx.h +29 -0
@@ -4,10 +4,38 @@#define _ASM_X86_TDX_H#include <linux/init.h> +#include <linux/bits.h> #define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX " +/* +* SW-defined error codes. +* +* Bits 47:40 == 0xFF indicate Reserved status code class that never used by +* TDX module. +*/ +#define TDX_ERROR _BITUL(63) +#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40)) +#define TDX_SEAMCALL_VMFAILINVALID (TDX_SW_ERROR | _UL(0xFFFF0000)) + +#ifndef __ASSEMBLY__ + +/* +* Used to gather the output registers values of the TDCALL and SEAMCALL +* instructions when requesting services from the TDX module. +* +* This is a software only structure and not part of the TDX module/VMM ABI. +*/ +struct tdx_module_output { +u64 rcx; +u64 rdx; +u64 r8; +u64 r9; +u64 r10; +u64 r11; +}; +#ifdef CONFIG_INTEL_TDX_GUEST void __init tdx_early_init (void );
@@ -18,4 +46,5 @@ static inline void tdx_early_init(void) { };#endif /* CONFIG_INTEL_TDX_GUEST */ +#endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_TDX_H */
arch/x86/kernel/asm-offsets.c +9 -0
@@ -18,6 +18,7 @@#include <asm/bootparam.h> #include <asm/suspend.h> #include <asm/tlbflush.h> +#include <asm/tdx.h> #ifdef CONFIG_XEN #include <xen/interface/xen.h>
@@ -65,6 +66,14 @@ static void __used common(void)OFFSET (XEN_vcpu_info_arch_cr2, vcpu_info, arch.cr2);#endif +BLANK (); +OFFSET (TDX_MODULE_rcx, tdx_module_output, rcx); +OFFSET (TDX_MODULE_rdx, tdx_module_output, rdx); +OFFSET (TDX_MODULE_r8, tdx_module_output, r8); +OFFSET (TDX_MODULE_r9, tdx_module_output, r9); +OFFSET (TDX_MODULE_r10, tdx_module_output, r10); +OFFSET (TDX_MODULE_r11, tdx_module_output, r11); +BLANK ();OFFSET (BP_scratch, boot_params, scratch);OFFSET (BP_secure_boot, boot_params, secure_boot);
arch/x86/virt/vmx/tdx/tdxcall.S new file +96 -0
96 lines not on this page · raw message
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Provide common base for SEAMCALL and TDCALL C wrappers
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 527a534c732604931959e73e9c3a8952d8c1a994 Gitweb: https://git.kernel.org/tip/527a534c732604931959e73e9c3a8952d8c1a994 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:11 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:50 -07:00
x86/tdx: Provide common base for SEAMCALL and TDCALL C wrappers
Secure Arbitration Mode (SEAM) is an extension of VMX architecture. It defines a new VMX root operation (SEAM VMX root) and a new VMX non-root operation (SEAM VMX non-root) which are both isolated from the legacy VMX operation where the host kernel runs.
A CPU-attested software module (called 'TDX module') runs in SEAM VMX root to manage and protect VMs running in SEAM VMX non-root. SEAM VMX root is also used to host another CPU-attested software module (called 'P-SEAMLDR') to load and update the TDX module.
Host kernel transits to either P-SEAMLDR or TDX module via the new SEAMCALL instruction, which is essentially a VMExit from VMX root mode to SEAM VMX root mode. SEAMCALLs are leaf functions defined by P-SEAMLDR and TDX module around the new SEAMCALL instruction.
A guest kernel can also communicate with TDX module via TDCALL instruction.
TDCALLs and SEAMCALLs use an ABI different from the x86-64 system-v ABI. RAX is used to carry both the SEAMCALL leaf function number (input) and the completion status (output). Additional GPRs (RCX, RDX, R8-R11) may be further used as both input and output operands in individual leaf.
TDCALL and SEAMCALL share the same ABI and require the largely same code to pass down arguments and retrieve results.
Define an assembly macro that can be used to implement C wrapper for both TDCALL and SEAMCALL.
--- arch/x86/include/asm/tdx.h | 29 ++++++++++- arch/x86/kernel/asm-offsets.c | 9 +++- arch/x86/virt/vmx/tdx/tdxcall.S | 96 ++++++++++++++++++++++++++++++++- 3 files changed, 134 insertions(+) create mode 100644 arch/x86/virt/vmx/tdx/tdxcall.S
arch/x86/include/asm/tdx.h +29 -0
@@ -4,10 +4,38 @@#define _ASM_X86_TDX_H#include <linux/init.h> +#include <linux/bits.h> #define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX " +/* +* SW-defined error codes. +* +* Bits 47:40 == 0xFF indicate Reserved status code class that never used by +* TDX module. +*/ +#define TDX_ERROR _BITUL(63) +#define TDX_SW_ERROR (TDX_ERROR | GENMASK_ULL(47, 40)) +#define TDX_SEAMCALL_VMFAILINVALID (TDX_SW_ERROR | _UL(0xFFFF0000)) + +#ifndef __ASSEMBLY__ + +/* +* Used to gather the output registers values of the TDCALL and SEAMCALL +* instructions when requesting services from the TDX module. +* +* This is a software only structure and not part of the TDX module/VMM ABI. +*/ +struct tdx_module_output { +u64 rcx; +u64 rdx; +u64 r8; +u64 r9; +u64 r10; +u64 r11; +}; +#ifdef CONFIG_INTEL_TDX_GUEST void __init tdx_early_init (void );
@@ -18,4 +46,5 @@ static inline void tdx_early_init(void) { };#endif /* CONFIG_INTEL_TDX_GUEST */ +#endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_TDX_H */
arch/x86/kernel/asm-offsets.c +9 -0
@@ -18,6 +18,7 @@#include <asm/bootparam.h> #include <asm/suspend.h> #include <asm/tlbflush.h> +#include <asm/tdx.h> #ifdef CONFIG_XEN #include <xen/interface/xen.h>
@@ -66,6 +67,14 @@ static void __used common(void)#endif BLANK (); +OFFSET (TDX_MODULE_rcx, tdx_module_output, rcx); +OFFSET (TDX_MODULE_rdx, tdx_module_output, rdx); +OFFSET (TDX_MODULE_r8, tdx_module_output, r8); +OFFSET (TDX_MODULE_r9, tdx_module_output, r9); +OFFSET (TDX_MODULE_r10, tdx_module_output, r10); +OFFSET (TDX_MODULE_r11, tdx_module_output, r11); + +BLANK ();OFFSET (BP_scratch, boot_params, scratch);OFFSET (BP_secure_boot, boot_params, secure_boot);OFFSET (BP_loadflags, boot_params, hdr.loadflags);
arch/x86/virt/vmx/tdx/tdxcall.S new file +96 -0
96 lines not on this page · raw message
PATCH v8 3/30 x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
Guests communicate with VMMs with hypercalls. Historically, these are implemented using instructions that are known to cause VMEXITs like VMCALL, VMLAUNCH, etc. However, with TDX, VMEXITs no longer expose the guest state to the host. This prevents the old hypercall mechanisms from working. So, to communicate with VMM, TDX specification defines a new instruction called TDCALL.
In a TDX based VM, since the VMM is an untrusted entity, an intermediary layer -- TDX module -- facilitates secure communication between the host and the guest. TDX module is loaded like a firmware into a special CPU mode called SEAM. TDX guests communicate with the TDX module using the TDCALL instruction.
A guest uses TDCALL to communicate with both the TDX module and VMM. The value of the RAX register when executing the TDCALL instruction is used to determine the TDCALL type. A leaf of TDCALL used to communicate with the VMM is called TDVMCALL.
Add generic interfaces to communicate with the TDX module and VMM (using the TDCALL instruction).
__tdx_module_call() - Used to communicate with the TDX module (via
TDCALL instruction).__tdx_hypercall() - Used by the guest to request services from
the VMM (via TDVMCALL leaf of TDCALL).
Also define an additional wrapper _tdx_hypercall(), which adds error handling support for the TDCALL failure.
The __tdx_module_call() and __tdx_hypercall() helper functions are implemented in assembly in a .S file. The TDCALL ABI requires shuffling arguments in and out of registers, which proved to be awkward with inline assembly.
Just like syscalls, not all TDVMCALL use cases need to use the same number of argument registers. The implementation here picks the current worst-case scenario for TDCALL (4 registers). For TDCALLs with fewer than 4 arguments, there will end up being a few superfluous (cheap) instructions. But, this approach maximizes code reuse.
For registers used by the TDCALL instruction, please check TDX GHCI specification, the section titled "TDCALL instruction" and "TDG.VP.VMCALL Interface".
Based on previous patch by Sean Christopherson.
--- arch/x86/coco/tdx/Makefile | 2 +- arch/x86/coco/tdx/tdcall.S | 191 ++++++++++++++++++++++++++++++++++ arch/x86/coco/tdx/tdx.c | 24 +++++ arch/x86/include/asm/tdx.h | 30 ++++++ arch/x86/kernel/asm-offsets.c | 8 ++ 5 files changed, 254 insertions(+), 1 deletion(-) create mode 100644 arch/x86/coco/tdx/tdcall.S
arch/x86/coco/tdx/Makefile +1 -1
@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -obj-y += tdx.o +obj-y += tdx.o tdcall.o
arch/x86/coco/tdx/tdcall.S new file +191 -0
191 lines not on this page · raw message
arch/x86/coco/tdx/tdx.c +24 -0
@@ -7,6 +7,30 @@#include <linux/cpufeature.h> #include <asm/tdx.h> +/* +* Wrapper for standard use of __tdx_hypercall with no output aside from +* return code. +*/ +static inline u64 _tdx_hypercall (u64 fn,u64 r12,u64 r13,u64 r14,u64 r15) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 = fn, + .r12 = r12, + .r13 = r13, + .r14 = r14, + .r15 = r15, + }; + +return __tdx_hypercall (&args,0 ); +} + +/* Called from __tdx_hypercall() for unrecoverable failure */ +void __tdx_hypercall_failed (void ) +{ +panic ("TDVMCALL failed. TDX module bug?" ); +} +void __init tdx_early_init (void ) {u32 eax, sig[3 ];
arch/x86/include/asm/tdx.h +30 -0
@@ -3,12 +3,17 @@#ifndef _ASM_X86_TDX_H#define _ASM_X86_TDX_H +#include <linux/bits.h> #include <linux/init.h> #include <linux/bits.h> #define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX " +#define TDX_HYPERCALL_STANDARD 0 + +#define TDX_HCALL_HAS_OUTPUT BIT(0) +/* * SW-defined error codes. *
@@ -36,10 +41,35 @@ struct tdx_module_output {u64 r11; }; +/* +* Used in __tdx_hypercall() to pass down and get back registers' values of +* the TDCALL instruction when requesting services from the VMM. +* +* This is a software only structure and not part of the TDX module/VMM ABI. +*/ +struct tdx_hypercall_args { +u64 r10; +u64 r11; +u64 r12; +u64 r13; +u64 r14; +u64 r15; +}; +#ifdef CONFIG_INTEL_TDX_GUEST void __init tdx_early_init (void ); +/* Used to communicate with the TDX module */ +u64 __tdx_module_call (u64 fn,u64 rcx,u64 rdx,u64 r8,u64 r9, +struct tdx_module_output *out); + +/* Used to request services from the VMM */ +u64 __tdx_hypercall (struct tdx_hypercall_args *args,unsigned long flags); + +/* Called from __tdx_hypercall() for unrecoverable failure */ +void __tdx_hypercall_failed (void ); +#else static inline void tdx_early_init (void ) { };
arch/x86/kernel/asm-offsets.c +8 -0
@@ -74,6 +74,14 @@ static void __used common(void)OFFSET (TDX_MODULE_r10, tdx_module_output, r10);OFFSET (TDX_MODULE_r11, tdx_module_output, r11); +BLANK (); +OFFSET (TDX_HYPERCALL_r10, tdx_hypercall_args, r10); +OFFSET (TDX_HYPERCALL_r11, tdx_hypercall_args, r11); +OFFSET (TDX_HYPERCALL_r12, tdx_hypercall_args, r12); +OFFSET (TDX_HYPERCALL_r13, tdx_hypercall_args, r13); +OFFSET (TDX_HYPERCALL_r14, tdx_hypercall_args, r14); +OFFSET (TDX_HYPERCALL_r15, tdx_hypercall_args, r15); +BLANK ();OFFSET (BP_scratch, boot_params, scratch);OFFSET (BP_secure_boot, boot_params, secure_boot);
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: eb94f1b6a70a683040d60d21bbb6ad65f082600a Gitweb: https://git.kernel.org/tip/eb94f1b6a70a683040d60d21bbb6ad65f082600a Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:12 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:50 -07:00
x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions
Guests communicate with VMMs with hypercalls. Historically, these are implemented using instructions that are known to cause VMEXITs like VMCALL, VMLAUNCH, etc. However, with TDX, VMEXITs no longer expose the guest state to the host. This prevents the old hypercall mechanisms from working. So, to communicate with VMM, TDX specification defines a new instruction called TDCALL.
In a TDX based VM, since the VMM is an untrusted entity, an intermediary layer -- TDX module -- facilitates secure communication between the host and the guest. TDX module is loaded like a firmware into a special CPU mode called SEAM. TDX guests communicate with the TDX module using the TDCALL instruction.
A guest uses TDCALL to communicate with both the TDX module and VMM. The value of the RAX register when executing the TDCALL instruction is used to determine the TDCALL type. A leaf of TDCALL used to communicate with the VMM is called TDVMCALL.
Add generic interfaces to communicate with the TDX module and VMM (using the TDCALL instruction).
__tdx_module_call() - Used to communicate with the TDX module (via
TDCALL instruction).__tdx_hypercall() - Used by the guest to request services from
the VMM (via TDVMCALL leaf of TDCALL).
Also define an additional wrapper _tdx_hypercall(), which adds error handling support for the TDCALL failure.
The __tdx_module_call() and __tdx_hypercall() helper functions are implemented in assembly in a .S file. The TDCALL ABI requires shuffling arguments in and out of registers, which proved to be awkward with inline assembly.
Just like syscalls, not all TDVMCALL use cases need to use the same number of argument registers. The implementation here picks the current worst-case scenario for TDCALL (4 registers). For TDCALLs with fewer than 4 arguments, there will end up being a few superfluous (cheap) instructions. But, this approach maximizes code reuse.
For registers used by the TDCALL instruction, please check TDX GHCI specification, the section titled "TDCALL instruction" and "TDG.VP.VMCALL Interface".
Based on previous patch by Sean Christopherson.
--- arch/x86/coco/tdx/Makefile | 2 +- arch/x86/coco/tdx/tdcall.S | 191 +++++++++++++++++++++++++++++++++- arch/x86/coco/tdx/tdx.c | 24 ++++- arch/x86/include/asm/tdx.h | 30 +++++- arch/x86/kernel/asm-offsets.c | 8 +- 5 files changed, 254 insertions(+), 1 deletion(-) create mode 100644 arch/x86/coco/tdx/tdcall.S
arch/x86/coco/tdx/Makefile +1 -1
@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -obj-y += tdx.o +obj-y += tdx.o tdcall.o
arch/x86/coco/tdx/tdcall.S new file +191 -0
191 lines not on this page · raw message
arch/x86/coco/tdx/tdx.c +24 -0
@@ -7,6 +7,30 @@#include <linux/cpufeature.h> #include <asm/tdx.h> +/* +* Wrapper for standard use of __tdx_hypercall with no output aside from +* return code. +*/ +static inline u64 _tdx_hypercall (u64 fn,u64 r12,u64 r13,u64 r14,u64 r15) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 = fn, + .r12 = r12, + .r13 = r13, + .r14 = r14, + .r15 = r15, + }; + +return __tdx_hypercall (&args,0 ); +} + +/* Called from __tdx_hypercall() for unrecoverable failure */ +void __tdx_hypercall_failed (void ) +{ +panic ("TDVMCALL failed. TDX module bug?" ); +} +void __init tdx_early_init (void ) {u32 eax, sig[3 ];
arch/x86/include/asm/tdx.h +30 -0
@@ -3,12 +3,17 @@#ifndef _ASM_X86_TDX_H#define _ASM_X86_TDX_H +#include <linux/bits.h> #include <linux/init.h> #include <linux/bits.h> #define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX " +#define TDX_HYPERCALL_STANDARD 0 + +#define TDX_HCALL_HAS_OUTPUT BIT(0) +/* * SW-defined error codes. *
@@ -36,10 +41,35 @@ struct tdx_module_output {u64 r11; }; +/* +* Used in __tdx_hypercall() to pass down and get back registers' values of +* the TDCALL instruction when requesting services from the VMM. +* +* This is a software only structure and not part of the TDX module/VMM ABI. +*/ +struct tdx_hypercall_args { +u64 r10; +u64 r11; +u64 r12; +u64 r13; +u64 r14; +u64 r15; +}; +#ifdef CONFIG_INTEL_TDX_GUEST void __init tdx_early_init (void ); +/* Used to communicate with the TDX module */ +u64 __tdx_module_call (u64 fn,u64 rcx,u64 rdx,u64 r8,u64 r9, +struct tdx_module_output *out); + +/* Used to request services from the VMM */ +u64 __tdx_hypercall (struct tdx_hypercall_args *args,unsigned long flags); + +/* Called from __tdx_hypercall() for unrecoverable failure */ +void __tdx_hypercall_failed (void ); +#else static inline void tdx_early_init (void ) { };
arch/x86/kernel/asm-offsets.c +8 -0
@@ -75,6 +75,14 @@ static void __used common(void)OFFSET (TDX_MODULE_r11, tdx_module_output, r11);BLANK (); +OFFSET (TDX_HYPERCALL_r10, tdx_hypercall_args, r10); +OFFSET (TDX_HYPERCALL_r11, tdx_hypercall_args, r11); +OFFSET (TDX_HYPERCALL_r12, tdx_hypercall_args, r12); +OFFSET (TDX_HYPERCALL_r13, tdx_hypercall_args, r13); +OFFSET (TDX_HYPERCALL_r14, tdx_hypercall_args, r14); +OFFSET (TDX_HYPERCALL_r15, tdx_hypercall_args, r15); + +BLANK ();OFFSET (BP_scratch, boot_params, scratch);OFFSET (BP_secure_boot, boot_params, secure_boot);OFFSET (BP_loadflags, boot_params, hdr.loadflags);
Peter Zijlstra
maintainerPATCH 1/1 x86/tdx: Fix tdx asm
Quoted 6 lines · On Sat, Apr 09, 2022 at 01:27:41AM -0000, tip-bot2 for Kuppuswamy…
(quoted diff) +6
-0+SYM_FUNC_START(__tdx_module_call) + FRAME_BEGIN + TDX_MODULE_CALL host=0 + FRAME_END + ret +SYM_FUNC_END(__tdx_module_call)
Review
Quoted 10 lines
(quoted diff) +8
-0+SYM_FUNC_START(__tdx_hypercall) + + retq +.Lpanic: + call __tdx_hypercall_failed + /* __tdx_hypercall_failed never returns */ + jmp .Lpanic +SYM_FUNC_END(__tdx_hypercall)
:-(
---
Subject: x86/tdx: Fix tdx asm
Because build-testing is over-rated, a few trivial objtool complaints:
vmlinux.o: warning: objtool: __tdx_module_call+0x3e: missing int3 after ret vmlinux.o: warning: objtool: __tdx_hypercall+0x6e: missing int3 after ret
--- arch/x86/coco/tdx/tdcall.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/coco/tdx/tdcall.S +2 -2
@@ -73,7 +73,7 @@ SYM_FUNC_START(__tdx_module_call) FRAME_BEGIN TDX_MODULE_CALL host=0 FRAME_END - ret + RET SYM_FUNC_END(__tdx_module_call) /*
@@ -196,7 +196,7 @@ SYM_FUNC_START(__tdx_hypercall) FRAME_END - retq + RET .Lpanic: call __tdx_hypercall_failed /* __tdx_hypercall_failed never returns */
[tip: x86/tdx] x86/tdx: Fix RETs in TDX asm
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: c796f02162e428b595ff70196dca161ee46b163b Gitweb: https://git.kernel.org/tip/c796f02162e428b595ff70196dca161ee46b163b Author: Peter Zijlstra <[email protected]> AuthorDate: Fri, 20 May 2022 10:38:39 +02:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Fri, 20 May 2022 12:53:22 +02:00
x86/tdx: Fix RETs in TDX asm
Because build-testing is over-rated, fix a few trivial objtool complaints:
vmlinux.o: warning: objtool: __tdx_module_call+0x3e: missing int3 after ret vmlinux.o: warning: objtool: __tdx_hypercall+0x6e: missing int3 after ret
--- arch/x86/coco/tdx/tdcall.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/coco/tdx/tdcall.S +2 -2
@@ -73,7 +73,7 @@ SYM_FUNC_START(__tdx_module_call) FRAME_BEGIN TDX_MODULE_CALL host=0 FRAME_END - ret + RET SYM_FUNC_END(__tdx_module_call) /*
@@ -196,7 +196,7 @@ SYM_FUNC_START(__tdx_hypercall) FRAME_END - retq + RET .Lpanic: call __tdx_hypercall_failed /* __tdx_hypercall_failed never returns */
Re: [PATCH] x86/tdx: Fix tdx asm
In reply to Peter ZijlstraQuoted 23 lines · Peter Zijlstra
Quoted 6 lines · On Sat, Apr 09, 2022 at 01:27:41AM -0000, tip-bot2 for Kuppuswamy…
(quoted diff) +6
-0+SYM_FUNC_START(__tdx_module_call) + FRAME_BEGIN + TDX_MODULE_CALL host=0 + FRAME_END + ret +SYM_FUNC_END(__tdx_module_call)Review
Quoted 10 lines
(quoted diff) +8
-0+SYM_FUNC_START(__tdx_hypercall) + + retq +.Lpanic: + call __tdx_hypercall_failed + /* __tdx_hypercall_failed never returns */ + jmp .Lpanic +SYM_FUNC_END(__tdx_hypercall):-(
---
Subject: x86/tdx: Fix tdx asm
Quoted 7 lines
Because build-testing is over-rated, a few trivial objtool complaints:
vmlinux.o: warning: objtool:
__tdx_module_call+0x3e: missing int3 after ret vmlinux.o: warning: objtool:__tdx_hypercall+0x6e: missing int3 after retFixes eb94f1b6a70a ("x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions")Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Oopsie :(
Quoted 27 lines
--- arch/x86/coco/tdx/tdcall.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/x86/coco/tdx/tdcall.S +2
-2@@ -73,7 +73,7 @@ SYM_FUNC_START(__tdx_module_call) FRAME_BEGIN TDX_MODULE_CALL host=0 FRAME_END - ret + RET SYM_FUNC_END(__tdx_module_call) /*@@ -196,7 +196,7 @@ SYM_FUNC_START(__tdx_hypercall) FRAME_END - retq + RET .Lpanic: call __tdx_hypercall_failed /* __tdx_hypercall_failed never returns */
Signature · 1 line
Kirill A. Shutemov
PATCH v8 4/30 x86/tdx: Extend the confidential computing API to support TDX guests
In reply to Kirill A. ShutemovConfidential Computing (CC) features (like string I/O unroll support, memory encryption/decryption support, etc) are conditionally enabled in the kernel using cc_platform_has() API. Since TDX guests also need to use these CC features, extend cc_platform_has() API and add TDX guest-specific CC attributes support.
CC API also provides an interface to deal with encryption mask. Extend it to cover TDX.
Details about which bit in the page table entry to be used to indicate shared/private state is determined by using the TDINFO TDCALL.
--- arch/x86/Kconfig | 1 + arch/x86/coco/core.c | 12 +++++++++++ arch/x86/coco/tdx/tdx.c | 47 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+)
arch/x86/Kconfig +1 -0
@@ -882,6 +882,7 @@ config INTEL_TDX_GUEST bool "Intel TDX (Trust Domain Extensions) - Guest Support" depends on X86_64 && CPU_SUP_INTEL depends on X86_X2APIC + select ARCH_HAS_CC_PLATFORM help Support running as a guest under Intel TDX. Without this support, the guest kernel can not boot or run under TDX.
arch/x86/coco/core.c +12 -0
@@ -87,9 +87,18 @@ EXPORT_SYMBOL_GPL(cc_platform_has);u64 cc_mkenc (u64 val) { +/* +* Both AMD and Intel use a bit in the page table to indicate +* encryption status of the page. +* +* - for AMD, bit *set* means the page is encrypted +* - for Intel *clear* means encrypted. +*/ switch (vendor) {case CC_VENDOR_AMD :return val | cc_mask; +case CC_VENDOR_INTEL : +return val & ~cc_mask;default :return val; }
@@ -97,9 +106,12 @@ u64 cc_mkenc(u64 val)u64 cc_mkdec (u64 val) { +/* See comment in cc_mkenc() */ switch (vendor) {case CC_VENDOR_AMD :return val & ~cc_mask; +case CC_VENDOR_INTEL : +return val | cc_mask;default :return val; }
arch/x86/coco/tdx/tdx.c +47 -0
68 lines not on this page · raw message
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Extend the confidential computing API to support TDX guests
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 41394e33f3a0ce791caf0e086e1fca850832ddec Gitweb: https://git.kernel.org/tip/41394e33f3a0ce791caf0e086e1fca850832ddec Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:13 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:50 -07:00
x86/tdx: Extend the confidential computing API to support TDX guests
Confidential Computing (CC) features (like string I/O unroll support, memory encryption/decryption support, etc) are conditionally enabled in the kernel using cc_platform_has() API. Since TDX guests also need to use these CC features, extend cc_platform_has() API and add TDX guest-specific CC attributes support.
CC API also provides an interface to deal with encryption mask. Extend it to cover TDX.
Details about which bit in the page table entry to be used to indicate shared/private state is determined by using the TDINFO TDCALL.
--- arch/x86/Kconfig | 1 +- arch/x86/coco/core.c | 12 ++++++++++- arch/x86/coco/tdx/tdx.c | 47 ++++++++++++++++++++++++++++++++++++++++- 3 files changed, 60 insertions(+)
arch/x86/Kconfig +1 -0
@@ -882,6 +882,7 @@ config INTEL_TDX_GUEST bool "Intel TDX (Trust Domain Extensions) - Guest Support" depends on X86_64 && CPU_SUP_INTEL depends on X86_X2APIC + select ARCH_HAS_CC_PLATFORM help Support running as a guest under Intel TDX. Without this support, the guest kernel can not boot or run under TDX.
arch/x86/coco/core.c +12 -0
@@ -87,9 +87,18 @@ EXPORT_SYMBOL_GPL(cc_platform_has);u64 cc_mkenc (u64 val) { +/* +* Both AMD and Intel use a bit in the page table to indicate +* encryption status of the page. +* +* - for AMD, bit *set* means the page is encrypted +* - for Intel *clear* means encrypted. +*/ switch (vendor) {case CC_VENDOR_AMD :return val | cc_mask; +case CC_VENDOR_INTEL : +return val & ~cc_mask;default :return val; }
@@ -97,9 +106,12 @@ u64 cc_mkenc(u64 val)u64 cc_mkdec (u64 val) { +/* See comment in cc_mkenc() */ switch (vendor) {case CC_VENDOR_AMD :return val & ~cc_mask; +case CC_VENDOR_INTEL : +return val | cc_mask;default :return val; }
arch/x86/coco/tdx/tdx.c +47 -0
68 lines not on this page · raw message
PATCH v8 5/30 x86/tdx: Exclude shared bit from __PHYSICAL_MASK
In reply to Kirill A. ShutemovIn TDX guests, by default memory is protected from host access. If a guest needs to communicate with the VMM (like the I/O use case), it uses a single bit in the physical address to communicate the protected/shared attribute of the given page.
In the x86 ARCH code, __PHYSICAL_MASK macro represents the width of the physical address in the given architecture. It is used in creating physical PAGE_MASK for address bits in the kernel. Since in TDX guest, a single bit is used as metadata, it needs to be excluded from valid physical address bits to avoid using incorrect addresses bits in the kernel.
Enable DYNAMIC_PHYSICAL_MASK to support updating the __PHYSICAL_MASK.
--- arch/x86/Kconfig | 1 + arch/x86/coco/tdx/tdx.c | 8 ++++++++ 2 files changed, 9 insertions(+)
arch/x86/Kconfig +1 -0
@@ -883,6 +883,7 @@ config INTEL_TDX_GUEST depends on X86_64 && CPU_SUP_INTEL depends on X86_X2APIC select ARCH_HAS_CC_PLATFORM + select DYNAMIC_PHYSICAL_MASK help Support running as a guest under Intel TDX. Without this support, the guest kernel can not boot or run under TDX.
arch/x86/coco/tdx/tdx.c +8 -0
@@ -89,5 +89,13 @@ void __init tdx_early_init(void) cc_mask =get_cc_mask ();cc_set_mask (cc_mask); +/* +* All bits above GPA width are reserved and kernel treats shared bit +* as flag, not as part of physical address. +* +* Adjust physical mask to only cover valid GPA bits. +*/ + physical_mask &= cc_mask -1 ; +pr_info ("Guest detected\n" ); }
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Exclude shared bit from __PHYSICAL_MASK
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 65fab5bc033aad1a9faf976caec46558c2f88319 Gitweb: https://git.kernel.org/tip/65fab5bc033aad1a9faf976caec46558c2f88319 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:14 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/tdx: Exclude shared bit from __PHYSICAL_MASK
In TDX guests, by default memory is protected from host access. If a guest needs to communicate with the VMM (like the I/O use case), it uses a single bit in the physical address to communicate the protected/shared attribute of the given page.
In the x86 ARCH code, __PHYSICAL_MASK macro represents the width of the physical address in the given architecture. It is used in creating physical PAGE_MASK for address bits in the kernel. Since in TDX guest, a single bit is used as metadata, it needs to be excluded from valid physical address bits to avoid using incorrect addresses bits in the kernel.
Enable DYNAMIC_PHYSICAL_MASK to support updating the __PHYSICAL_MASK.
--- arch/x86/Kconfig | 1 + arch/x86/coco/tdx/tdx.c | 8 ++++++++ 2 files changed, 9 insertions(+)
arch/x86/Kconfig +1 -0
@@ -883,6 +883,7 @@ config INTEL_TDX_GUEST depends on X86_64 && CPU_SUP_INTEL depends on X86_X2APIC select ARCH_HAS_CC_PLATFORM + select DYNAMIC_PHYSICAL_MASK help Support running as a guest under Intel TDX. Without this support, the guest kernel can not boot or run under TDX.
arch/x86/coco/tdx/tdx.c +8 -0
@@ -89,5 +89,13 @@ void __init tdx_early_init(void) cc_mask =get_cc_mask ();cc_set_mask (cc_mask); +/* +* All bits above GPA width are reserved and kernel treats shared bit +* as flag, not as part of physical address. +* +* Adjust physical mask to only cover valid GPA bits. +*/ + physical_mask &= cc_mask -1 ; +pr_info ("Guest detected\n" ); }
PATCH v8 6/30 x86/traps: Refactor exc_general_protection()
In reply to Kirill A. ShutemovTDX brings a new exception -- Virtualization Exception (#VE). Handling of #VE structurally very similar to handling #GP.
Extract two helpers from exc_general_protection() that can be reused for handling #VE.
No functional changes.
--- arch/x86/kernel/traps.c | 57 ++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 26 deletions(-)
arch/x86/kernel/traps.c +31 -26
@@ -686,13 +686,40 @@ static bool try_fixup_enqcmd_gp(void)#endif } +static bool gp_try_fixup_and_notify (struct pt_regs *regs,int trapnr, +unsigned long error_code,const char *str) +{ +if (fixup_exception (regs, trapnr, error_code,0 )) +return true; + + current->thread.error_code = error_code; + current->thread.trap_nr = trapnr; + +/* +* To be potentially processing a kprobe fault and to trust the result +* from kprobe_running(), we have to be non-preemptible. +*/ +if (!preemptible () &&kprobe_running () && +kprobe_fault_handler (regs, trapnr)) +return true; + +return notify_die (DIE_GPF , str, regs, error_code, trapnr,SIGSEGV ) ==NOTIFY_STOP ; +} + +static void gp_user_force_sig_segv (struct pt_regs *regs,int trapnr, +unsigned long error_code,const char *str) +{ + current->thread.error_code = error_code; + current->thread.trap_nr = trapnr; +show_signal (current,SIGSEGV ,"" , str, regs, error_code); +force_sig (SIGSEGV ); +} +DEFINE_IDTENTRY_ERRORCODE (exc_general_protection) {char desc[sizeof (GPFSTR ) +50 +2 *sizeof (unsigned long ) +1 ] =GPFSTR ;enum kernel_gp_hint hint =GP_NO_HINT ; -struct task_struct *tsk;unsigned long gp_addr; -int ret;if (user_mode (regs) &&try_fixup_enqcmd_gp ())return ;
@@ -711,40 +738,18 @@ DEFINE_IDTENTRY_ERRORCODE(exc_general_protection)return ; } - tsk = current; -if (user_mode (regs)) {if (fixup_iopl_exception (regs)) goto exit; - tsk->thread.error_code = error_code; - tsk->thread.trap_nr =X86_TRAP_GP ; -if (fixup_vdso_exception (regs,X86_TRAP_GP , error_code,0 )) goto exit; -show_signal (tsk,SIGSEGV ,"" , desc, regs, error_code); -force_sig (SIGSEGV ); +gp_user_force_sig_segv (regs,X86_TRAP_GP , error_code, desc); goto exit; } -if (fixup_exception (regs,X86_TRAP_GP , error_code,0 )) - goto exit; - - tsk->thread.error_code = error_code; - tsk->thread.trap_nr =X86_TRAP_GP ; - -/* -* To be potentially processing a kprobe fault and to trust the result -* from kprobe_running(), we have to be non-preemptible. -*/ -if (!preemptible () && -kprobe_running () && -kprobe_fault_handler (regs,X86_TRAP_GP )) - goto exit; - - ret =notify_die (DIE_GPF , desc, regs, error_code,X86_TRAP_GP ,SIGSEGV ); -if (ret ==NOTIFY_STOP ) +if (gp_try_fixup_and_notify (regs,X86_TRAP_GP , error_code, desc)) goto exit;if (error_code)
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/traps: Refactor exc_general_protection()
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 775acc82a88fd36f5e89a08d39874fdeeaa04247 Gitweb: https://git.kernel.org/tip/775acc82a88fd36f5e89a08d39874fdeeaa04247 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:15 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/traps: Refactor exc_general_protection()
TDX brings a new exception -- Virtualization Exception (#VE). Handling of #VE structurally very similar to handling #GP.
Extract two helpers from exc_general_protection() that can be reused for handling #VE.
No functional changes.
--- arch/x86/kernel/traps.c | 57 +++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 26 deletions(-)
arch/x86/kernel/traps.c +31 -26
@@ -686,13 +686,40 @@ static bool try_fixup_enqcmd_gp(void)#endif } +static bool gp_try_fixup_and_notify (struct pt_regs *regs,int trapnr, +unsigned long error_code,const char *str) +{ +if (fixup_exception (regs, trapnr, error_code,0 )) +return true; + + current->thread.error_code = error_code; + current->thread.trap_nr = trapnr; + +/* +* To be potentially processing a kprobe fault and to trust the result +* from kprobe_running(), we have to be non-preemptible. +*/ +if (!preemptible () &&kprobe_running () && +kprobe_fault_handler (regs, trapnr)) +return true; + +return notify_die (DIE_GPF , str, regs, error_code, trapnr,SIGSEGV ) ==NOTIFY_STOP ; +} + +static void gp_user_force_sig_segv (struct pt_regs *regs,int trapnr, +unsigned long error_code,const char *str) +{ + current->thread.error_code = error_code; + current->thread.trap_nr = trapnr; +show_signal (current,SIGSEGV ,"" , str, regs, error_code); +force_sig (SIGSEGV ); +} +DEFINE_IDTENTRY_ERRORCODE (exc_general_protection) {char desc[sizeof (GPFSTR ) +50 +2 *sizeof (unsigned long ) +1 ] =GPFSTR ;enum kernel_gp_hint hint =GP_NO_HINT ; -struct task_struct *tsk;unsigned long gp_addr; -int ret;if (user_mode (regs) &&try_fixup_enqcmd_gp ())return ;
@@ -711,40 +738,18 @@ DEFINE_IDTENTRY_ERRORCODE(exc_general_protection)return ; } - tsk = current; -if (user_mode (regs)) {if (fixup_iopl_exception (regs)) goto exit; - tsk->thread.error_code = error_code; - tsk->thread.trap_nr =X86_TRAP_GP ; -if (fixup_vdso_exception (regs,X86_TRAP_GP , error_code,0 )) goto exit; -show_signal (tsk,SIGSEGV ,"" , desc, regs, error_code); -force_sig (SIGSEGV ); +gp_user_force_sig_segv (regs,X86_TRAP_GP , error_code, desc); goto exit; } -if (fixup_exception (regs,X86_TRAP_GP , error_code,0 )) - goto exit; - - tsk->thread.error_code = error_code; - tsk->thread.trap_nr =X86_TRAP_GP ; - -/* -* To be potentially processing a kprobe fault and to trust the result -* from kprobe_running(), we have to be non-preemptible. -*/ -if (!preemptible () && -kprobe_running () && -kprobe_fault_handler (regs,X86_TRAP_GP )) - goto exit; - - ret =notify_die (DIE_GPF , desc, regs, error_code,X86_TRAP_GP ,SIGSEGV ); -if (ret ==NOTIFY_STOP ) +if (gp_try_fixup_and_notify (regs,X86_TRAP_GP , error_code, desc)) goto exit;if (error_code)
PATCH v8 7/30 x86/traps: Add #VE support for TDX guest
In reply to Kirill A. ShutemovVirtualization Exceptions (#VE) are delivered to TDX guests due to specific guest actions which may happen in either user space or the kernel:
* Specific instructions (WBINVD, for example)
* Specific MSR accesses
* Specific CPUID leaf accesses
* Access to specific guest physical addresses
Syscall entry code has a critical window where the kernel stack is not yet set up. Any exception in this window leads to hard to debug issues and can be exploited for privilege escalation. Exceptions in the NMI entry code also cause issues. Returning from the exception handler with IRET will re-enable NMIs and nested NMI will corrupt the NMI stack.
For these reasons, the kernel avoids #VEs during the syscall gap and the NMI entry code. Entry code paths do not access TD-shared memory, MMIO regions, use #VE triggering MSRs, instructions, or CPUID leaves that might generate #VE. VMM can remove memory from TD at any point, but access to unaccepted (or missing) private memory leads to VM termination, not to #VE.
Similarly to page faults and breakpoints, #VEs are allowed in NMI handlers once the kernel is ready to deal with nested NMIs.
During #VE delivery, all interrupts, including NMIs, are blocked until TDGETVEINFO is called. It prevents #VE nesting until the kernel reads the VE info.
TDGETVEINFO retrieves the #VE info from the TDX module, which also clears the "#VE valid" flag. This must be done before anything else as any #VE that occurs while the valid flag is set escalates to #DF by TDX module. It will result in an oops.
Virtual NMIs are inhibited if the #VE valid flag is set. NMI will not be delivered until TDGETVEINFO is called.
For now, convert unhandled #VE's (everything, until later in this series) so that they appear just like a #GP by calling the ve_raise_fault() directly. The ve_raise_fault() function is similar to #GP handler and is responsible for sending SIGSEGV to userspace and CPU die and notifying debuggers and other die chain users.
--- arch/x86/coco/tdx/tdx.c | 38 +++++++++++++++ arch/x86/include/asm/idtentry.h | 4 ++ arch/x86/include/asm/tdx.h | 21 ++++++++ arch/x86/kernel/idt.c | 3 ++ arch/x86/kernel/traps.c | 86 +++++++++++++++++++++++++++++++++ 5 files changed, 152 insertions(+)
arch/x86/coco/tdx/tdx.c +38 -0
@@ -10,6 +10,7 @@/* TDX module Call Leaf IDs */ #define TDX_GET_INFO 1 +#define TDX_GET_VEINFO 3/* * Wrapper for standard use of __tdx_hypercall with no output aside from
@@ -73,6 +74,43 @@ static u64 get_cc_mask(void)return BIT_ULL (gpa_width -1 ); } +void tdx_get_ve_info (struct ve_info *ve) +{ +struct tdx_module_output out; + +/* +* Called during #VE handling to retrieve the #VE info from the +* TDX module. +* +* This has to be called early in #VE handling. A "nested" #VE which +* occurs before this will raise a #DF and is not recoverable. +* +* The call retrieves the #VE info from the TDX module, which also +* clears the "#VE valid" flag. This must be done before anything else +* because any #VE that occurs while the valid flag is set will lead to +* #DF. +* +* Note, the TDX module treats virtual NMIs as inhibited if the #VE +* valid flag is set. It means that NMI=>#VE will not result in a #DF. +*/ +tdx_module_call (TDX_GET_VEINFO ,0 ,0 ,0 ,0 , &out); + +/* Transfer the output parameters */ + ve->exit_reason = out.rcx; + ve->exit_qual = out.rdx; + ve->gla = out.r8; + ve->gpa = out.r9; + ve->instr_len =lower_32_bits (out.r10); + ve->instr_info =upper_32_bits (out.r10); +} + +bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve) +{ +pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason); + +return false; +} +void __init tdx_early_init (void ) {u64 cc_mask;
arch/x86/include/asm/idtentry.h +4 -0
@@ -632,6 +632,10 @@ DECLARE_IDTENTRY_XENCB(X86_TRAP_OTHER, exc_xen_hypervisor_callback);DECLARE_IDTENTRY_RAW (X86_TRAP_OTHER , exc_xen_unknown_trap);#endif +#ifdef CONFIG_INTEL_TDX_GUEST +DECLARE_IDTENTRY (X86_TRAP_VE , exc_virtualization_exception); +#endif +/* Device interrupts common/spurious */ DECLARE_IDTENTRY_IRQ (X86_TRAP_OTHER , common_interrupt);#ifdef CONFIG_X86_LOCAL_APIC
arch/x86/include/asm/tdx.h +21 -0
@@ -6,6 +6,7 @@#include <linux/bits.h> #include <linux/init.h> #include <linux/bits.h> +#include <asm/ptrace.h> #define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX "
@@ -56,6 +57,22 @@ struct tdx_hypercall_args {u64 r15; }; +/* +* Used by the #VE exception handler to gather the #VE exception +* info from the TDX module. This is a software only structure +* and not part of the TDX module/VMM ABI. +*/ +struct ve_info { +u64 exit_reason; +u64 exit_qual; +/* Guest Linear (virtual) Address */ +u64 gla; +/* Guest Physical Address */ +u64 gpa; +u32 instr_len; +u32 instr_info; +}; +#ifdef CONFIG_INTEL_TDX_GUEST void __init tdx_early_init (void );
@@ -70,6 +87,10 @@ u64 __tdx_hypercall(struct tdx_hypercall_args *args, unsigned long flags);/* Called from __tdx_hypercall() for unrecoverable failure */ void __tdx_hypercall_failed (void ); +void tdx_get_ve_info (struct ve_info *ve); + +bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve); +#else static inline void tdx_early_init (void ) { };
arch/x86/kernel/idt.c +3 -0
@@ -69,6 +69,9 @@ static const __initconst struct idt_data early_idts[] = {*/ INTG(X86_TRAP_PF, asm_exc_page_fault),#endif +#ifdef CONFIG_INTEL_TDX_GUEST + INTG(X86_TRAP_VE, asm_exc_virtualization_exception), +#endif };/*
arch/x86/kernel/traps.c +86 -0
98 lines not on this page · raw message
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/traps: Add #VE support for TDX guest
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 9a22bf6debbf5169f750af53c7f86eb4e3cd6712 Gitweb: https://git.kernel.org/tip/9a22bf6debbf5169f750af53c7f86eb4e3cd6712 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:16 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/traps: Add #VE support for TDX guest
Virtualization Exceptions (#VE) are delivered to TDX guests due to specific guest actions which may happen in either user space or the kernel:
* Specific instructions (WBINVD, for example)
* Specific MSR accesses
* Specific CPUID leaf accesses
* Access to specific guest physical addresses
Syscall entry code has a critical window where the kernel stack is not yet set up. Any exception in this window leads to hard to debug issues and can be exploited for privilege escalation. Exceptions in the NMI entry code also cause issues. Returning from the exception handler with IRET will re-enable NMIs and nested NMI will corrupt the NMI stack.
For these reasons, the kernel avoids #VEs during the syscall gap and the NMI entry code. Entry code paths do not access TD-shared memory, MMIO regions, use #VE triggering MSRs, instructions, or CPUID leaves that might generate #VE. VMM can remove memory from TD at any point, but access to unaccepted (or missing) private memory leads to VM termination, not to #VE.
Similarly to page faults and breakpoints, #VEs are allowed in NMI handlers once the kernel is ready to deal with nested NMIs.
During #VE delivery, all interrupts, including NMIs, are blocked until TDGETVEINFO is called. It prevents #VE nesting until the kernel reads the VE info.
TDGETVEINFO retrieves the #VE info from the TDX module, which also clears the "#VE valid" flag. This must be done before anything else as any #VE that occurs while the valid flag is set escalates to #DF by TDX module. It will result in an oops.
Virtual NMIs are inhibited if the #VE valid flag is set. NMI will not be delivered until TDGETVEINFO is called.
For now, convert unhandled #VE's (everything, until later in this series) so that they appear just like a #GP by calling the ve_raise_fault() directly. The ve_raise_fault() function is similar to #GP handler and is responsible for sending SIGSEGV to userspace and CPU die and notifying debuggers and other die chain users.
--- arch/x86/coco/tdx/tdx.c | 38 ++++++++++++++- arch/x86/include/asm/idtentry.h | 4 +- arch/x86/include/asm/tdx.h | 21 ++++++++- arch/x86/kernel/idt.c | 3 +- arch/x86/kernel/traps.c | 86 ++++++++++++++++++++++++++++++++- 5 files changed, 152 insertions(+)
arch/x86/coco/tdx/tdx.c +38 -0
@@ -10,6 +10,7 @@/* TDX module Call Leaf IDs */ #define TDX_GET_INFO 1 +#define TDX_GET_VEINFO 3/* * Wrapper for standard use of __tdx_hypercall with no output aside from
@@ -73,6 +74,43 @@ static u64 get_cc_mask(void)return BIT_ULL (gpa_width -1 ); } +void tdx_get_ve_info (struct ve_info *ve) +{ +struct tdx_module_output out; + +/* +* Called during #VE handling to retrieve the #VE info from the +* TDX module. +* +* This has to be called early in #VE handling. A "nested" #VE which +* occurs before this will raise a #DF and is not recoverable. +* +* The call retrieves the #VE info from the TDX module, which also +* clears the "#VE valid" flag. This must be done before anything else +* because any #VE that occurs while the valid flag is set will lead to +* #DF. +* +* Note, the TDX module treats virtual NMIs as inhibited if the #VE +* valid flag is set. It means that NMI=>#VE will not result in a #DF. +*/ +tdx_module_call (TDX_GET_VEINFO ,0 ,0 ,0 ,0 , &out); + +/* Transfer the output parameters */ + ve->exit_reason = out.rcx; + ve->exit_qual = out.rdx; + ve->gla = out.r8; + ve->gpa = out.r9; + ve->instr_len =lower_32_bits (out.r10); + ve->instr_info =upper_32_bits (out.r10); +} + +bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve) +{ +pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason); + +return false; +} +void __init tdx_early_init (void ) {u64 cc_mask;
arch/x86/include/asm/idtentry.h +4 -0
@@ -632,6 +632,10 @@ DECLARE_IDTENTRY_XENCB(X86_TRAP_OTHER, exc_xen_hypervisor_callback);DECLARE_IDTENTRY_RAW (X86_TRAP_OTHER , exc_xen_unknown_trap);#endif +#ifdef CONFIG_INTEL_TDX_GUEST +DECLARE_IDTENTRY (X86_TRAP_VE , exc_virtualization_exception); +#endif +/* Device interrupts common/spurious */ DECLARE_IDTENTRY_IRQ (X86_TRAP_OTHER , common_interrupt);#ifdef CONFIG_X86_LOCAL_APIC
arch/x86/include/asm/tdx.h +21 -0
@@ -6,6 +6,7 @@#include <linux/bits.h> #include <linux/init.h> #include <linux/bits.h> +#include <asm/ptrace.h> #define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX "
@@ -56,6 +57,22 @@ struct tdx_hypercall_args {u64 r15; }; +/* +* Used by the #VE exception handler to gather the #VE exception +* info from the TDX module. This is a software only structure +* and not part of the TDX module/VMM ABI. +*/ +struct ve_info { +u64 exit_reason; +u64 exit_qual; +/* Guest Linear (virtual) Address */ +u64 gla; +/* Guest Physical Address */ +u64 gpa; +u32 instr_len; +u32 instr_info; +}; +#ifdef CONFIG_INTEL_TDX_GUEST void __init tdx_early_init (void );
@@ -70,6 +87,10 @@ u64 __tdx_hypercall(struct tdx_hypercall_args *args, unsigned long flags);/* Called from __tdx_hypercall() for unrecoverable failure */ void __tdx_hypercall_failed (void ); +void tdx_get_ve_info (struct ve_info *ve); + +bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve); +#else static inline void tdx_early_init (void ) { };
arch/x86/kernel/idt.c +3 -0
@@ -69,6 +69,9 @@ static const __initconst struct idt_data early_idts[] = {*/ INTG(X86_TRAP_PF, asm_exc_page_fault),#endif +#ifdef CONFIG_INTEL_TDX_GUEST + INTG(X86_TRAP_VE, asm_exc_virtualization_exception), +#endif };/*
arch/x86/kernel/traps.c +86 -0
98 lines not on this page · raw message
PATCH v8 8/30 x86/tdx: Add HLT support for TDX guests
In reply to Kirill A. ShutemovThe HLT instruction is a privileged instruction, executing it stops instruction execution and places the processor in a HALT state. It is used in kernel for cases like reboot, idle loop and exception fixup handlers. For the idle case, interrupts will be enabled (using STI) before the HLT instruction (this is also called safe_halt()).
To support the HLT instruction in TDX guests, it needs to be emulated using TDVMCALL (hypercall to VMM). More details about it can be found in Intel Trust Domain Extensions (Intel TDX) Guest-Host-Communication Interface (GHCI) specification, section TDVMCALL[Instruction.HLT].
In TDX guests, executing HLT instruction will generate a #VE, which is used to emulate the HLT instruction. But #VE based emulation will not work for the safe_halt() flavor, because it requires STI instruction to be executed just before the TDCALL. Since idle loop is the only user of safe_halt() variant, handle it as a special case.
To avoid *safe_halt() call in the idle function, define the tdx_guest_idle() and use it to override the "x86_idle" function pointer for a valid TDX guest.
Alternative choices like PV ops have been considered for adding safe_halt() support. But it was rejected because HLT paravirt calls only exist under PARAVIRT_XXL, and enabling it in TDX guest just for safe_halt() use case is not worth the cost.
--- arch/x86/coco/tdx/tdcall.S | 13 ++++++ arch/x86/coco/tdx/tdx.c | 93 +++++++++++++++++++++++++++++++++++++- arch/x86/include/asm/tdx.h | 4 ++ arch/x86/kernel/process.c | 4 ++ 4 files changed, 112 insertions(+), 2 deletions(-)
arch/x86/coco/tdx/tdcall.S +13 -0
@@ -139,6 +139,19 @@ SYM_FUNC_START(__tdx_hypercall) movl $TDVMCALL_EXPOSE_REGS_MASK, %ecx + /* + * For the idle loop STI needs to be called directly before the TDCALL + * that enters idle (EXIT_REASON_HLT case). STI instruction enables + * interrupts only one instruction later. If there is a window between + * STI and the instruction that emulates the HALT state, there is a + * chance for interrupts to happen in this window, which can delay the + * HLT operation indefinitely. Since this is the not the desired + * result, conditionally call STI before TDCALL. + */ + testq $TDX_HCALL_ISSUE_STI, %rsi + jz .Lskip_sti + sti +.Lskip_sti: tdcall /*
arch/x86/coco/tdx/tdx.c +91 -2
120 lines not on this page · raw message
arch/x86/include/asm/tdx.h +4 -0
@@ -14,6 +14,7 @@#define TDX_HYPERCALL_STANDARD 0#define TDX_HCALL_HAS_OUTPUT BIT(0) +#define TDX_HCALL_ISSUE_STI BIT(1)/* * SW-defined error codes.
@@ -91,9 +92,12 @@ void tdx_get_ve_info(struct ve_info *ve);bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve); +void tdx_safe_halt (void ); +#else static inline void tdx_early_init (void ) { }; +static inline void tdx_safe_halt (void ) { };#endif /* CONFIG_INTEL_TDX_GUEST */
arch/x86/kernel/process.c +4 -0
@@ -46,6 +46,7 @@#include <asm/proto.h> #include <asm/frame.h> #include <asm/unwind.h> +#include <asm/tdx.h> #include "process.h"
@@ -873,6 +874,9 @@ void select_idle_routine(const struct cpuinfo_x86 *c) }else if (prefer_mwait_c1_over_halt (c)) {pr_info ("using mwait in idle threads\n" ); x86_idle = mwait_idle; + }else if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) { +pr_info ("using TDX aware idle routine\n" ); + x86_idle = tdx_safe_halt; }else x86_idle = default_idle; }
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Add HLT support for TDX guests
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: bfe6ed0c672782ac2a8edffac93b1ba84b0ff984 Gitweb: https://git.kernel.org/tip/bfe6ed0c672782ac2a8edffac93b1ba84b0ff984 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:17 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/tdx: Add HLT support for TDX guests
The HLT instruction is a privileged instruction, executing it stops instruction execution and places the processor in a HALT state. It is used in kernel for cases like reboot, idle loop and exception fixup handlers. For the idle case, interrupts will be enabled (using STI) before the HLT instruction (this is also called safe_halt()).
To support the HLT instruction in TDX guests, it needs to be emulated using TDVMCALL (hypercall to VMM). More details about it can be found in Intel Trust Domain Extensions (Intel TDX) Guest-Host-Communication Interface (GHCI) specification, section TDVMCALL[Instruction.HLT].
In TDX guests, executing HLT instruction will generate a #VE, which is used to emulate the HLT instruction. But #VE based emulation will not work for the safe_halt() flavor, because it requires STI instruction to be executed just before the TDCALL. Since idle loop is the only user of safe_halt() variant, handle it as a special case.
To avoid *safe_halt() call in the idle function, define the tdx_guest_idle() and use it to override the "x86_idle" function pointer for a valid TDX guest.
Alternative choices like PV ops have been considered for adding safe_halt() support. But it was rejected because HLT paravirt calls only exist under PARAVIRT_XXL, and enabling it in TDX guest just for safe_halt() use case is not worth the cost.
--- arch/x86/coco/tdx/tdcall.S | 13 +++++- arch/x86/coco/tdx/tdx.c | 93 ++++++++++++++++++++++++++++++++++++- arch/x86/include/asm/tdx.h | 4 ++- arch/x86/kernel/process.c | 4 ++- 4 files changed, 112 insertions(+), 2 deletions(-)
arch/x86/coco/tdx/tdcall.S +13 -0
@@ -139,6 +139,19 @@ SYM_FUNC_START(__tdx_hypercall) movl $TDVMCALL_EXPOSE_REGS_MASK, %ecx + /* + * For the idle loop STI needs to be called directly before the TDCALL + * that enters idle (EXIT_REASON_HLT case). STI instruction enables + * interrupts only one instruction later. If there is a window between + * STI and the instruction that emulates the HALT state, there is a + * chance for interrupts to happen in this window, which can delay the + * HLT operation indefinitely. Since this is the not the desired + * result, conditionally call STI before TDCALL. + */ + testq $TDX_HCALL_ISSUE_STI, %rsi + jz .Lskip_sti + sti +.Lskip_sti: tdcall /*
arch/x86/coco/tdx/tdx.c +91 -2
120 lines not on this page · raw message
arch/x86/include/asm/tdx.h +4 -0
@@ -14,6 +14,7 @@#define TDX_HYPERCALL_STANDARD 0#define TDX_HCALL_HAS_OUTPUT BIT(0) +#define TDX_HCALL_ISSUE_STI BIT(1)/* * SW-defined error codes.
@@ -91,9 +92,12 @@ void tdx_get_ve_info(struct ve_info *ve);bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve); +void tdx_safe_halt (void ); +#else static inline void tdx_early_init (void ) { }; +static inline void tdx_safe_halt (void ) { };#endif /* CONFIG_INTEL_TDX_GUEST */
arch/x86/kernel/process.c +4 -0
@@ -46,6 +46,7 @@#include <asm/proto.h> #include <asm/frame.h> #include <asm/unwind.h> +#include <asm/tdx.h> #include "process.h"
@@ -873,6 +874,9 @@ void select_idle_routine(const struct cpuinfo_x86 *c) }else if (prefer_mwait_c1_over_halt (c)) {pr_info ("using mwait in idle threads\n" ); x86_idle = mwait_idle; + }else if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) { +pr_info ("using TDX aware idle routine\n" ); + x86_idle = tdx_safe_halt; }else x86_idle = default_idle; }
PATCH v8 9/30 x86/tdx: Add MSR support for TDX guests
In reply to Kirill A. ShutemovUse hypercall to emulate MSR read/write for the TDX platform.
There are two viable approaches for doing MSRs in a TD guest:
1. Execute the RDMSR/WRMSR instructions like most VMs and bare metal do. Some will succeed, others will cause a #VE. All of those that cause a #VE will be handled with a TDCALL.
2. Use paravirt infrastructure. The paravirt hook has to keep a list of which MSRs would cause a #VE and use a TDCALL. All other MSRs execute RDMSR/WRMSR instructions directly.
The second option can be ruled out because the list of MSRs was challenging to maintain. That leaves option #1 as the only viable solution for the minimal TDX support.
Kernel relies on the exception fixup machinery to handle MSR access errors. #VE handler uses the same exception fixup code as #GP. It covers MSR accesses along with other types of fixups.
For performance-critical MSR writes (like TSC_DEADLINE), future patches will replace the WRMSR/#VE sequence with the direct TDCALL.
RDMSR and WRMSR specification details can be found in Guest-Host-Communication Interface (GHCI) for Intel Trust Domain Extensions (Intel TDX) specification, sec titled "TDG.VP. VMCALL<Instruction.RDMSR>" and "TDG.VP.VMCALL<Instruction.WRMSR>".
--- arch/x86/coco/tdx/tdx.c | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)
arch/x86/coco/tdx/tdx.c +42 -0
@@ -142,6 +142,44 @@ void __cpuidle tdx_safe_halt(void)WARN_ONCE (1 ,"HLT instruction emulation failed\n" ); } +static bool read_msr (struct pt_regs *regs) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_MSR_READ ), + .r12 = regs->cx, + }; + +/* +* Emulate the MSR read via hypercall. More info about ABI +* can be found in TDX Guest-Host-Communication Interface +* (GHCI), section titled "TDG.VP.VMCALL<Instruction.RDMSR>". +*/ +if (__tdx_hypercall (&args,TDX_HCALL_HAS_OUTPUT )) +return false; + + regs->ax =lower_32_bits (args.r11); + regs->dx =upper_32_bits (args.r11); +return true; +} + +static bool write_msr (struct pt_regs *regs) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_MSR_WRITE ), + .r12 = regs->cx, + .r13 = (u64 )regs->dx <<32 | regs->ax, + }; + +/* +* Emulate the MSR write via hypercall. More info about ABI +* can be found in TDX Guest-Host-Communication Interface +* (GHCI) section titled "TDG.VP.VMCALL<Instruction.WRMSR>". +*/ +return !__tdx_hypercall (&args,0 ); +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
@@ -178,6 +216,10 @@ static bool virt_exception_kernel(struct pt_regs *regs, struct ve_info *ve)switch (ve->exit_reason) {case EXIT_REASON_HLT :return handle_halt (); +case EXIT_REASON_MSR_READ : +return read_msr (regs); +case EXIT_REASON_MSR_WRITE : +return write_msr (regs);default :pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason);return false;
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Add MSR support for TDX guests
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: ae87f609cd52825fa7fa36f02b29e4357fd29eaa Gitweb: https://git.kernel.org/tip/ae87f609cd52825fa7fa36f02b29e4357fd29eaa Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:18 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/tdx: Add MSR support for TDX guests
Use hypercall to emulate MSR read/write for the TDX platform.
There are two viable approaches for doing MSRs in a TD guest:
1. Execute the RDMSR/WRMSR instructions like most VMs and bare metal do. Some will succeed, others will cause a #VE. All of those that cause a #VE will be handled with a TDCALL.
2. Use paravirt infrastructure. The paravirt hook has to keep a list of which MSRs would cause a #VE and use a TDCALL. All other MSRs execute RDMSR/WRMSR instructions directly.
The second option can be ruled out because the list of MSRs was challenging to maintain. That leaves option #1 as the only viable solution for the minimal TDX support.
Kernel relies on the exception fixup machinery to handle MSR access errors. #VE handler uses the same exception fixup code as #GP. It covers MSR accesses along with other types of fixups.
For performance-critical MSR writes (like TSC_DEADLINE), future patches will replace the WRMSR/#VE sequence with the direct TDCALL.
RDMSR and WRMSR specification details can be found in Guest-Host-Communication Interface (GHCI) for Intel Trust Domain Extensions (Intel TDX) specification, sec titled "TDG.VP. VMCALL<Instruction.RDMSR>" and "TDG.VP.VMCALL<Instruction.WRMSR>".
--- arch/x86/coco/tdx/tdx.c | 42 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+)
arch/x86/coco/tdx/tdx.c +42 -0
@@ -142,6 +142,44 @@ void __cpuidle tdx_safe_halt(void)WARN_ONCE (1 ,"HLT instruction emulation failed\n" ); } +static bool read_msr (struct pt_regs *regs) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_MSR_READ ), + .r12 = regs->cx, + }; + +/* +* Emulate the MSR read via hypercall. More info about ABI +* can be found in TDX Guest-Host-Communication Interface +* (GHCI), section titled "TDG.VP.VMCALL<Instruction.RDMSR>". +*/ +if (__tdx_hypercall (&args,TDX_HCALL_HAS_OUTPUT )) +return false; + + regs->ax =lower_32_bits (args.r11); + regs->dx =upper_32_bits (args.r11); +return true; +} + +static bool write_msr (struct pt_regs *regs) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_MSR_WRITE ), + .r12 = regs->cx, + .r13 = (u64 )regs->dx <<32 | regs->ax, + }; + +/* +* Emulate the MSR write via hypercall. More info about ABI +* can be found in TDX Guest-Host-Communication Interface +* (GHCI) section titled "TDG.VP.VMCALL<Instruction.WRMSR>". +*/ +return !__tdx_hypercall (&args,0 ); +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
@@ -178,6 +216,10 @@ static bool virt_exception_kernel(struct pt_regs *regs, struct ve_info *ve)switch (ve->exit_reason) {case EXIT_REASON_HLT :return handle_halt (); +case EXIT_REASON_MSR_READ : +return read_msr (regs); +case EXIT_REASON_MSR_WRITE : +return write_msr (regs);default :pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason);return false;
PATCH v8 10/30 x86/tdx: Handle CPUID via #VE
In reply to Kirill A. ShutemovIn TDX guests, most CPUID leaf/sub-leaf combinations are virtualized by the TDX module while some trigger #VE.
Implement the #VE handling for EXIT_REASON_CPUID by handing it through the hypercall, which in turn lets the TDX module handle it by invoking the host VMM.
More details on CPUID Virtualization can be found in the TDX module specification, the section titled "CPUID Virtualization".
Note that VMM that handles the hypercall is not trusted. It can return data that may steer the guest kernel in wrong direct. Only allow VMM to control range reserved for hypervisor communication.
Return all-zeros for any CPUID outside the hypervisor range. It matches CPU behaviour for non-supported leaf.
--- arch/x86/coco/tdx/tdx.c | 58 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-)
arch/x86/coco/tdx/tdx.c +57 -1
@@ -180,6 +180,48 @@ static bool write_msr(struct pt_regs *regs)return !__tdx_hypercall (&args,0 ); } +static bool handle_cpuid (struct pt_regs *regs) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_CPUID ), + .r12 = regs->ax, + .r13 = regs->cx, + }; + +/* +* Only allow VMM to control range reserved for hypervisor +* communication. +* +* Return all-zeros for any CPUID outside the range. It matches CPU +* behaviour for non-supported leaf. +*/ +if (regs->ax <0x40000000 || regs->ax >0x4FFFFFFF ) { + regs->ax = regs->bx = regs->cx = regs->dx =0 ; +return true; + } + +/* +* Emulate the CPUID instruction via a hypercall. More info about +* ABI can be found in TDX Guest-Host-Communication Interface +* (GHCI), section titled "VP.VMCALL<Instruction.CPUID>". +*/ +if (__tdx_hypercall (&args,TDX_HCALL_HAS_OUTPUT )) +return false; + +/* +* As per TDX GHCI CPUID ABI, r12-r15 registers contain contents of +* EAX, EBX, ECX, EDX registers after the CPUID instruction execution. +* So copy the register contents back to pt_regs. +*/ + regs->ax = args.r12; + regs->bx = args.r13; + regs->cx = args.r14; + regs->dx = args.r15; + +return true; +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
@@ -210,6 +252,18 @@ void tdx_get_ve_info(struct ve_info *ve) ve->instr_info =upper_32_bits (out.r10); } +/* Handle the user initiated #VE */ +static bool virt_exception_user (struct pt_regs *regs,struct ve_info *ve) +{ +switch (ve->exit_reason) { +case EXIT_REASON_CPUID : +return handle_cpuid (regs); +default : +pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason); +return false; + } +} +/* Handle the kernel #VE */ static bool virt_exception_kernel (struct pt_regs *regs,struct ve_info *ve) {
@@ -220,6 +274,8 @@ static bool virt_exception_kernel(struct pt_regs *regs, struct ve_info *ve)return read_msr (regs);case EXIT_REASON_MSR_WRITE :return write_msr (regs); +case EXIT_REASON_CPUID : +return handle_cpuid (regs);default :pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason);return false;
@@ -231,7 +287,7 @@ bool tdx_handle_virt_exception(struct pt_regs *regs, struct ve_info *ve)bool ret;if (user_mode (regs)) - ret = false; + ret =virt_exception_user (regs, ve);else ret =virt_exception_kernel (regs, ve);
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Handle CPUID via #VE
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: c141fa2c2bbaff0d1f2dc51160626dd22bc16ae2 Gitweb: https://git.kernel.org/tip/c141fa2c2bbaff0d1f2dc51160626dd22bc16ae2 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:19 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/tdx: Handle CPUID via #VE
In TDX guests, most CPUID leaf/sub-leaf combinations are virtualized by the TDX module while some trigger #VE.
Implement the #VE handling for EXIT_REASON_CPUID by handing it through the hypercall, which in turn lets the TDX module handle it by invoking the host VMM.
More details on CPUID Virtualization can be found in the TDX module specification, the section titled "CPUID Virtualization".
Note that VMM that handles the hypercall is not trusted. It can return data that may steer the guest kernel in wrong direct. Only allow VMM to control range reserved for hypervisor communication.
Return all-zeros for any CPUID outside the hypervisor range. It matches CPU behaviour for non-supported leaf.
--- arch/x86/coco/tdx/tdx.c | 58 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-)
arch/x86/coco/tdx/tdx.c +57 -1
@@ -180,6 +180,48 @@ static bool write_msr(struct pt_regs *regs)return !__tdx_hypercall (&args,0 ); } +static bool handle_cpuid (struct pt_regs *regs) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_CPUID ), + .r12 = regs->ax, + .r13 = regs->cx, + }; + +/* +* Only allow VMM to control range reserved for hypervisor +* communication. +* +* Return all-zeros for any CPUID outside the range. It matches CPU +* behaviour for non-supported leaf. +*/ +if (regs->ax <0x40000000 || regs->ax >0x4FFFFFFF ) { + regs->ax = regs->bx = regs->cx = regs->dx =0 ; +return true; + } + +/* +* Emulate the CPUID instruction via a hypercall. More info about +* ABI can be found in TDX Guest-Host-Communication Interface +* (GHCI), section titled "VP.VMCALL<Instruction.CPUID>". +*/ +if (__tdx_hypercall (&args,TDX_HCALL_HAS_OUTPUT )) +return false; + +/* +* As per TDX GHCI CPUID ABI, r12-r15 registers contain contents of +* EAX, EBX, ECX, EDX registers after the CPUID instruction execution. +* So copy the register contents back to pt_regs. +*/ + regs->ax = args.r12; + regs->bx = args.r13; + regs->cx = args.r14; + regs->dx = args.r15; + +return true; +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
@@ -210,6 +252,18 @@ void tdx_get_ve_info(struct ve_info *ve) ve->instr_info =upper_32_bits (out.r10); } +/* Handle the user initiated #VE */ +static bool virt_exception_user (struct pt_regs *regs,struct ve_info *ve) +{ +switch (ve->exit_reason) { +case EXIT_REASON_CPUID : +return handle_cpuid (regs); +default : +pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason); +return false; + } +} +/* Handle the kernel #VE */ static bool virt_exception_kernel (struct pt_regs *regs,struct ve_info *ve) {
@@ -220,6 +274,8 @@ static bool virt_exception_kernel(struct pt_regs *regs, struct ve_info *ve)return read_msr (regs);case EXIT_REASON_MSR_WRITE :return write_msr (regs); +case EXIT_REASON_CPUID : +return handle_cpuid (regs);default :pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason);return false;
@@ -231,7 +287,7 @@ bool tdx_handle_virt_exception(struct pt_regs *regs, struct ve_info *ve)bool ret;if (user_mode (regs)) - ret = false; + ret =virt_exception_user (regs, ve);else ret =virt_exception_kernel (regs, ve);
PATCH v8 11/30 x86/tdx: Handle in-kernel MMIO
In reply to Kirill A. ShutemovIn non-TDX VMs, MMIO is implemented by providing the guest a mapping which will cause a VMEXIT on access and then the VMM emulating the instruction that caused the VMEXIT. That's not possible for TDX VM.
To emulate an instruction an emulator needs two things:
- R/W access to the register file to read/modify instruction arguments and see RIP of the faulted instruction.
- Read access to memory where instruction is placed to see what to emulate. In this case it is guest kernel text.
Both of them are not available to VMM in TDX environment:
- Register file is never exposed to VMM. When a TD exits to the module, it saves registers into the state-save area allocated for that TD. The module then scrubs these registers before returning execution control to the VMM, to help prevent leakage of TD state.
- TDX does not allow guests to execute from shared memory. All executed instructions are in TD-private memory. Being private to the TD, VMMs have no way to access TD-private memory and no way to read the instruction to decode and emulate it.
In TDX the MMIO regions are instead configured by VMM to trigger a #VE exception in the guest.
Add #VE handling that emulates the MMIO instruction inside the guest and converts it into a controlled hypercall to the host.
This approach is bad for performance. But, it has (virtually) no impact on the size of the kernel image and will work for a wide variety of drivers. This allows TDX deployments to use arbitrary devices and device drivers, including virtio. TDX customers have asked for the capability to use random devices in their deployments.
In other words, even if all of the work was done to paravirtualize all x86 MMIO users and virtio, this approach would still be needed. There is essentially no way to get rid of this code.
This approach is functional for all in-kernel MMIO users current and future and does so with a minimal amount of code and kernel image bloat.
MMIO addresses can be used with any CPU instruction that accesses memory. Address only MMIO accesses done via io.h helpers, such as 'readl()' or 'writeq()'.
Any CPU instruction that accesses memory can also be used to access MMIO. However, by convention, MMIO access are typically performed via io.h helpers such as 'readl()' or 'writeq()'.
The io.h helpers intentionally use a limited set of instructions when accessing MMIO. This known, limited set of instructions makes MMIO instruction decoding and emulation feasible in KVM hosts and SEV guests today.
MMIO accesses performed without the io.h helpers are at the mercy of the compiler. Compilers can and will generate a much more broad set of instructions which can not practically be decoded and emulated. TDX guests will oops if they encounter one of these decoding failures.
This means that TDX guests *must* use the io.h helpers to access MMIO.
This requirement is not new. Both KVM hosts and AMD SEV guests have the same limitations on MMIO access.
=== Potential alternative approaches ===
== Paravirtualizing all MMIO ==
An alternative to letting MMIO induce a #VE exception is to avoid the #VE in the first place. Similar to the port I/O case, it is theoretically possible to paravirtualize MMIO accesses.
Like the exception-based approach offered here, a fully paravirtualized approach would be limited to MMIO users that leverage common infrastructure like the io.h macros.
However, any paravirtual approach would be patching approximately 120k call sites. Any paravirtual approach would need to replace a bare memory access instruction with (at least) a function call. With a conservative overhead estimation of 5 bytes per call site (CALL instruction), it leads to bloating code by 600k.
Many drivers will never be used in the TDX environment and the bloat cannot be justified.
== Patching TDX drivers ==
Rather than touching the entire kernel, it might also be possible to just go after drivers that use MMIO in TDX guests *and* are performance critical to justify the effrort. Right now, that's limited only to virtio.
All virtio MMIO appears to be done through a single function, which makes virtio eminently easy to patch.
This approach will be adopted in the future, removing the bulk of MMIO #VEs. The #VE-based MMIO will remain serving non-virtio use cases.
--- arch/x86/coco/tdx/tdx.c | 121 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+)
arch/x86/coco/tdx/tdx.c +121 -0
@@ -8,11 +8,17 @@#include <asm/coco.h> #include <asm/tdx.h> #include <asm/vmx.h> +#include <asm/insn.h> +#include <asm/insn-eval.h> /* TDX module Call Leaf IDs */ #define TDX_GET_INFO 1#define TDX_GET_VEINFO 3 +/* MMIO direction */ +#define EPT_READ 0 +#define EPT_WRITE 1 +/* * Wrapper for standard use of __tdx_hypercall with no output aside from * return code.
@@ -222,6 +228,119 @@ static bool handle_cpuid(struct pt_regs *regs)return true; } +static bool mmio_read (int size,unsigned long addr,unsigned long *val) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_EPT_VIOLATION ), + .r12 = size, + .r13 =EPT_READ , + .r14 = addr, + .r15 = *val, + }; + +if (__tdx_hypercall (&args,TDX_HCALL_HAS_OUTPUT )) +return false; + *val = args.r11; +return true; +} + +static bool mmio_write (int size,unsigned long addr,unsigned long val) +{ +return !_tdx_hypercall (hcall_func (EXIT_REASON_EPT_VIOLATION ), size, +EPT_WRITE , addr, val); +} + +static bool handle_mmio (struct pt_regs *regs,struct ve_info *ve) +{ +char buffer[MAX_INSN_SIZE ]; +unsigned long *reg, val; +struct insn insn = {}; +enum mmio_type mmio; +int size, extend_size; +u8 extend_val =0 ; + +/* Only in-kernel MMIO is supported */ +if (WARN_ON_ONCE (user_mode (regs))) +return false; + +if (copy_from_kernel_nofault (buffer, (void *)regs->ip,MAX_INSN_SIZE )) +return false; + +if (insn_decode (&insn, buffer,MAX_INSN_SIZE ,INSN_MODE_64 )) +return false; + + mmio =insn_decode_mmio (&insn, &size); +if (WARN_ON_ONCE (mmio ==MMIO_DECODE_FAILED )) +return false; + +if (mmio !=MMIO_WRITE_IMM && mmio !=MMIO_MOVS ) { + reg =insn_get_modrm_reg_ptr (&insn, regs); +if (!reg) +return false; + } + + ve->instr_len = insn.length; + +/* Handle writes first */ +switch (mmio) { +case MMIO_WRITE : +memcpy (&val, reg, size); +return mmio_write (size, ve->gpa, val); +case MMIO_WRITE_IMM : + val = insn.immediate.value; +return mmio_write (size, ve->gpa, val); +case MMIO_READ : +case MMIO_READ_ZERO_EXTEND : +case MMIO_READ_SIGN_EXTEND : +/* Reads are handled below */ +break ; +case MMIO_MOVS : +case MMIO_DECODE_FAILED : +/* +* MMIO was accessed with an instruction that could not be +* decoded or handled properly. It was likely not using io.h +* helpers or accessed MMIO accidentally. +*/ +return false; +default : +WARN_ONCE (1 ,"Unknown insn_decode_mmio() decode value?" ); +return false; + } + +/* Handle reads */ +if (!mmio_read (size, ve->gpa, &val)) +return false; + +switch (mmio) { +case MMIO_READ : +/* Zero-extend for 32-bit operation */ + extend_size = size ==4 ?sizeof (*reg) :0 ; +break ; +case MMIO_READ_ZERO_EXTEND : +/* Zero extend based on operand size */ + extend_size = insn.opnd_bytes; +break ; +case MMIO_READ_SIGN_EXTEND : +/* Sign extend based on operand size */ + extend_size = insn.opnd_bytes; +if (size ==1 && val &BIT (7 )) + extend_val =0xFF ; +else if (size >1 && val &BIT (15 )) + extend_val =0xFF ; +break ; +default : +/* All other cases has to be covered with the first switch() */ +WARN_ON_ONCE (1 ); +return false; + } + +if (extend_size) +memset (reg, extend_val, extend_size); +memcpy (reg, &val, size); +return true; +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
@@ -276,6 +395,8 @@ static bool virt_exception_kernel(struct pt_regs *regs, struct ve_info *ve)return write_msr (regs);case EXIT_REASON_CPUID :return handle_cpuid (regs); +case EXIT_REASON_EPT_VIOLATION : +return handle_mmio (regs, ve);default :pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason);return false;
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Handle in-kernel MMIO
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 31d58c4e557d46fa7f8557714250fb6f89c941ae Gitweb: https://git.kernel.org/tip/31d58c4e557d46fa7f8557714250fb6f89c941ae Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:20 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/tdx: Handle in-kernel MMIO
In non-TDX VMs, MMIO is implemented by providing the guest a mapping which will cause a VMEXIT on access and then the VMM emulating the instruction that caused the VMEXIT. That's not possible for TDX VM.
To emulate an instruction an emulator needs two things:
- R/W access to the register file to read/modify instruction arguments and see RIP of the faulted instruction.
- Read access to memory where instruction is placed to see what to emulate. In this case it is guest kernel text.
Both of them are not available to VMM in TDX environment:
- Register file is never exposed to VMM. When a TD exits to the module, it saves registers into the state-save area allocated for that TD. The module then scrubs these registers before returning execution control to the VMM, to help prevent leakage of TD state.
- TDX does not allow guests to execute from shared memory. All executed instructions are in TD-private memory. Being private to the TD, VMMs have no way to access TD-private memory and no way to read the instruction to decode and emulate it.
In TDX the MMIO regions are instead configured by VMM to trigger a #VE exception in the guest.
Add #VE handling that emulates the MMIO instruction inside the guest and converts it into a controlled hypercall to the host.
This approach is bad for performance. But, it has (virtually) no impact on the size of the kernel image and will work for a wide variety of drivers. This allows TDX deployments to use arbitrary devices and device drivers, including virtio. TDX customers have asked for the capability to use random devices in their deployments.
In other words, even if all of the work was done to paravirtualize all x86 MMIO users and virtio, this approach would still be needed. There is essentially no way to get rid of this code.
This approach is functional for all in-kernel MMIO users current and future and does so with a minimal amount of code and kernel image bloat.
MMIO addresses can be used with any CPU instruction that accesses memory. Address only MMIO accesses done via io.h helpers, such as 'readl()' or 'writeq()'.
Any CPU instruction that accesses memory can also be used to access MMIO. However, by convention, MMIO access are typically performed via io.h helpers such as 'readl()' or 'writeq()'.
The io.h helpers intentionally use a limited set of instructions when accessing MMIO. This known, limited set of instructions makes MMIO instruction decoding and emulation feasible in KVM hosts and SEV guests today.
MMIO accesses performed without the io.h helpers are at the mercy of the compiler. Compilers can and will generate a much more broad set of instructions which can not practically be decoded and emulated. TDX guests will oops if they encounter one of these decoding failures.
This means that TDX guests *must* use the io.h helpers to access MMIO.
This requirement is not new. Both KVM hosts and AMD SEV guests have the same limitations on MMIO access.
=== Potential alternative approaches ===
== Paravirtualizing all MMIO ==
An alternative to letting MMIO induce a #VE exception is to avoid the #VE in the first place. Similar to the port I/O case, it is theoretically possible to paravirtualize MMIO accesses.
Like the exception-based approach offered here, a fully paravirtualized approach would be limited to MMIO users that leverage common infrastructure like the io.h macros.
However, any paravirtual approach would be patching approximately 120k call sites. Any paravirtual approach would need to replace a bare memory access instruction with (at least) a function call. With a conservative overhead estimation of 5 bytes per call site (CALL instruction), it leads to bloating code by 600k.
Many drivers will never be used in the TDX environment and the bloat cannot be justified.
== Patching TDX drivers ==
Rather than touching the entire kernel, it might also be possible to just go after drivers that use MMIO in TDX guests *and* are performance critical to justify the effrort. Right now, that's limited only to virtio.
All virtio MMIO appears to be done through a single function, which makes virtio eminently easy to patch.
This approach will be adopted in the future, removing the bulk of MMIO #VEs. The #VE-based MMIO will remain serving non-virtio use cases.
--- arch/x86/coco/tdx/tdx.c | 121 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 121 insertions(+)
arch/x86/coco/tdx/tdx.c +121 -0
@@ -8,11 +8,17 @@#include <asm/coco.h> #include <asm/tdx.h> #include <asm/vmx.h> +#include <asm/insn.h> +#include <asm/insn-eval.h> /* TDX module Call Leaf IDs */ #define TDX_GET_INFO 1#define TDX_GET_VEINFO 3 +/* MMIO direction */ +#define EPT_READ 0 +#define EPT_WRITE 1 +/* * Wrapper for standard use of __tdx_hypercall with no output aside from * return code.
@@ -222,6 +228,119 @@ static bool handle_cpuid(struct pt_regs *regs)return true; } +static bool mmio_read (int size,unsigned long addr,unsigned long *val) +{ +struct tdx_hypercall_args args = { + .r10 =TDX_HYPERCALL_STANDARD , + .r11 =hcall_func (EXIT_REASON_EPT_VIOLATION ), + .r12 = size, + .r13 =EPT_READ , + .r14 = addr, + .r15 = *val, + }; + +if (__tdx_hypercall (&args,TDX_HCALL_HAS_OUTPUT )) +return false; + *val = args.r11; +return true; +} + +static bool mmio_write (int size,unsigned long addr,unsigned long val) +{ +return !_tdx_hypercall (hcall_func (EXIT_REASON_EPT_VIOLATION ), size, +EPT_WRITE , addr, val); +} + +static bool handle_mmio (struct pt_regs *regs,struct ve_info *ve) +{ +char buffer[MAX_INSN_SIZE ]; +unsigned long *reg, val; +struct insn insn = {}; +enum mmio_type mmio; +int size, extend_size; +u8 extend_val =0 ; + +/* Only in-kernel MMIO is supported */ +if (WARN_ON_ONCE (user_mode (regs))) +return false; + +if (copy_from_kernel_nofault (buffer, (void *)regs->ip,MAX_INSN_SIZE )) +return false; + +if (insn_decode (&insn, buffer,MAX_INSN_SIZE ,INSN_MODE_64 )) +return false; + + mmio =insn_decode_mmio (&insn, &size); +if (WARN_ON_ONCE (mmio ==MMIO_DECODE_FAILED )) +return false; + +if (mmio !=MMIO_WRITE_IMM && mmio !=MMIO_MOVS ) { + reg =insn_get_modrm_reg_ptr (&insn, regs); +if (!reg) +return false; + } + + ve->instr_len = insn.length; + +/* Handle writes first */ +switch (mmio) { +case MMIO_WRITE : +memcpy (&val, reg, size); +return mmio_write (size, ve->gpa, val); +case MMIO_WRITE_IMM : + val = insn.immediate.value; +return mmio_write (size, ve->gpa, val); +case MMIO_READ : +case MMIO_READ_ZERO_EXTEND : +case MMIO_READ_SIGN_EXTEND : +/* Reads are handled below */ +break ; +case MMIO_MOVS : +case MMIO_DECODE_FAILED : +/* +* MMIO was accessed with an instruction that could not be +* decoded or handled properly. It was likely not using io.h +* helpers or accessed MMIO accidentally. +*/ +return false; +default : +WARN_ONCE (1 ,"Unknown insn_decode_mmio() decode value?" ); +return false; + } + +/* Handle reads */ +if (!mmio_read (size, ve->gpa, &val)) +return false; + +switch (mmio) { +case MMIO_READ : +/* Zero-extend for 32-bit operation */ + extend_size = size ==4 ?sizeof (*reg) :0 ; +break ; +case MMIO_READ_ZERO_EXTEND : +/* Zero extend based on operand size */ + extend_size = insn.opnd_bytes; +break ; +case MMIO_READ_SIGN_EXTEND : +/* Sign extend based on operand size */ + extend_size = insn.opnd_bytes; +if (size ==1 && val &BIT (7 )) + extend_val =0xFF ; +else if (size >1 && val &BIT (15 )) + extend_val =0xFF ; +break ; +default : +/* All other cases has to be covered with the first switch() */ +WARN_ON_ONCE (1 ); +return false; + } + +if (extend_size) +memset (reg, extend_val, extend_size); +memcpy (reg, &val, size); +return true; +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
@@ -276,6 +395,8 @@ static bool virt_exception_kernel(struct pt_regs *regs, struct ve_info *ve)return write_msr (regs);case EXIT_REASON_CPUID :return handle_cpuid (regs); +case EXIT_REASON_EPT_VIOLATION : +return handle_mmio (regs, ve);default :pr_warn ("Unexpected #VE: %lld\n" , ve->exit_reason);return false;
PATCH v8 12/30 x86/tdx: Detect TDX at early kernel decompression time
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
The early decompression code does port I/O for its console output. But, handling the decompression-time port I/O demands a different approach from normal runtime because the IDT required to support #VE based port I/O emulation is not yet set up. Paravirtualizing I/O calls during the decompression step is acceptable because the decompression code doesn't have a lot of call sites to IO instruction.
To support port I/O in decompression code, TDX must be detected before the decompression code might do port I/O. Detect whether the kernel runs in a TDX guest.
Add an early_is_tdx_guest() interface to query the cached TDX guest status in the decompression code.
TDX is detected with CPUID. Make cpuid_count() accessible outside boot/cpuflags.c.
TDX detection in the main kernel is very similar. Move common bits into <asm/shared/tdx.h>.
The actual port I/O paravirtualization will come later in the series.
--- arch/x86/boot/compressed/Makefile | 1 + arch/x86/boot/compressed/misc.c | 8 ++++++++ arch/x86/boot/compressed/misc.h | 2 ++ arch/x86/boot/compressed/tdx.c | 16 ++++++++++++++++ arch/x86/boot/compressed/tdx.h | 13 +++++++++++++ arch/x86/boot/cpuflags.c | 3 +-- arch/x86/boot/cpuflags.h | 1 + arch/x86/include/asm/shared/tdx.h | 8 ++++++++ arch/x86/include/asm/tdx.h | 4 +--- 9 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 arch/x86/boot/compressed/tdx.c create mode 100644 arch/x86/boot/compressed/tdx.h create mode 100644 arch/x86/include/asm/shared/tdx.h
arch/x86/boot/compressed/Makefile +1 -0
@@ -101,6 +101,7 @@ ifdef CONFIG_X86_64 endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o +vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o efi-obj-$(CONFIG_EFI_STUB) = $(objtree)/drivers/firmware/efi/libstub/lib.a
arch/x86/boot/compressed/misc.c +8 -0
@@ -371,6 +371,14 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, lines = boot_params->screen_info.orig_video_lines; cols = boot_params->screen_info.orig_video_cols; +/* +* Detect TDX guest environment. +* +* It has to be done before console_init() in order to use +* paravirtualized port I/O operations if needed. +*/ +early_tdx_detect (); +console_init ();/*
arch/x86/boot/compressed/misc.h +2 -0
@@ -28,6 +28,8 @@#include <asm/bootparam.h> #include <asm/desc_defs.h> +#include "tdx.h" +#define BOOT_CTYPE_H #include <linux/acpi.h>
arch/x86/boot/compressed/tdx.c new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "../cpuflags.h" +#include "../string.h" + +#include <asm/shared/tdx.h> + +void early_tdx_detect (void ) +{ +u32 eax, sig[3 ]; + +cpuid_count (TDX_CPUID_LEAF_ID ,0 , &eax, &sig[0 ], &sig[2 ], &sig[1 ]); + +if (memcmp (TDX_IDENT , sig,sizeof (sig))) +return ; +}
arch/x86/boot/compressed/tdx.h new file +13 -0
@@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef BOOT_COMPRESSED_TDX_H +#define BOOT_COMPRESSED_TDX_H + +#include <linux/types.h> + +#ifdef CONFIG_INTEL_TDX_GUEST +void early_tdx_detect (void ); +#else +static inline void early_tdx_detect (void ) { }; +#endif + +#endif /* BOOT_COMPRESSED_TDX_H */
arch/x86/boot/cpuflags.c +1 -2
@@ -71,8 +71,7 @@ int has_eflag(unsigned long mask)# define EBX_REG "=b"#endif -static inline void cpuid_count (u32 id,u32 count, -u32 *a,u32 *b,u32 *c,u32 *d) +void cpuid_count (u32 id,u32 count,u32 *a,u32 *b,u32 *c,u32 *d) { asmvolatile (".ifnc %%ebx,%3 ; movl %%ebx,%3 ; .endif \n\t" "cpuid \n\t"
arch/x86/boot/cpuflags.h +1 -0
@@ -17,5 +17,6 @@ extern u32 cpu_vendor[3];int has_eflag (unsigned long mask);void get_cpuflags (void ); +void cpuid_count (u32 id,u32 count,u32 *a,u32 *b,u32 *c,u32 *d);#endif
arch/x86/include/asm/shared/tdx.h new file +8 -0
@@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_X86_SHARED_TDX_H +#define _ASM_X86_SHARED_TDX_H + +#define TDX_CPUID_LEAF_ID 0x21 +#define TDX_IDENT "IntelTDX " + +#endif /* _ASM_X86_SHARED_TDX_H */
arch/x86/include/asm/tdx.h +1 -3
@@ -7,9 +7,7 @@#include <linux/init.h> #include <linux/bits.h> #include <asm/ptrace.h> - -#define TDX_CPUID_LEAF_ID 0x21 -#define TDX_IDENT "IntelTDX " +#include <asm/shared/tdx.h> #define TDX_HYPERCALL_STANDARD 0
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Detect TDX at early kernel decompression time
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 4b05f81504bfcaab51083d3a271fada75e6b8904 Gitweb: https://git.kernel.org/tip/4b05f81504bfcaab51083d3a271fada75e6b8904 Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:21 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:51 -07:00
x86/tdx: Detect TDX at early kernel decompression time
The early decompression code does port I/O for its console output. But, handling the decompression-time port I/O demands a different approach from normal runtime because the IDT required to support #VE based port I/O emulation is not yet set up. Paravirtualizing I/O calls during the decompression step is acceptable because the decompression code doesn't have a lot of call sites to IO instruction.
To support port I/O in decompression code, TDX must be detected before the decompression code might do port I/O. Detect whether the kernel runs in a TDX guest.
Add an early_is_tdx_guest() interface to query the cached TDX guest status in the decompression code.
TDX is detected with CPUID. Make cpuid_count() accessible outside boot/cpuflags.c.
TDX detection in the main kernel is very similar. Move common bits into <asm/shared/tdx.h>.
The actual port I/O paravirtualization will come later in the series.
--- arch/x86/boot/compressed/Makefile | 1 + arch/x86/boot/compressed/misc.c | 8 ++++++++ arch/x86/boot/compressed/misc.h | 2 ++ arch/x86/boot/compressed/tdx.c | 16 ++++++++++++++++ arch/x86/boot/compressed/tdx.h | 13 +++++++++++++ arch/x86/boot/cpuflags.c | 3 +-- arch/x86/boot/cpuflags.h | 1 + arch/x86/include/asm/shared/tdx.h | 8 ++++++++ arch/x86/include/asm/tdx.h | 4 +--- 9 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 arch/x86/boot/compressed/tdx.c create mode 100644 arch/x86/boot/compressed/tdx.h create mode 100644 arch/x86/include/asm/shared/tdx.h
arch/x86/boot/compressed/Makefile +1 -0
@@ -101,6 +101,7 @@ ifdef CONFIG_X86_64 endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o +vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o efi-obj-$(CONFIG_EFI_STUB) = $(objtree)/drivers/firmware/efi/libstub/lib.a
arch/x86/boot/compressed/misc.c +8 -0
@@ -371,6 +371,14 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, lines = boot_params->screen_info.orig_video_lines; cols = boot_params->screen_info.orig_video_cols; +/* +* Detect TDX guest environment. +* +* It has to be done before console_init() in order to use +* paravirtualized port I/O operations if needed. +*/ +early_tdx_detect (); +console_init ();/*
arch/x86/boot/compressed/misc.h +2 -0
@@ -28,6 +28,8 @@#include <asm/bootparam.h> #include <asm/desc_defs.h> +#include "tdx.h" +#define BOOT_CTYPE_H #include <linux/acpi.h>
arch/x86/boot/compressed/tdx.c new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "../cpuflags.h" +#include "../string.h" + +#include <asm/shared/tdx.h> + +void early_tdx_detect (void ) +{ +u32 eax, sig[3 ]; + +cpuid_count (TDX_CPUID_LEAF_ID ,0 , &eax, &sig[0 ], &sig[2 ], &sig[1 ]); + +if (memcmp (TDX_IDENT , sig,sizeof (sig))) +return ; +}
arch/x86/boot/compressed/tdx.h new file +13 -0
@@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef BOOT_COMPRESSED_TDX_H +#define BOOT_COMPRESSED_TDX_H + +#include <linux/types.h> + +#ifdef CONFIG_INTEL_TDX_GUEST +void early_tdx_detect (void ); +#else +static inline void early_tdx_detect (void ) { }; +#endif + +#endif /* BOOT_COMPRESSED_TDX_H */
arch/x86/boot/cpuflags.c +1 -2
@@ -71,8 +71,7 @@ int has_eflag(unsigned long mask)# define EBX_REG "=b"#endif -static inline void cpuid_count (u32 id,u32 count, -u32 *a,u32 *b,u32 *c,u32 *d) +void cpuid_count (u32 id,u32 count,u32 *a,u32 *b,u32 *c,u32 *d) { asmvolatile (".ifnc %%ebx,%3 ; movl %%ebx,%3 ; .endif \n\t" "cpuid \n\t"
arch/x86/boot/cpuflags.h +1 -0
@@ -17,5 +17,6 @@ extern u32 cpu_vendor[3];int has_eflag (unsigned long mask);void get_cpuflags (void ); +void cpuid_count (u32 id,u32 count,u32 *a,u32 *b,u32 *c,u32 *d);#endif
arch/x86/include/asm/shared/tdx.h new file +8 -0
@@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_X86_SHARED_TDX_H +#define _ASM_X86_SHARED_TDX_H + +#define TDX_CPUID_LEAF_ID 0x21 +#define TDX_IDENT "IntelTDX " + +#endif /* _ASM_X86_SHARED_TDX_H */
arch/x86/include/asm/tdx.h +1 -3
@@ -7,9 +7,7 @@#include <linux/init.h> #include <linux/bits.h> #include <asm/ptrace.h> - -#define TDX_CPUID_LEAF_ID 0x21 -#define TDX_IDENT "IntelTDX " +#include <asm/shared/tdx.h> #define TDX_HYPERCALL_STANDARD 0
PATCH v8 13/30 x86: Adjust types used in port I/O helpers
In reply to Kirill A. ShutemovChange port I/O helpers to use u8/u16/u32 instead of unsigned char/short/int for values. Use u16 instead of int for port number.
It aligns the helpers with implementation in boot stub in preparation for consolidation.
--- arch/x86/include/asm/io.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
arch/x86/include/asm/io.h +13 -13
@@ -258,37 +258,37 @@ static inline void slow_down_io(void)#endif #define BUILDIO (bwl, bw, type) \ -static inline void out##bwl(unsigned type value, int port) \ +static inline void out##bwl(type value, u16 port) \ { \ asm volatile("out" #bwl " %" #bw "0, %w1" \ : : "a"(value), "Nd"(port)); \ } \ \ -static inline unsigned type in##bwl(int port) \ +static inline type in##bwl(u16 port) \ { \ - unsigned type value; \ + type value; \ asm volatile("in" #bwl " %w1, %" #bw "0" \ : "=a"(value) : "Nd"(port)); \ return value; \ } \ \ -static inline void out##bwl##_p(unsigned type value, int port) \ +static inline void out##bwl##_p(type value, u16 port) \ { \ out##bwl(value, port); \ slow_down_io(); \ } \ \ -static inline unsigned type in##bwl##_p(int port) \ +static inline type in##bwl##_p(u16 port) \ { \ - unsigned type value = in##bwl(port); \ + type value = in##bwl(port); \ slow_down_io(); \ return value; \ } \ \ -static inline void outs##bwl(int port, const void *addr, unsigned long count) \ +static inline void outs##bwl(u16 port, const void *addr, unsigned long count) \ { \ if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \ - unsigned type *value = (unsigned type *)addr; \ + type *value = (type *)addr; \ while (count) { \ out##bwl(*value, port); \ value++; \
@@ -301,10 +301,10 @@ static inline void outs##bwl(int port, const void *addr, unsigned long count) \ } \ } \ \ -static inline void ins##bwl(int port, void *addr, unsigned long count) \ +static inline void ins##bwl(u16 port, void *addr, unsigned long count) \ { \ if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \ - unsigned type *value = (unsigned type *)addr; \ + type *value = (type *)addr; \ while (count) { \ *value = in##bwl(port); \ value++; \
@@ -317,9 +317,9 @@ static inline void ins##bwl(int port, void *addr, unsigned long count) \ } \ } -BUILDIO(b, b, char) -BUILDIO(w, w, short) -BUILDIO(l, , int) +BUILDIO(b, b, u8) +BUILDIO(w, w, u16) +BUILDIO(l, , u32)#define inb inb#define inw inw
Signature · 1 line
2.35.1
[tip: x86/tdx] x86: Adjust types used in port I/O helpers
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 15104de122a4f0258981b06ed94cf616a6eb03ef Gitweb: https://git.kernel.org/tip/15104de122a4f0258981b06ed94cf616a6eb03ef Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:22 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86: Adjust types used in port I/O helpers
Change port I/O helpers to use u8/u16/u32 instead of unsigned char/short/int for values. Use u16 instead of int for port number.
It aligns the helpers with implementation in boot stub in preparation for consolidation.
--- arch/x86/include/asm/io.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
arch/x86/include/asm/io.h +13 -13
@@ -258,37 +258,37 @@ static inline void slow_down_io(void)#endif #define BUILDIO (bwl, bw, type) \ -static inline void out##bwl(unsigned type value, int port) \ +static inline void out##bwl(type value, u16 port) \ { \ asm volatile("out" #bwl " %" #bw "0, %w1" \ : : "a"(value), "Nd"(port)); \ } \ \ -static inline unsigned type in##bwl(int port) \ +static inline type in##bwl(u16 port) \ { \ - unsigned type value; \ + type value; \ asm volatile("in" #bwl " %w1, %" #bw "0" \ : "=a"(value) : "Nd"(port)); \ return value; \ } \ \ -static inline void out##bwl##_p(unsigned type value, int port) \ +static inline void out##bwl##_p(type value, u16 port) \ { \ out##bwl(value, port); \ slow_down_io(); \ } \ \ -static inline unsigned type in##bwl##_p(int port) \ +static inline type in##bwl##_p(u16 port) \ { \ - unsigned type value = in##bwl(port); \ + type value = in##bwl(port); \ slow_down_io(); \ return value; \ } \ \ -static inline void outs##bwl(int port, const void *addr, unsigned long count) \ +static inline void outs##bwl(u16 port, const void *addr, unsigned long count) \ { \ if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \ - unsigned type *value = (unsigned type *)addr; \ + type *value = (type *)addr; \ while (count) { \ out##bwl(*value, port); \ value++; \
@@ -301,10 +301,10 @@ static inline void outs##bwl(int port, const void *addr, unsigned long count) \ } \ } \ \ -static inline void ins##bwl(int port, void *addr, unsigned long count) \ +static inline void ins##bwl(u16 port, void *addr, unsigned long count) \ { \ if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \ - unsigned type *value = (unsigned type *)addr; \ + type *value = (type *)addr; \ while (count) { \ *value = in##bwl(port); \ value++; \
@@ -317,9 +317,9 @@ static inline void ins##bwl(int port, void *addr, unsigned long count) \ } \ } -BUILDIO(b, b, char) -BUILDIO(w, w, short) -BUILDIO(l, , int) +BUILDIO(b, b, u8) +BUILDIO(w, w, u16) +BUILDIO(l, , u32)#define inb inb#define inw inw
PATCH v8 14/30 x86: Consolidate port I/O helpers
In reply to Kirill A. ShutemovThere are two implementations of port I/O helpers: one in the kernel and one in the boot stub.
Move the helpers required for both to <asm/shared/io.h> and use the one implementation everywhere.
--- arch/x86/boot/boot.h | 35 +------------------------------- arch/x86/boot/compressed/misc.h | 2 +- arch/x86/include/asm/io.h | 22 ++------------------ arch/x86/include/asm/shared/io.h | 34 +++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 55 deletions(-) create mode 100644 arch/x86/include/asm/shared/io.h
arch/x86/boot/boot.h +1 -34
@@ -23,6 +23,7 @@#include <linux/edd.h> #include <asm/setup.h> #include <asm/asm.h> +#include <asm/shared/io.h> #include "bitops.h" #include "ctype.h" #include "cpuflags.h"
@@ -35,40 +36,6 @@ extern struct boot_params boot_params;#define cpu_relax () asm volatile("rep; nop") -/* Basic port I/O */ -static inline void outb (u8 v,u16 port) -{ - asmvolatile ("outb %0,%1" : :"a" (v),"dN" (port)); -} -static inline u8 inb (u16 port) -{ -u8 v; - asmvolatile ("inb %1,%0" :"=a" (v) :"dN" (port)); -return v; -} - -static inline void outw (u16 v,u16 port) -{ - asmvolatile ("outw %0,%1" : :"a" (v),"dN" (port)); -} -static inline u16 inw (u16 port) -{ -u16 v; - asmvolatile ("inw %1,%0" :"=a" (v) :"dN" (port)); -return v; -} - -static inline void outl (u32 v,u16 port) -{ - asmvolatile ("outl %0,%1" : :"a" (v),"dN" (port)); -} -static inline u32 inl (u16 port) -{ -u32 v; - asmvolatile ("inl %1,%0" :"=a" (v) :"dN" (port)); -return v; -} -static inline void io_delay (void ) {const u16 DELAY_PORT =0x80 ;
arch/x86/boot/compressed/misc.h +1 -1
@@ -22,11 +22,11 @@#include <linux/linkage.h> #include <linux/screen_info.h> #include <linux/elf.h> -#include <linux/io.h> #include <asm/page.h> #include <asm/boot.h> #include <asm/bootparam.h> #include <asm/desc_defs.h> +#include <asm/shared/io.h> #include "tdx.h"
arch/x86/include/asm/io.h +2 -20
@@ -44,6 +44,7 @@#include <asm/page.h> #include <asm/early_ioremap.h> #include <asm/pgtable_types.h> +#include <asm/shared/io.h> #define build_mmio_read (name, size, type, reg, barrier) \ static inline type name(const volatile void __iomem *addr) \
@@ -258,20 +259,6 @@ static inline void slow_down_io(void)#endif #define BUILDIO (bwl, bw, type) \ -static inline void out##bwl(type value, u16 port) \ -{ \ - asm volatile("out" #bwl " %" #bw "0, %w1" \ - : : "a"(value), "Nd"(port)); \ -} \ - \ -static inline type in##bwl(u16 port) \ -{ \ - type value; \ - asm volatile("in" #bwl " %w1, %" #bw "0" \ - : "=a"(value) : "Nd"(port)); \ - return value; \ -} \ - \ static inline void out##bwl##_p(type value, u16 port) \ { \ out##bwl(value, port); \
@@ -320,10 +307,8 @@ static inline void ins##bwl(u16 port, void *addr, unsigned long count) \ BUILDIO(b, b, u8) BUILDIO(w, w, u16) BUILDIO(l, , u32) +#undef BUILDIO -#define inb inb -#define inw inw -#define inl inl#define inb_p inb_p#define inw_p inw_p#define inl_p inl_p
@@ -331,9 +316,6 @@ BUILDIO(l, , u32)#define insw insw#define insl insl -#define outb outb -#define outw outw -#define outl outl#define outb_p outb_p#define outw_p outw_p#define outl_p outl_p
arch/x86/include/asm/shared/io.h new file +34 -0
@@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_X86_SHARED_IO_H +#define _ASM_X86_SHARED_IO_H + +#include <linux/types.h> + +#define BUILDIO (bwl, bw, type) \ +static inline void __out##bwl(type value, u16 port) \ +{ \ + asm volatile("out" #bwl " %" #bw "0, %w1" \ + : : "a"(value), "Nd"(port)); \ +} \ + \ +static inline type __in##bwl(u16 port) \ +{ \ + type value; \ + asm volatile("in" #bwl " %w1, %" #bw "0" \ + : "=a"(value) : "Nd"(port)); \ + return value; \ +} + +BUILDIO(b, b, u8) +BUILDIO(w, w, u16) +BUILDIO(l, , u32) +#undef BUILDIO + +#define inb __inb +#define inw __inw +#define inl __inl +#define outb __outb +#define outw __outw +#define outl __outl + +#endif
Signature · 1 line
2.35.1
[tip: x86/tdx] x86: Consolidate port I/O helpers
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 1e8f93e18379d05da9fd130eb7d50988a20f8b9a Gitweb: https://git.kernel.org/tip/1e8f93e18379d05da9fd130eb7d50988a20f8b9a Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:23 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86: Consolidate port I/O helpers
There are two implementations of port I/O helpers: one in the kernel and one in the boot stub.
Move the helpers required for both to <asm/shared/io.h> and use the one implementation everywhere.
--- arch/x86/boot/boot.h | 35 +------------------------------- arch/x86/boot/compressed/misc.h | 2 +- arch/x86/include/asm/io.h | 22 +------------------ arch/x86/include/asm/shared/io.h | 34 ++++++++++++++++++++++++++++++- 4 files changed, 38 insertions(+), 55 deletions(-) create mode 100644 arch/x86/include/asm/shared/io.h
arch/x86/boot/boot.h +1 -34
@@ -23,6 +23,7 @@#include <linux/edd.h> #include <asm/setup.h> #include <asm/asm.h> +#include <asm/shared/io.h> #include "bitops.h" #include "ctype.h" #include "cpuflags.h"
@@ -35,40 +36,6 @@ extern struct boot_params boot_params;#define cpu_relax () asm volatile("rep; nop") -/* Basic port I/O */ -static inline void outb (u8 v,u16 port) -{ - asmvolatile ("outb %0,%1" : :"a" (v),"dN" (port)); -} -static inline u8 inb (u16 port) -{ -u8 v; - asmvolatile ("inb %1,%0" :"=a" (v) :"dN" (port)); -return v; -} - -static inline void outw (u16 v,u16 port) -{ - asmvolatile ("outw %0,%1" : :"a" (v),"dN" (port)); -} -static inline u16 inw (u16 port) -{ -u16 v; - asmvolatile ("inw %1,%0" :"=a" (v) :"dN" (port)); -return v; -} - -static inline void outl (u32 v,u16 port) -{ - asmvolatile ("outl %0,%1" : :"a" (v),"dN" (port)); -} -static inline u32 inl (u16 port) -{ -u32 v; - asmvolatile ("inl %1,%0" :"=a" (v) :"dN" (port)); -return v; -} -static inline void io_delay (void ) {const u16 DELAY_PORT =0x80 ;
arch/x86/boot/compressed/misc.h +1 -1
@@ -22,11 +22,11 @@#include <linux/linkage.h> #include <linux/screen_info.h> #include <linux/elf.h> -#include <linux/io.h> #include <asm/page.h> #include <asm/boot.h> #include <asm/bootparam.h> #include <asm/desc_defs.h> +#include <asm/shared/io.h> #include "tdx.h"
arch/x86/include/asm/io.h +2 -20
@@ -44,6 +44,7 @@#include <asm/page.h> #include <asm/early_ioremap.h> #include <asm/pgtable_types.h> +#include <asm/shared/io.h> #define build_mmio_read (name, size, type, reg, barrier) \ static inline type name(const volatile void __iomem *addr) \
@@ -258,20 +259,6 @@ static inline void slow_down_io(void)#endif #define BUILDIO (bwl, bw, type) \ -static inline void out##bwl(type value, u16 port) \ -{ \ - asm volatile("out" #bwl " %" #bw "0, %w1" \ - : : "a"(value), "Nd"(port)); \ -} \ - \ -static inline type in##bwl(u16 port) \ -{ \ - type value; \ - asm volatile("in" #bwl " %w1, %" #bw "0" \ - : "=a"(value) : "Nd"(port)); \ - return value; \ -} \ - \ static inline void out##bwl##_p(type value, u16 port) \ { \ out##bwl(value, port); \
@@ -320,10 +307,8 @@ static inline void ins##bwl(u16 port, void *addr, unsigned long count) \ BUILDIO(b, b, u8) BUILDIO(w, w, u16) BUILDIO(l, , u32) +#undef BUILDIO -#define inb inb -#define inw inw -#define inl inl#define inb_p inb_p#define inw_p inw_p#define inl_p inl_p
@@ -331,9 +316,6 @@ BUILDIO(l, , u32)#define insw insw#define insl insl -#define outb outb -#define outw outw -#define outl outl#define outb_p outb_p#define outw_p outw_p#define outl_p outl_p
arch/x86/include/asm/shared/io.h new file +34 -0
@@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_X86_SHARED_IO_H +#define _ASM_X86_SHARED_IO_H + +#include <linux/types.h> + +#define BUILDIO (bwl, bw, type) \ +static inline void __out##bwl(type value, u16 port) \ +{ \ + asm volatile("out" #bwl " %" #bw "0, %w1" \ + : : "a"(value), "Nd"(port)); \ +} \ + \ +static inline type __in##bwl(u16 port) \ +{ \ + type value; \ + asm volatile("in" #bwl " %w1, %" #bw "0" \ + : "=a"(value) : "Nd"(port)); \ + return value; \ +} + +BUILDIO(b, b, u8) +BUILDIO(w, w, u16) +BUILDIO(l, , u32) +#undef BUILDIO + +#define inb __inb +#define inw __inw +#define inl __inl +#define outb __outb +#define outw __outw +#define outl __outl + +#endif
Borislav Petkov
maintainerRe: [PATCHv8 14/30] x86: Consolidate port I/O helpers
In reply to Kirill A. ShutemovQuoted 8 lines · Kirill A. Shutemov
There are two implementations of port I/O helpers: one in the kernel and one in the boot stub.
Move the helpers required for both to <
asm/shared/io.h> and use the one implementation everywhere.Signed-off-by Kirill A. Shutemov <[email protected]>Reviewed-by Thomas Gleixner <[email protected]>
Quoted 7 lines
--- arch/x86/boot/boot.h | 35 +------------------------------- arch/x86/boot/compressed/misc.h | 2 +- arch/x86/include/asm/io.h | 22 ++------------------ arch/x86/include/asm/shared/io.h | 34 +++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 55 deletions(-) create mode 100644 arch/x86/include/asm/shared/io.h
This complains with clang-13 here, config attached.
And yap, this is the damn include hell I keep talking about. That lib/kalsr.c thing includes the kernel proper io.h header ...
fs/reiserfs/ibalance.o: warning: objtool: balance_internal()+0x11d5: stack state mismatch: cfa1=4+264 cfa2=4+288 In file included from arch/x86/boot/compressed/kaslr.c:72:
In file included from arch/x86/boot/compressed/../../lib/kaslr.c:14:./arch/x86/include/asm/io.h:308:1: warning: implicit declaration of function 'inw' is invalid in C99 [-Wimplicit-function-declaration] BUILDIO(w, w, u16)
^./arch/x86/include/asm/io.h:270:15: note: expanded from macro 'BUILDIO'
type value = in##bwl(port); \
^<scratch space>:262:1: note: expanded from here
inw
^
In file included from arch/x86/boot/compressed/kaslr.c:72:
In file included from arch/x86/boot/compressed/../../lib/kaslr.c:14:./arch/x86/include/asm/io.h:308:1: warning: implicit declaration of function 'inw' is invalid in C99 [-Wimplicit-function-declaration] ./arch/x86/include/asm/io.h:296:13: note: expanded from macro 'BUILDIO'
*value = in##bwl(port); \
^<scratch space>:266:1: note: expanded from here
inw
^
In file included from arch/x86/boot/compressed/kaslr.c:72:
In file included from arch/x86/boot/compressed/../../lib/kaslr.c:14:./arch/x86/include/asm/io.h:309:1: warning: implicit declaration of function 'outl' is invalid in C99 [-Wimplicit-function-declaration] BUILDIO(l, , u32)
^./arch/x86/include/asm/io.h:264:2: note: expanded from macro 'BUILDIO'
out##bwl(value, port); \
^<scratch space>:271:1: note: expanded from here
outl
^
In file included from arch/x86/boot/compressed/kaslr.c:72:
In file included from arch/x86/boot/compressed/../../lib/kaslr.c:14:./arch/x86/include/asm/io.h:309:1: warning: implicit declaration of function 'inl' is invalid in C99 [-Wimplicit-function-declaration] ./arch/x86/include/asm/io.h:270:15: note: expanded from macro 'BUILDIO'
type value = in##bwl(port); \
^<scratch space>:2:1: note: expanded from here
inl
^
In file included from arch/x86/boot/compressed/kaslr.c:72:
In file included from arch/x86/boot/compressed/../../lib/kaslr.c:14:./arch/x86/include/asm/io.h:309:1: warning: implicit declaration of function 'outl' is invalid in C99 [-Wimplicit-function-declaration] ./arch/x86/include/asm/io.h:280:4: note: expanded from macro 'BUILDIO'
out##bwl(*value, port); \
^<scratch space>:4:1: note: expanded from here
outl
^
In file included from arch/x86/boot/compressed/kaslr.c:72:
In file included from arch/x86/boot/compressed/../../lib/kaslr.c:14:./arch/x86/include/asm/io.h:309:1: warning: implicit declaration of function 'inl' is invalid in C99 [-Wimplicit-function-declaration] ./arch/x86/include/asm/io.h:296:13: note: expanded from macro 'BUILDIO'
*value = in##bwl(port); \
^<scratch space>:6:1: note: expanded from here
inl
^
6 warnings generated.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.18.0-rc1 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="Debian clang version 13.0.0-9+b2" CONFIG_GCC_VERSION=0CONFIG_CC_IS_CLANG=yCONFIG_CLANG_VERSION=130000CONFIG_AS_IS_LLVM=yCONFIG_AS_VERSION=130000CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23700CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=yCONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=120CONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_COMPILE_TEST=y
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""CONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_HAVE_KERNEL_ZSTD=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SWAP is not set
# CONFIG_SYSVIPC is not setCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_WATCH_QUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
# CONFIG_USELIB is not set
# CONFIG_AUDIT is not setCONFIG_HAVE_ARCH_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_GENERIC_IRQ_MIGRATION=yCONFIG_GENERIC_IRQ_INJECTION=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_IRQ_FASTEOI_HIERARCHY_HANDLERS=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_GENERIC_MSI_IRQ_DOMAIN=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_TIME_KUNIT_TEST=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not setCONFIG_NO_HZ=y
# CONFIG_HIGH_RES_TIMERS is not setCONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_JIT=yCONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
#
# BPF subsystem
#
# CONFIG_BPF_SYSCALL is not set
# end of BPF subsystem
CONFIG_PREEMPT_NONE_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
# CONFIG_PREEMPT_DYNAMIC is not setCONFIG_SCHED_CORE=y
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not setCONFIG_PSI=y
# CONFIG_PSI_DEFAULT_DISABLED is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=yCONFIG_RCU_EXPERT=yCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_FANOUT=64CONFIG_RCU_FANOUT_LEAF=16
# CONFIG_RCU_NOCB_CPU is not set
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
CONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not setCONFIG_LOG_BUF_SHIFT=17CONFIG_LOG_CPU_MAX_BUF_SHIFT=12CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_PRINTK_INDEX=yCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=yCONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=yCONFIG_CC_HAS_INT128=yCONFIG_ARCH_SUPPORTS_INT128=yCONFIG_CGROUPS=y
# CONFIG_MEMCG is not setCONFIG_BLK_CGROUP=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set
# CONFIG_CGROUP_PIDS is not set
# CONFIG_CGROUP_RDMA is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CPUSETS is not setCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_MISC=yCONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not setCONFIG_TIME_NS=yCONFIG_IPC_NS=y
# CONFIG_USER_NS is not setCONFIG_PID_NS=yCONFIG_NET_NS=y
# CONFIG_CHECKPOINT_RESTORE is not setCONFIG_SCHED_AUTOGROUP=yCONFIG_SYSFS_DEPRECATED=y
# CONFIG_SYSFS_DEPRECATED_V2 is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
# CONFIG_RD_LZO is not set
# CONFIG_RD_LZ4 is not setCONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not setCONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_HAVE_UID16=yCONFIG_SYSCTL_EXCEPTION_TRACE=yCONFIG_HAVE_PCSPKR_PLATFORM=y
# CONFIG_EXPERT is not setCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_HAVE_ARCH_USERFAULTFD_WP=yCONFIG_HAVE_ARCH_USERFAULTFD_MINOR=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ABSOLUTE_PERCPU=yCONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_USERFAULTFD=yCONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_KCMP=yCONFIG_RSEQ=y
# CONFIG_EMBEDDED is not setCONFIG_HAVE_PERF_EVENTS=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# end of Kernel Performance Events And Counters
CONFIG_VM_EVENT_COUNTERS=yCONFIG_SLUB_DEBUG=yCONFIG_COMPAT_BRK=y
# CONFIG_SLAB is not setCONFIG_SLUB=yCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=yCONFIG_SLAB_FREELIST_HARDENED=yCONFIG_SHUFFLE_PAGE_ALLOCATOR=y
# CONFIG_SLUB_CPU_PARTIAL is not setCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28CONFIG_ARCH_MMAP_RND_BITS_MAX=32CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_NR_GPIO=1024CONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_AUDIT_ARCH=yCONFIG_X86_64_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_DYNAMIC_PHYSICAL_MASK=yCONFIG_PGTABLE_LEVELS=4CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#CONFIG_SMP=yCONFIG_X86_FEATURE_NAMES=y CONFIG_X86_X2APIC=yCONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not set CONFIG_RETPOLINE=y
# CONFIG_X86_CPU_RESCTRL is not set CONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_VSMP is not set
# CONFIG_X86_GOLDFISH is not set CONFIG_IOSF_MBI=yCONFIG_IOSF_MBI_DEBUG=y CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_HYPERVISOR_GUEST=y
# CONFIG_PARAVIRT is not set CONFIG_X86_HV_CALLBACK_VECTOR=y CONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not set CONFIG_JAILHOUSE_GUEST=yCONFIG_ACRN_GUEST=yCONFIG_INTEL_TDX_GUEST=y
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set CONFIG_GENERIC_CPU=y CONFIG_X86_INTERNODE_CACHE_SHIFT=6 CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 CONFIG_X86_DEBUGCTLMSR=y CONFIG_IA32_FEAT_CTL=y CONFIG_X86_VMX_FEATURE_NAMES=y CONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=y CONFIG_CPU_SUP_CENTAUR=y CONFIG_CPU_SUP_ZHAOXIN=yCONFIG_HPET_TIMER=yCONFIG_DMI=yCONFIG_GART_IOMMU=y CONFIG_NR_CPUS_RANGE_BEGIN=2 CONFIG_NR_CPUS_RANGE_END=512 CONFIG_NR_CPUS_DEFAULT=64CONFIG_NR_CPUS=64CONFIG_SCHED_CLUSTER=yCONFIG_SCHED_SMT=yCONFIG_SCHED_MC=y
# CONFIG_SCHED_MC_PRIO is not set CONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set CONFIG_X86_MCE=y
# CONFIG_X86_MCELOG_LEGACY is not set
# CONFIG_X86_MCE_INTEL is not set
# CONFIG_X86_MCE_AMD is not set
# CONFIG_X86_MCE_INJECT is not set
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=yCONFIG_PERF_EVENTS_INTEL_RAPL=yCONFIG_PERF_EVENTS_INTEL_CSTATE=yCONFIG_PERF_EVENTS_AMD_POWER=y
# CONFIG_PERF_EVENTS_AMD_UNCORE is not set
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y CONFIG_X86_IOPL_IOPERM=y
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
# CONFIG_X86_5LEVEL is not set CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set CONFIG_X86_MEM_ENCRYPT=y CONFIG_AMD_MEM_ENCRYPT=y CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y
# CONFIG_NUMA is not set CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=y CONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=yCONFIG_X86_UMIP=y CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y CONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set CONFIG_X86_SGX=y
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set CONFIG_CRASH_DUMP=y CONFIG_PHYSICAL_START=0x1000000 CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x200000
# CONFIG_RANDOMIZE_MEMORY is not set CONFIG_HOTPLUG_CPU=y CONFIG_BOOTPARAM_HOTPLUG_CPU0=y CONFIG_DEBUG_HOTPLUG_CPU0=y
# CONFIG_COMPAT_VDSO is not set
# CONFIG_LEGACY_VSYSCALL_EMULATE is not set CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set CONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE=""CONFIG_MODIFY_LDT_SYSCALL=y CONFIG_STRICT_SIGALTSTACK_SIZE=y CONFIG_HAVE_LIVEPATCH=y
# end of Processor type and features
CONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
#
# Power management and ACPI options
#
# CONFIG_SUSPEND is not setCONFIG_PM=y
# CONFIG_PM_DEBUG is not setCONFIG_PM_CLK=yCONFIG_PM_GENERIC_DOMAINS=yCONFIG_WQ_POWER_EFFICIENT_DEFAULT=y
# CONFIG_ENERGY_MODEL is not setCONFIG_ARCH_SUPPORTS_ACPI=y
# CONFIG_ACPI is not setCONFIG_X86_PM_TIMER=y
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
# CPU frequency scaling drivers
#CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_P4_CLOCKMOD is not set
#
# shared options # # end of CPU Frequency scaling
#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
# end of CPU Idle # end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_PCI_DIRECT=y
# CONFIG_PCI_MMCONFIG is not setCONFIG_ISA_DMA_API=yCONFIG_AMD_NB=y
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_X86_X32_ABI is not setCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations
CONFIG_HAVE_KVM=yCONFIG_VIRTUALIZATION=yCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_HOTPLUG_SMT=yCONFIG_GENERIC_ENTRY=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y CONFIG_ARCH_HAS_SET_MEMORY=y CONFIG_ARCH_HAS_SET_DIRECT_MAP=y CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_ARCH_WANTS_NO_INSTR=y CONFIG_HAVE_ASM_MODVERSIONS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RSEQ=y CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y CONFIG_HAVE_PERF_EVENTS_NMI=y CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HAVE_PERF_REGS=y CONFIG_HAVE_PERF_USER_STACK_DUMP=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y CONFIG_HAVE_CMPXCHG_LOCAL=y CONFIG_HAVE_CMPXCHG_DOUBLE=y CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y CONFIG_HAVE_ARCH_SECCOMP=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y CONFIG_STACKPROTECTOR_STRONG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_LTO_NONE=y CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_CONTEXT_TRACKING_OFFSTACK=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_MOVE_PUD=y CONFIG_HAVE_MOVE_PMD=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=y CONFIG_HAVE_ARCH_HUGE_VMALLOC=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_HAVE_ARCH_SOFT_DIRTY=y CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y CONFIG_HAVE_EXIT_THREAD=y CONFIG_ARCH_MMAP_RND_BITS=28 CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8 CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y CONFIG_ISA_BUS_API=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_COMPAT_OLD_SIGACTION=y CONFIG_COMPAT_32BIT_TIME=y CONFIG_HAVE_ARCH_VMAP_STACK=y CONFIG_VMAP_STACK=y CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y CONFIG_ARCH_USE_MEMREMAP_PROT=y CONFIG_LOCK_EVENT_COUNTS=y CONFIG_ARCH_HAS_MEM_ENCRYPT=y CONFIG_ARCH_HAS_CC_PLATFORM=y CONFIG_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y CONFIG_DYNAMIC_SIGFRAME=y CONFIG_HAVE_ARCH_NODE_DEV_GROUP=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0
# CONFIG_MODULES is not setCONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=yCONFIG_BLK_RQ_ALLOC_TIME=yCONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=yCONFIG_BLK_DEV_INTEGRITY=yCONFIG_BLK_DEV_INTEGRITY_T10=y
# CONFIG_BLK_DEV_ZONED is not setCONFIG_BLK_DEV_THROTTLING=yCONFIG_BLK_DEV_THROTTLING_LOW=y
# CONFIG_BLK_WBT is not set
# CONFIG_BLK_CGROUP_IOLATENCY is not setCONFIG_BLK_CGROUP_IOCOST=y
# CONFIG_BLK_CGROUP_IOPRIO is not set
# CONFIG_BLK_DEBUG_FS is not set
# CONFIG_BLK_SED_OPAL is not setCONFIG_BLK_INLINE_ENCRYPTION=yCONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=yCONFIG_EFI_PARTITION=y
# end of Partition Types
CONFIG_BLOCK_COMPAT=yCONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_PM=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_BFQ_GROUP_IOSCHED=yCONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers
CONFIG_PADATA=yCONFIG_ASN1=yCONFIG_INLINE_SPIN_UNLOCK_IRQ=yCONFIG_INLINE_READ_UNLOCK=yCONFIG_INLINE_READ_UNLOCK_IRQ=yCONFIG_INLINE_WRITE_UNLOCK=yCONFIG_INLINE_WRITE_UNLOCK_IRQ=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_MUTEX_SPIN_ON_OWNER=yCONFIG_RWSEM_SPIN_ON_OWNER=yCONFIG_LOCK_SPIN_ON_OWNER=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_BINFMT_ELF_KUNIT_TEST=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not setCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_SPARSEMEM=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=yCONFIG_SPARSEMEM_VMEMMAP=yCONFIG_HAVE_FAST_GUP=yCONFIG_MEMORY_ISOLATION=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG is not setCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
# CONFIG_COMPACTION is not setCONFIG_PAGE_REPORTING=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=yCONFIG_MEMORY_FAILURE=y
# CONFIG_TRANSPARENT_HUGEPAGE is not setCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_ARCH_WANTS_THP_SWAP=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_CMA is not set
# CONFIG_ZPOOL is not set
# CONFIG_ZSMALLOC is not setCONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not setCONFIG_PAGE_IDLE_FLAG=y
# CONFIG_IDLE_PAGE_TRACKING is not setCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_ARCH_HAS_CURRENT_STACK_POINTER=yCONFIG_ARCH_HAS_FILTER_PGPROT=yCONFIG_ARCH_HAS_PTE_DEVMAP=yCONFIG_ZONE_DMA=yCONFIG_ZONE_DMA32=yCONFIG_ARCH_USES_HIGH_VMA_FLAGS=yCONFIG_ARCH_HAS_PKEYS=y
# CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not setCONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_MAPPING_DIRTY_HELPERS=yCONFIG_SECRETMEM=yCONFIG_ANON_VMA_NAME=y
#
# Data Access Monitoring
#CONFIG_DAMON=yCONFIG_DAMON_KUNIT_TEST=yCONFIG_DAMON_VADDR=y
# CONFIG_DAMON_PADDR is not setCONFIG_DAMON_VADDR_KUNIT_TEST=yCONFIG_DAMON_SYSFS=y
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not setCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=y
# CONFIG_INET is not setCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
# CONFIG_NETFILTER is not setCONFIG_ATM=yCONFIG_ATM_LANE=yCONFIG_STP=yCONFIG_GARP=yCONFIG_MRP=yCONFIG_BRIDGE=y
# CONFIG_BRIDGE_VLAN_FILTERING is not setCONFIG_BRIDGE_MRP=y
# CONFIG_BRIDGE_CFM is not setCONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=yCONFIG_VLAN_8021Q_MVRP=yCONFIG_DECNET=yCONFIG_DECNET_ROUTER=yCONFIG_LLC=yCONFIG_LLC2=y
# CONFIG_ATALK is not setCONFIG_X25=yCONFIG_LAPB=y
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not setCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=y
# CONFIG_NET_SCH_HFSC is not setCONFIG_NET_SCH_ATM=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_MULTIQ=y
# CONFIG_NET_SCH_RED is not setCONFIG_NET_SCH_SFB=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=y
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not setCONFIG_NET_SCH_TAPRIO=y
# CONFIG_NET_SCH_GRED is not setCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_NETEM=y
# CONFIG_NET_SCH_DRR is not set
# CONFIG_NET_SCH_MQPRIO is not set
# CONFIG_NET_SCH_SKBPRIO is not set
# CONFIG_NET_SCH_CHOKE is not setCONFIG_NET_SCH_QFQ=yCONFIG_NET_SCH_CODEL=y
# CONFIG_NET_SCH_FQ_CODEL is not set
# CONFIG_NET_SCH_CAKE is not setCONFIG_NET_SCH_FQ=yCONFIG_NET_SCH_HHF=y
# CONFIG_NET_SCH_PIE is not setCONFIG_NET_SCH_INGRESS=yCONFIG_NET_SCH_PLUG=yCONFIG_NET_SCH_ETS=y
# CONFIG_NET_SCH_DEFAULT is not set
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_CLS_U32_PERF=y
# CONFIG_CLS_U32_MARK is not setCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=y
# CONFIG_NET_CLS_FLOW is not set
# CONFIG_NET_CLS_CGROUP is not set
# CONFIG_NET_CLS_BPF is not setCONFIG_NET_CLS_FLOWER=yCONFIG_NET_CLS_MATCHALL=yCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=yCONFIG_NET_EMATCH_NBYTE=yCONFIG_NET_EMATCH_U32=yCONFIG_NET_EMATCH_META=yCONFIG_NET_EMATCH_TEXT=yCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=yCONFIG_NET_ACT_GACT=y
# CONFIG_GACT_PROB is not setCONFIG_NET_ACT_MIRRED=yCONFIG_NET_ACT_SAMPLE=y
# CONFIG_NET_ACT_NAT is not setCONFIG_NET_ACT_PEDIT=y
# CONFIG_NET_ACT_SIMP is not setCONFIG_NET_ACT_SKBEDIT=yCONFIG_NET_ACT_MPLS=y
# CONFIG_NET_ACT_VLAN is not setCONFIG_NET_ACT_BPF=yCONFIG_NET_ACT_SKBMOD=y
# CONFIG_NET_ACT_IFE is not set
# CONFIG_NET_ACT_TUNNEL_KEY is not setCONFIG_NET_ACT_GATE=y
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=y
# CONFIG_DCB is not setCONFIG_DNS_RESOLVER=yCONFIG_BATMAN_ADV=y
# CONFIG_BATMAN_ADV_BATMAN_V is not set
# CONFIG_BATMAN_ADV_NC is not setCONFIG_BATMAN_ADV_DEBUG=y
# CONFIG_BATMAN_ADV_TRACING is not setCONFIG_VSOCKETS=y
# CONFIG_VSOCKETS_DIAG is not set
# CONFIG_VSOCKETS_LOOPBACK is not set
# CONFIG_VIRTIO_VSOCKETS is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_MPLS is not setCONFIG_NET_NSH=y
# CONFIG_HSR is not setCONFIG_QRTR=yCONFIG_QRTR_SMD=yCONFIG_QRTR_TUN=y
# CONFIG_PCPU_DEV_REFCNT is not setCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_XPS=y
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not setCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not setCONFIG_BT=y
# CONFIG_BT_BREDR is not setCONFIG_BT_LE=y
# CONFIG_BT_LEDS is not setCONFIG_BT_MSFTEXT=y
# CONFIG_BT_AOSPEXT is not setCONFIG_BT_DEBUGFS=yCONFIG_BT_FEATURE_DEBUG=y
#
# Bluetooth device drivers
#CONFIG_BT_QCA=yCONFIG_BT_MTK=y
# CONFIG_BT_HCIBTSDIO is not set
# CONFIG_BT_HCIUART is not set
# CONFIG_BT_HCIDTL1 is not set
# CONFIG_BT_HCIBT3C is not setCONFIG_BT_HCIBLUECARD=yCONFIG_BT_HCIVHCI=y
# CONFIG_BT_MRVL is not setCONFIG_BT_MTKSDIO=yCONFIG_BT_MTKUART=yCONFIG_BT_QCOMSMD=yCONFIG_BT_VIRTIO=y
# end of Bluetooth device drivers
CONFIG_MCTP=yCONFIG_MCTP_TEST=yCONFIG_MCTP_FLOWS=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
#
# CFG80211 needs to be enabled for MAC80211
#CONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=yCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_GPIO=yCONFIG_NET_9P=yCONFIG_NET_9P_FD=yCONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not setCONFIG_NFC=y
# CONFIG_NFC_DIGITAL is not set
# CONFIG_NFC_NCI is not setCONFIG_NFC_HCI=yCONFIG_NFC_SHDLC=y
#
# Near Field Communication (NFC) devices
#CONFIG_NFC_MEI_PHY=yCONFIG_NFC_PN544=yCONFIG_NFC_PN544_I2C=y
# CONFIG_NFC_PN544_MEI is not setCONFIG_NFC_PN533=y
# CONFIG_NFC_PN533_I2C is not setCONFIG_NFC_PN532_UART=yCONFIG_NFC_MICROREAD=yCONFIG_NFC_MICROREAD_I2C=y
# CONFIG_NFC_MICROREAD_MEI is not setCONFIG_NFC_ST21NFCA=yCONFIG_NFC_ST21NFCA_I2C=y
# end of Near Field Communication (NFC) devices
CONFIG_PSAMPLE=y
# CONFIG_NET_IFE is not set
# CONFIG_LWTUNNEL is not setCONFIG_FAILOVER=yCONFIG_ETHTOOL_NETLINK=y
# CONFIG_NETDEV_ADDR_LIST_TEST is not set
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=y
# CONFIG_PCIE_ECRC is not setCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_PCIE_PME=yCONFIG_PCIE_DPC=yCONFIG_PCIE_PTM=yCONFIG_PCI_MSI=yCONFIG_PCI_MSI_IRQ_DOMAIN=yCONFIG_PCI_QUIRKS=yCONFIG_PCI_REALLOC_ENABLE_AUTO=yCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=yCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=y
# CONFIG_PCI_PRI is not setCONFIG_PCI_PASID=yCONFIG_PCI_LABEL=yCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_HOTPLUG_PCI is not set
#
# PCI controller drivers
#CONFIG_PCIE_XILINX_NWL=yCONFIG_PCI_TEGRA=y
# CONFIG_PCIE_RCAR_HOST is not setCONFIG_PCIE_RCAR_EP=yCONFIG_PCIE_XILINX=y
# CONFIG_PCIE_XILINX_CPM is not setCONFIG_PCI_VERSATILE=yCONFIG_PCIE_ALTERA=yCONFIG_PCIE_ALTERA_MSI=yCONFIG_PCIE_MEDIATEK_GEN3=y
# CONFIG_VMD is not setCONFIG_PCIE_MT7621=y
#
# DesignWare PCI Core Support
#CONFIG_PCIE_DW=yCONFIG_PCIE_DW_HOST=yCONFIG_PCIE_DW_EP=y
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCIE_DW_PLAT_EP is not setCONFIG_PCI_EXYNOS=yCONFIG_PCI_IMX6=y
# CONFIG_PCIE_SPEAR13XX is not setCONFIG_PCI_KEYSTONE=yCONFIG_PCI_KEYSTONE_HOST=yCONFIG_PCI_KEYSTONE_EP=y
# CONFIG_PCIE_ARMADA_8K is not setCONFIG_PCIE_ARTPEC6=yCONFIG_PCIE_ARTPEC6_HOST=y
# CONFIG_PCIE_ARTPEC6_EP is not setCONFIG_PCIE_KEEMBAY=yCONFIG_PCIE_KEEMBAY_HOST=yCONFIG_PCIE_KEEMBAY_EP=yCONFIG_PCIE_HISI_STB=yCONFIG_PCI_MESON=yCONFIG_PCIE_TEGRA194=y
# CONFIG_PCIE_TEGRA194_HOST is not setCONFIG_PCIE_TEGRA194_EP=yCONFIG_PCIE_VISCONTI_HOST=yCONFIG_PCIE_FU740=y
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# CONFIG_PCIE_LAYERSCAPE_GEN4 is not set
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#CONFIG_PCI_ENDPOINT=y
# CONFIG_PCI_ENDPOINT_CONFIGFS is not set
# CONFIG_PCI_EPF_TEST is not setCONFIG_PCI_EPF_NTB=y
# end of PCI Endpoint
#
# PCI switch controller drivers
#CONFIG_PCI_SW_SWITCHTEC=y
# end of PCI switch controller drivers
# CONFIG_CXL_BUS is not setCONFIG_PCCARD=yCONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=y
# CONFIG_CARDBUS is not set
#
# PC-card bridges
#
# CONFIG_YENTA is not set
# CONFIG_PD6729 is not setCONFIG_I82092=yCONFIG_PCCARD_NONSTATIC=yCONFIG_RAPIDIO=yCONFIG_RAPIDIO_TSI721=yCONFIG_RAPIDIO_DISC_TIMEOUT=30
# CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS is not setCONFIG_RAPIDIO_DMA_ENGINE=yCONFIG_RAPIDIO_DEBUG=yCONFIG_RAPIDIO_ENUM_BASIC=y
# CONFIG_RAPIDIO_CHMAN is not set
# CONFIG_RAPIDIO_MPORT_CDEV is not set
#
# RapidIO Switch drivers
#CONFIG_RAPIDIO_CPS_XX=yCONFIG_RAPIDIO_CPS_GEN2=yCONFIG_RAPIDIO_RXS_GEN3=y
# end of RapidIO Switch drivers
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=y
# CONFIG_UEVENT_HELPER is not setCONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_DEVTMPFS_SAFE=y
# CONFIG_STANDALONE is not setCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=yCONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER is not set
# CONFIG_FW_LOADER_COMPRESS is not set
# end of Firmware loader
CONFIG_WANT_DEV_COREDUMP=yCONFIG_ALLOW_DEV_COREDUMP=yCONFIG_DEV_COREDUMP=yCONFIG_PM_QOS_KUNIT_TEST=yCONFIG_DRIVER_PE_KUNIT_TEST=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_SOC_BUS=yCONFIG_REGMAP=yCONFIG_REGMAP_AC97=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_SPMI=yCONFIG_REGMAP_W1=yCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=yCONFIG_DMA_SHARED_BUFFER=yCONFIG_DMA_FENCE_TRACE=y
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_ARM_INTEGRATOR_LM is not set
# CONFIG_BT1_APB is not setCONFIG_BT1_AXI=y
# CONFIG_HISILICON_LPC is not set
# CONFIG_INTEL_IXP4XX_EB is not setCONFIG_QCOM_EBI2=y
# CONFIG_MHI_BUS is not set
# end of Bus devices
CONFIG_CONNECTOR=y
# CONFIG_PROC_EVENTS is not set
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #CONFIG_ARM_SCMI_PROTOCOL=y CONFIG_ARM_SCMI_HAVE_TRANSPORT=y CONFIG_ARM_SCMI_HAVE_MSG=y CONFIG_ARM_SCMI_TRANSPORT_VIRTIO=y
# CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_VERSION1_COMPLIANCE is not set CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE=y
# CONFIG_ARM_SCMI_POWER_DOMAIN is not set
# end of ARM System Control and Management Interface Protocol
CONFIG_EDD=yCONFIG_EDD_OFF=yCONFIG_FIRMWARE_MEMMAP=y
# CONFIG_DMIID is not set CONFIG_DMI_SYSFS=y CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y CONFIG_FW_CFG_SYSFS=y
# CONFIG_FW_CFG_SYSFS_CMDLINE is not set CONFIG_QCOM_SCM=y
# CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT is not set CONFIG_SYSFB=yCONFIG_SYSFB_SIMPLEFB=y CONFIG_BCM47XX_NVRAM=y CONFIG_BCM47XX_SPROM=y CONFIG_TEE_BNXT_FW=yCONFIG_CS_DSP=yCONFIG_GOOGLE_FIRMWARE=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_GNSS=yCONFIG_GNSS_SERIAL=yCONFIG_GNSS_MTK_SERIAL=y
# CONFIG_GNSS_SIRF_SERIAL is not set
# CONFIG_GNSS_UBX_SERIAL is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
#
# NVME Support
#CONFIG_NVME_CORE=yCONFIG_BLK_DEV_NVME=yCONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_VERBOSE_ERRORS is not set
# CONFIG_NVME_HWMON is not set
# CONFIG_NVME_FC is not setCONFIG_NVME_TARGET=yCONFIG_NVME_TARGET_PASSTHRU=y
# CONFIG_NVME_TARGET_LOOP is not set
# CONFIG_NVME_TARGET_FC is not set
# end of NVME Support
#
# Misc devices
#CONFIG_AD525X_DPOT=y
# CONFIG_AD525X_DPOT_I2C is not setCONFIG_DUMMY_IRQ=yCONFIG_IBM_ASM=yCONFIG_PHANTOM=yCONFIG_TIFM_CORE=y
# CONFIG_TIFM_7XX1 is not setCONFIG_ICS932S401=yCONFIG_ATMEL_SSC=yCONFIG_ENCLOSURE_SERVICES=yCONFIG_HP_ILO=yCONFIG_QCOM_COINCELL=yCONFIG_APDS9802ALS=yCONFIG_ISL29003=y
# CONFIG_ISL29020 is not setCONFIG_SENSORS_TSL2550=yCONFIG_SENSORS_BH1770=y
# CONFIG_SENSORS_APDS990X is not setCONFIG_HMC6352=yCONFIG_DS1682=yCONFIG_PCH_PHUB=y
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not setCONFIG_PCI_ENDPOINT_TEST=y
# CONFIG_XILINX_SDFEC is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#CONFIG_EEPROM_AT24=yCONFIG_EEPROM_LEGACY=yCONFIG_EEPROM_MAX6875=yCONFIG_EEPROM_93CX6=yCONFIG_EEPROM_IDT_89HPESX=yCONFIG_EEPROM_EE1004=y
# end of EEPROM support
CONFIG_CB710_CORE=y
# CONFIG_CB710_DEBUG is not setCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #CONFIG_TI_ST=y
# end of Texas Instruments shared transport line discipline
# CONFIG_SENSORS_LIS3_I2C is not setCONFIG_ALTERA_STAPL=yCONFIG_INTEL_MEI=yCONFIG_INTEL_MEI_ME=y
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_VMWARE_VMCI is not setCONFIG_GENWQE=yCONFIG_GENWQE_PLATFORM_ERROR_RECOVERY=0CONFIG_ECHO=yCONFIG_BCM_VK=yCONFIG_BCM_VK_TTY=y
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
# CONFIG_HABANA_AI is not set
# CONFIG_UACCE is not set
# CONFIG_PVPANIC is not set
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=yCONFIG_SCSI_COMMON=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_CHR_DEV_SG=yCONFIG_BLK_DEV_BSG=y
# CONFIG_CHR_DEV_SCH is not setCONFIG_SCSI_ENCLOSURE=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_FC_ATTRS=yCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SAS_LIBSAS=y
# CONFIG_SCSI_SAS_ATA is not setCONFIG_SCSI_SAS_HOST_SMP=y
# CONFIG_SCSI_SRP_ATTRS is not set
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=y CONFIG_ISCSI_BOOT_SYSFS=y
# CONFIG_SCSI_BNX2_ISCSI is not set CONFIG_BE2ISCSI=y
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set CONFIG_SCSI_3W_9XXX=yCONFIG_SCSI_3W_SAS=y
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set CONFIG_SCSI_AIC94XX=yCONFIG_AIC94XX_DEBUG=yCONFIG_SCSI_HISI_SAS=y
# CONFIG_SCSI_HISI_SAS_DEBUGFS_DEFAULT_ENABLE is not set CONFIG_SCSI_MVSAS=y
# CONFIG_SCSI_MVSAS_DEBUG is not set CONFIG_SCSI_MVSAS_TASKLET=yCONFIG_SCSI_MVUMI=y
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set CONFIG_SCSI_ARCMSR=yCONFIG_SCSI_ESAS2R=y
# CONFIG_MEGARAID_NEWGEN is not set CONFIG_MEGARAID_LEGACY=y
# CONFIG_MEGARAID_SAS is not set CONFIG_SCSI_MPT3SAS=y CONFIG_SCSI_MPT2SAS_MAX_SGE=128 CONFIG_SCSI_MPT3SAS_MAX_SGE=128 CONFIG_SCSI_MPT2SAS=yCONFIG_SCSI_MPI3MR=y
# CONFIG_SCSI_SMARTPQI is not set CONFIG_SCSI_UFSHCD=yCONFIG_SCSI_UFSHCD_PCI=y CONFIG_SCSI_UFS_DWC_TC_PCI=y CONFIG_SCSI_UFSHCD_PLATFORM=y CONFIG_SCSI_UFS_CDNS_PLATFORM=y CONFIG_SCSI_UFS_DWC_TC_PLATFORM=y CONFIG_SCSI_UFS_HISI=y
# CONFIG_SCSI_UFS_BSG is not set CONFIG_SCSI_UFS_EXYNOS=y
# CONFIG_SCSI_UFS_CRYPTO is not set CONFIG_SCSI_UFS_HPB=y
# CONFIG_SCSI_UFS_HWMON is not set CONFIG_SCSI_HPTIOP=yCONFIG_SCSI_BUSLOGIC=yCONFIG_SCSI_FLASHPOINT=yCONFIG_SCSI_MYRB=yCONFIG_SCSI_MYRS=y
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_LIBFC is not setCONFIG_SCSI_SNIC=yCONFIG_SCSI_SNIC_DEBUG_FS=y
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not set CONFIG_SCSI_ISCI=y
# CONFIG_SCSI_IPS is not set CONFIG_SCSI_INITIO=y
# CONFIG_SCSI_INIA100 is not set CONFIG_SCSI_STEX=yCONFIG_SCSI_SYM53C8XX_2=y CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1 CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16 CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
# CONFIG_SCSI_SYM53C8XX_MMIO is not set CONFIG_SCSI_IPR=yCONFIG_SCSI_IPR_TRACE=y
# CONFIG_SCSI_IPR_DUMP is not set CONFIG_SCSI_QLOGIC_1280=yCONFIG_SCSI_QLA_FC=yCONFIG_SCSI_QLA_ISCSI=yCONFIG_SCSI_LPFC=yCONFIG_SCSI_LPFC_DEBUG_FS=yCONFIG_SCSI_EFCT=y
CONFIG_SCSI_DC395x=yCONFIG_SCSI_AM53C974=y
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set CONFIG_SCSI_PMCRAID=yCONFIG_SCSI_PM8001=yCONFIG_SCSI_BFA_FC=yCONFIG_SCSI_VIRTIO=y
# CONFIG_SCSI_CHELSIO_FCOE is not set CONFIG_SCSI_LOWLEVEL_PCMCIA=yCONFIG_SCSI_DH=y
# CONFIG_SCSI_DH_RDAC is not set CONFIG_SCSI_DH_HP_SW=y
# CONFIG_SCSI_DH_EMC is not set
# CONFIG_SCSI_DH_ALUA is not set
# end of SCSI device support
CONFIG_ATA=yCONFIG_SATA_HOST=y
# CONFIG_ATA_VERBOSE_ERROR is not setCONFIG_ATA_FORCE=y
# CONFIG_SATA_PMP is not set
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=yCONFIG_SATA_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=yCONFIG_AHCI_BRCM=yCONFIG_AHCI_DA850=yCONFIG_AHCI_DM816=yCONFIG_AHCI_IMX=yCONFIG_AHCI_MTK=y
# CONFIG_AHCI_MVEBU is not setCONFIG_AHCI_SUNXI=yCONFIG_AHCI_TEGRA=y
# CONFIG_AHCI_XGENE is not set
# CONFIG_SATA_FSL is not set
# CONFIG_SATA_AHCI_SEATTLE is not set
# CONFIG_SATA_INIC162X is not setCONFIG_SATA_ACARD_AHCI=y
# CONFIG_SATA_SIL24 is not set
# CONFIG_ATA_SFF is not set
# CONFIG_MD is not setCONFIG_TARGET_CORE=y
# CONFIG_TCM_IBLOCK is not setCONFIG_TCM_FILEIO=y
# CONFIG_TCM_PSCSI is not set
# CONFIG_LOOPBACK_TARGET is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not setCONFIG_FIREWIRE_NOSY=y
# end of IEEE 1394 (FireWire) support
# CONFIG_MACINTOSH_DRIVERS is not setCONFIG_NETDEVICES=yCONFIG_NET_CORE=y
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not setCONFIG_NET_FC=yCONFIG_IFB=y
# CONFIG_NET_TEAM is not setCONFIG_MACVLAN=y
# CONFIG_MACSEC is not setCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_NTB_NETDEV=y
# CONFIG_RIONET is not set
# CONFIG_TUN_VNET_CROSS_LE is not setCONFIG_VETH=yCONFIG_VIRTIO_NET=yCONFIG_NLMON=y
# CONFIG_ARCNET is not set
# CONFIG_ATM_DRIVERS is not set
# CONFIG_ETHERNET is not setCONFIG_FDDI=y
# CONFIG_DEFXX is not set
# CONFIG_SKFP is not setCONFIG_PHYLIB=yCONFIG_SWPHY=y
# CONFIG_LED_TRIGGER_PHY is not setCONFIG_FIXED_PHY=y
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_MESON_GXL_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
# CONFIG_AX88796B_PHY is not set
# CONFIG_BROADCOM_PHY is not setCONFIG_BCM54140_PHY=y
# CONFIG_BCM63XX_PHY is not setCONFIG_BCM7XXX_PHY=yCONFIG_BCM84881_PHY=yCONFIG_BCM87XX_PHY=yCONFIG_BCM_NET_PHYLIB=y
# CONFIG_CICADA_PHY is not setCONFIG_CORTINA_PHY=yCONFIG_DAVICOM_PHY=y
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not setCONFIG_MARVELL_PHY=yCONFIG_MARVELL_10G_PHY=y
# CONFIG_MARVELL_88X2222_PHY is not setCONFIG_MAXLINEAR_GPHY=y
# CONFIG_MEDIATEK_GE_PHY is not set
# CONFIG_MICREL_PHY is not setCONFIG_MICROCHIP_PHY=yCONFIG_MICROCHIP_T1_PHY=y
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_MOTORCOMM_PHY is not setCONFIG_NATIONAL_PHY=yCONFIG_NXP_C45_TJA11XX_PHY=y
# CONFIG_NXP_TJA11XX_PHY is not setCONFIG_AT803X_PHY=y
# CONFIG_QSEMI_PHY is not setCONFIG_REALTEK_PHY=yCONFIG_RENESAS_PHY=y
# CONFIG_ROCKCHIP_PHY is not setCONFIG_SMSC_PHY=y
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not setCONFIG_DP83822_PHY=y
# CONFIG_DP83TC811_PHY is not setCONFIG_DP83848_PHY=y
# CONFIG_DP83867_PHY is not setCONFIG_DP83869_PHY=y
# CONFIG_VITESSE_PHY is not setCONFIG_XILINX_GMII2RGMII=y
#
# MCTP Device Drivers
#CONFIG_MCTP_SERIAL=yCONFIG_MCTP_TRANSPORT_I2C=y
# end of MCTP Device Drivers
CONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_MDIO_DEVRES=yCONFIG_MDIO_SUN4I=y
# CONFIG_MDIO_XGENE is not set
# CONFIG_MDIO_BITBANG is not setCONFIG_MDIO_BCM_UNIMAC=yCONFIG_MDIO_CAVIUM=yCONFIG_MDIO_MSCC_MIIM=y
# CONFIG_MDIO_MOXART is not setCONFIG_MDIO_OCTEON=y
# CONFIG_MDIO_THUNDER is not set
#
# MDIO Multiplexers
#
#
# PCS device drivers
#
# CONFIG_PCS_XPCS is not set
# end of PCS device drivers
CONFIG_PPP=yCONFIG_PPP_BSDCOMP=yCONFIG_PPP_DEFLATE=yCONFIG_PPP_FILTER=y
# CONFIG_PPP_MPPE is not set
# CONFIG_PPP_MULTILINK is not setCONFIG_PPPOATM=y
# CONFIG_PPPOE is not set
# CONFIG_PPP_ASYNC is not setCONFIG_PPP_SYNC_TTY=yCONFIG_SLIP=yCONFIG_SLHC=yCONFIG_SLIP_COMPRESSED=yCONFIG_SLIP_SMART=y
# CONFIG_SLIP_MODE_SLIP6 is not set
#
# Host-side USB support is needed for USB Network Adapter support #
# CONFIG_WLAN is not setCONFIG_WAN=yCONFIG_LANMEDIA=yCONFIG_HDLC=yCONFIG_HDLC_RAW=yCONFIG_HDLC_RAW_ETH=yCONFIG_HDLC_CISCO=yCONFIG_HDLC_FR=yCONFIG_HDLC_PPP=y
# CONFIG_HDLC_X25 is not setCONFIG_PCI200SYN=y
# CONFIG_WANXL is not setCONFIG_PC300TOO=y
# CONFIG_FARSYNC is not setCONFIG_LAPBETHER=y
#
# Wireless WAN
#CONFIG_WWAN=yCONFIG_WWAN_DEBUGFS=yCONFIG_WWAN_HWSIM=y
# CONFIG_QCOM_BAM_DMUX is not set
# end of Wireless WAN
CONFIG_NET_FAILOVER=y
# CONFIG_ISDN is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_LEDS is not setCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=yCONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not setCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ADP5588=yCONFIG_KEYBOARD_ADP5589=yCONFIG_KEYBOARD_ATKBD=yCONFIG_KEYBOARD_QT1050=yCONFIG_KEYBOARD_QT1070=yCONFIG_KEYBOARD_QT2160=y
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not setCONFIG_KEYBOARD_EP93XX=yCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_GPIO_POLLED=yCONFIG_KEYBOARD_TCA6416=y
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not setCONFIG_KEYBOARD_LM8333=y
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not setCONFIG_KEYBOARD_MPR121=yCONFIG_KEYBOARD_IMX=yCONFIG_KEYBOARD_NEWTON=yCONFIG_KEYBOARD_OPENCORES=yCONFIG_KEYBOARD_SAMSUNG=y
# CONFIG_KEYBOARD_GOLDFISH_EVENTS is not setCONFIG_KEYBOARD_STOWAWAY=y
# CONFIG_KEYBOARD_ST_KEYSCAN is not setCONFIG_KEYBOARD_SUNKBD=yCONFIG_KEYBOARD_SH_KEYSC=y
# CONFIG_KEYBOARD_IQS62X is not setCONFIG_KEYBOARD_TM2_TOUCHKEY=yCONFIG_KEYBOARD_XTKBD=yCONFIG_KEYBOARD_CROS_EC=yCONFIG_KEYBOARD_MT6779=y
# CONFIG_KEYBOARD_CYPRESS_SF is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=y
# CONFIG_MOUSE_PS2_SENTELIC is not set
# CONFIG_MOUSE_PS2_TOUCHKIT is not setCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_VMMOUSE=yCONFIG_MOUSE_PS2_SMBUS=y
# CONFIG_MOUSE_SERIAL is not setCONFIG_MOUSE_CYAPA=y
# CONFIG_MOUSE_ELAN_I2C is not setCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=yCONFIG_MOUSE_SYNAPTICS_I2C=y
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=yCONFIG_RMI4_I2C=yCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=yCONFIG_RMI4_2D_SENSOR=y
# CONFIG_RMI4_F11 is not setCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=yCONFIG_RMI4_F3A=y
# CONFIG_RMI4_F55 is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not setCONFIG_SERIO_CT82C710=y
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=yCONFIG_SERIO_ALTERA_PS2=yCONFIG_SERIO_PS2MULT=yCONFIG_SERIO_ARC_PS2=yCONFIG_SERIO_OLPC_APSP=yCONFIG_SERIO_SUN4I_PS2=y
# CONFIG_SERIO_GPIO_PS2 is not setCONFIG_USERIO=y
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256
# CONFIG_LDISC_AUTOLOAD is not set
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_16550A_VARIANTS=y
# CONFIG_SERIAL_8250_FINTEK is not set
# CONFIG_SERIAL_8250_CONSOLE is not setCONFIG_SERIAL_8250_DMA=yCONFIG_SERIAL_8250_PCI=y
# CONFIG_SERIAL_8250_EXAR is not setCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_MEN_MCB=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=y
# CONFIG_SERIAL_8250_MANY_PORTS is not setCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_DETECT_IRQ=yCONFIG_SERIAL_8250_RSA=yCONFIG_SERIAL_8250_DWLIB=y
# CONFIG_SERIAL_8250_BCM2835AUX is not setCONFIG_SERIAL_8250_DW=yCONFIG_SERIAL_8250_EM=yCONFIG_SERIAL_8250_IOC3=yCONFIG_SERIAL_8250_RT288X=yCONFIG_SERIAL_8250_OMAP=yCONFIG_SERIAL_8250_MT6577=yCONFIG_SERIAL_8250_UNIPHIER=yCONFIG_SERIAL_8250_LPSS=y
# CONFIG_SERIAL_8250_MID is not setCONFIG_SERIAL_8250_PERICOM=yCONFIG_SERIAL_8250_PXA=y
# CONFIG_SERIAL_8250_TEGRA is not set
# CONFIG_SERIAL_8250_BCM7271 is not set
#
# Non-8250 serial port support
#CONFIG_SERIAL_AMBA_PL010=y
# CONFIG_SERIAL_AMBA_PL010_CONSOLE is not set CONFIG_SERIAL_ATMEL=y
# CONFIG_SERIAL_ATMEL_CONSOLE is not set
# CONFIG_SERIAL_ATMEL_PDC is not set CONFIG_SERIAL_ATMEL_TTYAT=y
# CONFIG_SERIAL_MESON is not set CONFIG_SERIAL_CLPS711X=y
# CONFIG_SERIAL_CLPS711X_CONSOLE is not set CONFIG_SERIAL_SAMSUNG=y CONFIG_SERIAL_SAMSUNG_UARTS_4=y CONFIG_SERIAL_SAMSUNG_UARTS=4
# CONFIG_SERIAL_SAMSUNG_CONSOLE is not set CONFIG_SERIAL_TEGRA=yCONFIG_SERIAL_IMX=y
# CONFIG_SERIAL_IMX_CONSOLE is not set CONFIG_SERIAL_UARTLITE=y CONFIG_SERIAL_UARTLITE_CONSOLE=y CONFIG_SERIAL_UARTLITE_NR_UARTS=1 CONFIG_SERIAL_SH_SCI=y CONFIG_SERIAL_SH_SCI_NR_UARTS=2 CONFIG_SERIAL_SH_SCI_CONSOLE=y CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_ICOM=yCONFIG_SERIAL_JSM=yCONFIG_SERIAL_MSM=y CONFIG_SERIAL_MSM_CONSOLE=y CONFIG_SERIAL_QCOM_GENI=y
# CONFIG_SERIAL_QCOM_GENI_CONSOLE is not set # CONFIG_SERIAL_VT8500 is not set CONFIG_SERIAL_OMAP=y
# CONFIG_SERIAL_OMAP_CONSOLE is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set CONFIG_SERIAL_SC16IS7XX_CORE=y CONFIG_SERIAL_SC16IS7XX=y CONFIG_SERIAL_SC16IS7XX_I2C=y
# CONFIG_SERIAL_TIMBERDALE is not set CONFIG_SERIAL_BCM63XX=y
# CONFIG_SERIAL_BCM63XX_CONSOLE is not set # CONFIG_SERIAL_ALTERA_JTAGUART is not set CONFIG_SERIAL_ALTERA_UART=y CONFIG_SERIAL_ALTERA_UART_MAXPORTS=4 CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200 # CONFIG_SERIAL_ALTERA_UART_CONSOLE is not set CONFIG_SERIAL_PCH_UART=y
# CONFIG_SERIAL_PCH_UART_CONSOLE is not set # CONFIG_SERIAL_MXS_AUART is not set
# CONFIG_SERIAL_MPS2_UART is not set CONFIG_SERIAL_ARC=y
# CONFIG_SERIAL_ARC_CONSOLE is not set CONFIG_SERIAL_ARC_NR_PORTS=1 CONFIG_SERIAL_RP2=y CONFIG_SERIAL_RP2_NR_UARTS=32
# CONFIG_SERIAL_FSL_LPUART is not set CONFIG_SERIAL_FSL_LINFLEXUART=y
# CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE is not set CONFIG_SERIAL_ST_ASC=y
# CONFIG_SERIAL_ST_ASC_CONSOLE is not set # CONFIG_SERIAL_MEN_Z135 is not set CONFIG_SERIAL_SPRD=y
# CONFIG_SERIAL_SPRD_CONSOLE is not set CONFIG_SERIAL_STM32=y CONFIG_SERIAL_STM32_CONSOLE=y CONFIG_SERIAL_MVEBU_UART=y
# CONFIG_SERIAL_MVEBU_CONSOLE is not set CONFIG_SERIAL_OWL=y CONFIG_SERIAL_OWL_CONSOLE=y CONFIG_SERIAL_RDA=y CONFIG_SERIAL_RDA_CONSOLE=y
# CONFIG_SERIAL_LITEUART is not set CONFIG_SERIAL_SUNPLUS=y CONFIG_SERIAL_SUNPLUS_CONSOLE=y
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=y
# CONFIG_SERIAL_NONSTANDARD is not setCONFIG_N_GSM=yCONFIG_NOZOMI=y
# CONFIG_NULL_TTY is not setCONFIG_HVC_DRIVER=yCONFIG_SERIAL_DEV_BUS=y
# CONFIG_SERIAL_DEV_CTRL_TTYPORT is not setCONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not setCONFIG_IPMI_KCS_BMC=yCONFIG_ASPEED_KCS_IPMI_BMC=yCONFIG_NPCM7XX_KCS_IPMI_BMC=yCONFIG_IPMI_KCS_BMC_CDEV_IPMI=yCONFIG_IPMI_KCS_BMC_SERIO=yCONFIG_ASPEED_BT_IPMI_BMC=yCONFIG_IPMB_DEVICE_INTERFACE=yCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=yCONFIG_HW_RANDOM_INTEL=yCONFIG_HW_RANDOM_AMD=y
# CONFIG_HW_RANDOM_BA431 is not setCONFIG_HW_RANDOM_BCM2835=y
# CONFIG_HW_RANDOM_IPROC_RNG200 is not setCONFIG_HW_RANDOM_VIA=y
# CONFIG_HW_RANDOM_IXP4XX is not setCONFIG_HW_RANDOM_OMAP=y
# CONFIG_HW_RANDOM_OMAP3_ROM is not set
# CONFIG_HW_RANDOM_VIRTIO is not setCONFIG_HW_RANDOM_IMX_RNGC=yCONFIG_HW_RANDOM_NOMADIK=yCONFIG_HW_RANDOM_STM32=yCONFIG_HW_RANDOM_MESON=y
# CONFIG_HW_RANDOM_MTK is not set
# CONFIG_HW_RANDOM_EXYNOS is not setCONFIG_HW_RANDOM_NPCM=yCONFIG_HW_RANDOM_XIPHERA=yCONFIG_APPLICOM=y
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=yCONFIG_CARDMAN_4000=y
# CONFIG_CARDMAN_4040 is not set
# CONFIG_SCR24X is not setCONFIG_IPWIRELESS=y
# end of PCMCIA character devices
CONFIG_MWAVE=yCONFIG_DEVMEM=y
# CONFIG_NVRAM is not setCONFIG_DEVPORT=yCONFIG_HANGCHECK_TIMER=yCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=yCONFIG_TCG_TIS_SYNQUACER=yCONFIG_TCG_TIS_I2C_CR50=yCONFIG_TCG_TIS_I2C_ATMEL=y
# CONFIG_TCG_TIS_I2C_INFINEON is not setCONFIG_TCG_TIS_I2C_NUVOTON=yCONFIG_TCG_NSC=yCONFIG_TCG_ATMEL=yCONFIG_TCG_VTPM_PROXY=yCONFIG_TCG_TIS_ST33ZP24=yCONFIG_TCG_TIS_ST33ZP24_I2C=yCONFIG_TELCLOCK=yCONFIG_XILLYBUS_CLASS=yCONFIG_XILLYBUS=yCONFIG_XILLYBUS_PCIE=y
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
# end of Character devices
#
# I2C support
#CONFIG_I2C=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#CONFIG_I2C_ARB_GPIO_CHALLENGE=yCONFIG_I2C_MUX_GPIO=y
# CONFIG_I2C_MUX_GPMUX is not setCONFIG_I2C_MUX_LTC4306=yCONFIG_I2C_MUX_PCA9541=y
# CONFIG_I2C_MUX_PCA954x is not setCONFIG_I2C_MUX_PINCTRL=yCONFIG_I2C_MUX_REG=yCONFIG_I2C_MUX_MLXCPLD=y
# end of Multiplexer I2C Chip support
# CONFIG_I2C_HELPER_AUTO is not setCONFIG_I2C_SMBUS=y
#
# I2C Algorithms
#CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_ALGOPCF is not setCONFIG_I2C_ALGOPCA=y
# end of I2C Algorithms
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_CCGX_UCSI=yCONFIG_I2C_ALI1535=yCONFIG_I2C_ALI1563=y
# CONFIG_I2C_ALI15X3 is not setCONFIG_I2C_AMD756=yCONFIG_I2C_AMD756_S4882=yCONFIG_I2C_AMD8111=y
# CONFIG_I2C_HIX5HD2 is not setCONFIG_I2C_I801=yCONFIG_I2C_ISCH=yCONFIG_I2C_ISMT=y
# CONFIG_I2C_PIIX4 is not setCONFIG_I2C_NFORCE2=yCONFIG_I2C_NFORCE2_S4985=yCONFIG_I2C_NVIDIA_GPU=y
# CONFIG_I2C_SIS5595 is not setCONFIG_I2C_SIS630=yCONFIG_I2C_SIS96X=yCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_ASPEED is not setCONFIG_I2C_AT91=y CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL=y CONFIG_I2C_AXXIA=yCONFIG_I2C_BCM2835=yCONFIG_I2C_BCM_IPROC=y
# CONFIG_I2C_BCM_KONA is not set CONFIG_I2C_BRCMSTB=yCONFIG_I2C_CADENCE=yCONFIG_I2C_CBUS_GPIO=yCONFIG_I2C_DAVINCI=yCONFIG_I2C_DESIGNWARE_CORE=y
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PLATFORM=y CONFIG_I2C_DESIGNWARE_PCI=y
# CONFIG_I2C_DIGICOLOR is not set
# CONFIG_I2C_EG20T is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set CONFIG_I2C_HIGHLANDER=yCONFIG_I2C_HISI=y
# CONFIG_I2C_IMG is not setCONFIG_I2C_IMX=yCONFIG_I2C_IMX_LPI2C=yCONFIG_I2C_IOP3XX=y
# CONFIG_I2C_JZ4780 is not set
# CONFIG_I2C_MESON is not set
# CONFIG_I2C_MT65XX is not setCONFIG_I2C_MT7621=yCONFIG_I2C_MV64XXX=y
# CONFIG_I2C_MXS is not setCONFIG_I2C_NPCM7XX=yCONFIG_I2C_OCORES=yCONFIG_I2C_OMAP=y
# CONFIG_I2C_OWL is not set
# CONFIG_I2C_APPLE is not set CONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_PNX=y
# CONFIG_I2C_PXA is not setCONFIG_I2C_QCOM_CCI=y
# CONFIG_I2C_QCOM_GENI is not setCONFIG_I2C_QUP=y
# CONFIG_I2C_RIIC is not setCONFIG_I2C_S3C2410=y
# CONFIG_I2C_SH_MOBILE is not set
# CONFIG_I2C_SIMTEC is not setCONFIG_I2C_SPRD=yCONFIG_I2C_ST=y
# CONFIG_I2C_STM32F4 is not set CONFIG_I2C_STM32F7=yCONFIG_I2C_SUN6I_P2WI=y
# CONFIG_I2C_SYNQUACER is not set CONFIG_I2C_TEGRA_BPMP=yCONFIG_I2C_UNIPHIER=yCONFIG_I2C_UNIPHIER_F=yCONFIG_I2C_VERSATILE=yCONFIG_I2C_WMT=yCONFIG_I2C_THUNDERX=yCONFIG_I2C_XILINX=yCONFIG_I2C_XLP9XX=y
# CONFIG_I2C_RCAR is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_TAOS_EVM is not set
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=yCONFIG_I2C_CROS_EC_TUNNEL=yCONFIG_I2C_VIRTIO=y
# end of I2C Hardware Bus support
CONFIG_I2C_SLAVE=yCONFIG_I2C_SLAVE_EEPROM=yCONFIG_I2C_SLAVE_TESTUNIT=yCONFIG_I2C_DEBUG_CORE=y
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
CONFIG_I3C=yCONFIG_CDNS_I3C_MASTER=yCONFIG_DW_I3C_MASTER=y
# CONFIG_SVC_I3C_MASTER is not set
# CONFIG_MIPI_I3C_HCI is not set
# CONFIG_SPI is not setCONFIG_SPMI=y
# CONFIG_SPMI_HISI3670 is not setCONFIG_SPMI_MSM_PMIC_ARB=yCONFIG_SPMI_MTK_PMIF=yCONFIG_HSI=yCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#CONFIG_HSI_CHAR=yCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
#
# PPS clients support
#CONFIG_PPS_CLIENT_KTIMER=yCONFIG_PPS_CLIENT_LDISC=yCONFIG_PPS_CLIENT_GPIO=y
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=yCONFIG_PTP_1588_CLOCK_OPTIONAL=y
# CONFIG_PTP_1588_CLOCK_DTE is not setCONFIG_PTP_1588_CLOCK_QORIQ=y
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. #CONFIG_PTP_1588_CLOCK_PCH=yCONFIG_PTP_1588_CLOCK_IDT82P33=y
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_PINCTRL_AMD=y
# CONFIG_PINCTRL_DA9062 is not setCONFIG_PINCTRL_MCP23S08_I2C=yCONFIG_PINCTRL_MCP23S08=yCONFIG_PINCTRL_SX150X=yCONFIG_PINCTRL_MADERA=yCONFIG_PINCTRL_CS47L15=y
#
# Intel pinctrl drivers
#
# end of Intel pinctrl drivers
#
# MediaTek pinctrl drivers
#CONFIG_EINT_MTK=y
# end of MediaTek pinctrl drivers
CONFIG_PINCTRL_PXA=yCONFIG_PINCTRL_PXA25X=yCONFIG_PINCTRL_PXA27X=y
# CONFIG_PINCTRL_MSM is not set
# CONFIG_PINCTRL_LPASS_LPI is not set
#
# Renesas pinctrl drivers
#
# CONFIG_PINCTRL_RENESAS is not setCONFIG_PINCTRL_SH_PFC=yCONFIG_PINCTRL_SH_PFC_GPIO=yCONFIG_PINCTRL_SH_FUNC_GPIO=y
# CONFIG_PINCTRL_PFC_EMEV2 is not setCONFIG_PINCTRL_PFC_R8A77995=y
# CONFIG_PINCTRL_PFC_R8A7794 is not setCONFIG_PINCTRL_PFC_R8A77990=y
# CONFIG_PINCTRL_PFC_R8A7779 is not set
# CONFIG_PINCTRL_PFC_R8A7790 is not set
# CONFIG_PINCTRL_PFC_R8A77950 is not setCONFIG_PINCTRL_PFC_R8A77951=y
# CONFIG_PINCTRL_PFC_R8A7778 is not setCONFIG_PINCTRL_PFC_R8A7793=yCONFIG_PINCTRL_PFC_R8A7791=yCONFIG_PINCTRL_PFC_R8A77965=y
# CONFIG_PINCTRL_PFC_R8A77960 is not setCONFIG_PINCTRL_PFC_R8A77961=yCONFIG_PINCTRL_PFC_R8A779F0=yCONFIG_PINCTRL_PFC_R8A7792=y
# CONFIG_PINCTRL_PFC_R8A77980 is not set
# CONFIG_PINCTRL_PFC_R8A77970 is not setCONFIG_PINCTRL_PFC_R8A779A0=yCONFIG_PINCTRL_PFC_R8A7740=yCONFIG_PINCTRL_PFC_R8A73A4=y
# CONFIG_PINCTRL_PFC_R8A77470 is not setCONFIG_PINCTRL_PFC_R8A7745=yCONFIG_PINCTRL_PFC_R8A7742=y
# CONFIG_PINCTRL_PFC_R8A7743 is not setCONFIG_PINCTRL_PFC_R8A7744=yCONFIG_PINCTRL_PFC_R8A774C0=yCONFIG_PINCTRL_PFC_R8A774E1=yCONFIG_PINCTRL_PFC_R8A774A1=y
# CONFIG_PINCTRL_PFC_R8A774B1 is not set
# CONFIG_PINCTRL_PFC_SH7203 is not set
# CONFIG_PINCTRL_PFC_SH7264 is not setCONFIG_PINCTRL_PFC_SH7269=y
# CONFIG_PINCTRL_PFC_SH7720 is not set
# CONFIG_PINCTRL_PFC_SH7722 is not setCONFIG_PINCTRL_PFC_SH7734=yCONFIG_PINCTRL_PFC_SH7757=yCONFIG_PINCTRL_PFC_SH7785=yCONFIG_PINCTRL_PFC_SH7786=yCONFIG_PINCTRL_PFC_SH73A0=y
# CONFIG_PINCTRL_PFC_SH7723 is not setCONFIG_PINCTRL_PFC_SH7724=yCONFIG_PINCTRL_PFC_SHX3=y
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIOLIB_IRQCHIP=yCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=yCONFIG_GPIO_REGMAP=y
#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_ATH79 is not setCONFIG_GPIO_CLPS711X=yCONFIG_GPIO_DWAPB=yCONFIG_GPIO_GENERIC_PLATFORM=yCONFIG_GPIO_HISI=yCONFIG_GPIO_ICH=yCONFIG_GPIO_IOP=yCONFIG_GPIO_MB86S7X=yCONFIG_GPIO_MENZ127=y
# CONFIG_GPIO_MPC8XXX is not setCONFIG_GPIO_MXC=yCONFIG_GPIO_MXS=y
# CONFIG_GPIO_PXA is not setCONFIG_GPIO_RCAR=y
# CONFIG_GPIO_ROCKCHIP is not set
# CONFIG_GPIO_THUNDERX is not setCONFIG_GPIO_VX855=y
# CONFIG_GPIO_XGENE_SB is not setCONFIG_GPIO_XLP=yCONFIG_GPIO_AMD_FCH=yCONFIG_GPIO_IDT3243X=y
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#CONFIG_GPIO_F7188X=yCONFIG_GPIO_IT87=yCONFIG_GPIO_SCH311X=yCONFIG_GPIO_TS5500=yCONFIG_GPIO_WINBOND=yCONFIG_GPIO_WS16C48=y
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#CONFIG_GPIO_ADP5588=y
# CONFIG_GPIO_ADP5588_IRQ is not set
# CONFIG_GPIO_MAX7300 is not setCONFIG_GPIO_MAX732X=y
# CONFIG_GPIO_MAX732X_IRQ is not setCONFIG_GPIO_PCA953X=y
# CONFIG_GPIO_PCA953X_IRQ is not setCONFIG_GPIO_PCA9570=yCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TPIC2810=yCONFIG_GPIO_TS4900=y
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#CONFIG_GPIO_BD9571MWV=yCONFIG_GPIO_DA9052=y
# CONFIG_GPIO_JANZ_TTL is not set
# CONFIG_GPIO_LP873X is not set
# CONFIG_GPIO_MADERA is not setCONFIG_GPIO_MAX77620=y
# CONFIG_GPIO_MAX77650 is not setCONFIG_GPIO_PALMAS=y
# CONFIG_GPIO_RC5T583 is not setCONFIG_GPIO_SL28CPLD=y
# CONFIG_GPIO_TIMBERDALE is not set
# CONFIG_GPIO_TPS6586X is not setCONFIG_GPIO_TPS65910=y
# CONFIG_GPIO_TPS65912 is not set
# CONFIG_GPIO_TQMX86 is not set
# CONFIG_GPIO_UCB1400 is not setCONFIG_GPIO_WM831X=yCONFIG_GPIO_WM8350=y
# CONFIG_GPIO_WM8994 is not set
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#CONFIG_GPIO_AMD8111=yCONFIG_GPIO_BT8XX=yCONFIG_GPIO_MLXBF=yCONFIG_GPIO_MLXBF2=yCONFIG_GPIO_ML_IOH=yCONFIG_GPIO_PCH=y
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not setCONFIG_GPIO_RDC321X=y
# end of PCI GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not setCONFIG_GPIO_MOCKUP=yCONFIG_GPIO_VIRTIO=y
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers
CONFIG_W1=yCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_MATROX is not set
# CONFIG_W1_MASTER_DS2482 is not set
# CONFIG_W1_MASTER_MXC is not set
# CONFIG_W1_MASTER_DS1WM is not setCONFIG_W1_MASTER_GPIO=yCONFIG_W1_MASTER_SGI=y
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=yCONFIG_W1_SLAVE_SMEM=yCONFIG_W1_SLAVE_DS2405=yCONFIG_W1_SLAVE_DS2408=yCONFIG_W1_SLAVE_DS2408_READBACK=yCONFIG_W1_SLAVE_DS2413=y
# CONFIG_W1_SLAVE_DS2406 is not set
# CONFIG_W1_SLAVE_DS2423 is not setCONFIG_W1_SLAVE_DS2805=y
# CONFIG_W1_SLAVE_DS2430 is not setCONFIG_W1_SLAVE_DS2431=yCONFIG_W1_SLAVE_DS2433=yCONFIG_W1_SLAVE_DS2433_CRC=yCONFIG_W1_SLAVE_DS2438=yCONFIG_W1_SLAVE_DS250X=yCONFIG_W1_SLAVE_DS2780=yCONFIG_W1_SLAVE_DS2781=yCONFIG_W1_SLAVE_DS28E04=yCONFIG_W1_SLAVE_DS28E17=y
# end of 1-wire Slaves
# CONFIG_POWER_RESET is not set CONFIG_POWER_SUPPLY=y CONFIG_POWER_SUPPLY_DEBUG=y
# CONFIG_POWER_SUPPLY_HWMON is not set CONFIG_PDA_POWER=y
# CONFIG_IP5XXX_POWER is not set
# CONFIG_WM831X_BACKUP is not set
# CONFIG_WM831X_POWER is not set CONFIG_WM8350_POWER=y
# CONFIG_TEST_POWER is not set CONFIG_CHARGER_ADP5061=y CONFIG_BATTERY_ACT8945A=y CONFIG_BATTERY_CW2015=y CONFIG_BATTERY_DS2760=y CONFIG_BATTERY_DS2780=y CONFIG_BATTERY_DS2781=y CONFIG_BATTERY_DS2782=y
# CONFIG_BATTERY_SAMSUNG_SDI is not set
# CONFIG_BATTERY_SBS is not set CONFIG_CHARGER_SBS=yCONFIG_MANAGER_SBS=y CONFIG_BATTERY_BQ27XXX=y CONFIG_BATTERY_BQ27XXX_I2C=y CONFIG_BATTERY_BQ27XXX_HDQ=y
# CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM is not set CONFIG_BATTERY_DA9030=y
# CONFIG_BATTERY_DA9052 is not set CONFIG_BATTERY_DA9150=y CONFIG_BATTERY_MAX17040=y CONFIG_BATTERY_MAX17042=y CONFIG_BATTERY_MAX1721X=y
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set CONFIG_CHARGER_GPIO=y CONFIG_CHARGER_MANAGER=y CONFIG_CHARGER_LT3651=y CONFIG_CHARGER_LTC4162L=y CONFIG_CHARGER_MAX14577=y CONFIG_CHARGER_MAX77650=y
# CONFIG_CHARGER_MAX77693 is not set
# CONFIG_CHARGER_MAX77976 is not set CONFIG_CHARGER_BQ2415X=y CONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not set CONFIG_CHARGER_BQ24735=y CONFIG_CHARGER_BQ2515X=y CONFIG_CHARGER_BQ25890=y CONFIG_CHARGER_BQ25980=y
# CONFIG_CHARGER_BQ256XX is not set CONFIG_CHARGER_SMB347=y CONFIG_BATTERY_GAUGE_LTC2941=y
# CONFIG_BATTERY_GOLDFISH is not set CONFIG_BATTERY_RT5033=y CONFIG_CHARGER_RT9455=y
# CONFIG_CHARGER_CROS_USBPD is not set
# CONFIG_CHARGER_CROS_PCHG is not set CONFIG_CHARGER_SC2731=y
# CONFIG_CHARGER_BD99954 is not set CONFIG_BATTERY_ACER_A500=y
# CONFIG_BATTERY_UG3105 is not set CONFIG_HWMON=yCONFIG_HWMON_VID=y
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=yCONFIG_SENSORS_ABITUGURU3=y
# CONFIG_SENSORS_AD7414 is not setCONFIG_SENSORS_AD7418=y
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not setCONFIG_SENSORS_ADM1026=yCONFIG_SENSORS_ADM1029=y
# CONFIG_SENSORS_ADM1031 is not setCONFIG_SENSORS_ADM1177=y
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not setCONFIG_SENSORS_ADT7462=yCONFIG_SENSORS_ADT7470=y
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_AHT10 is not setCONFIG_SENSORS_AS370=yCONFIG_SENSORS_ASC7621=yCONFIG_SENSORS_AXI_FAN_CONTROL=yCONFIG_SENSORS_K8TEMP=yCONFIG_SENSORS_K10TEMP=yCONFIG_SENSORS_FAM15H_POWER=yCONFIG_SENSORS_APPLESMC=yCONFIG_SENSORS_ARM_SCMI=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_ASPEED=yCONFIG_SENSORS_ATXP1=yCONFIG_SENSORS_BT1_PVT=y
# CONFIG_SENSORS_BT1_PVT_ALARMS is not setCONFIG_SENSORS_CORSAIR_CPRO=y
# CONFIG_SENSORS_CORSAIR_PSU is not setCONFIG_SENSORS_DRIVETEMP=yCONFIG_SENSORS_DS620=yCONFIG_SENSORS_DS1621=yCONFIG_SENSORS_DELL_SMM=yCONFIG_I8K=yCONFIG_SENSORS_DA9052_ADC=y
# CONFIG_SENSORS_I5K_AMB is not setCONFIG_SENSORS_SPARX5=y
# CONFIG_SENSORS_F71805F is not setCONFIG_SENSORS_F71882FG=yCONFIG_SENSORS_F75375S=yCONFIG_SENSORS_FSCHMD=y
# CONFIG_SENSORS_GL518SM is not setCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_G760A=yCONFIG_SENSORS_G762=y
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_I5500 is not setCONFIG_SENSORS_CORETEMP=y
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_JC42 is not setCONFIG_SENSORS_POWR1220=yCONFIG_SENSORS_LINEAGE=yCONFIG_SENSORS_LTC2945=y
# CONFIG_SENSORS_LTC2947_I2C is not setCONFIG_SENSORS_LTC2990=yCONFIG_SENSORS_LTC2992=yCONFIG_SENSORS_LTC4151=yCONFIG_SENSORS_LTC4215=yCONFIG_SENSORS_LTC4222=yCONFIG_SENSORS_LTC4245=yCONFIG_SENSORS_LTC4260=yCONFIG_SENSORS_LTC4261=yCONFIG_SENSORS_MAX127=yCONFIG_SENSORS_MAX16065=y
# CONFIG_SENSORS_MAX1619 is not setCONFIG_SENSORS_MAX1668=y
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31730 is not setCONFIG_SENSORS_MAX6620=yCONFIG_SENSORS_MAX6621=yCONFIG_SENSORS_MAX6639=y
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not setCONFIG_SENSORS_MAX6697=yCONFIG_SENSORS_MAX31790=y
# CONFIG_SENSORS_MCP3021 is not setCONFIG_SENSORS_MLXREG_FAN=y
# CONFIG_SENSORS_TC654 is not setCONFIG_SENSORS_TPS23861=yCONFIG_SENSORS_MENF21BMC_HWMON=yCONFIG_SENSORS_MR75203=yCONFIG_SENSORS_LM63=yCONFIG_SENSORS_LM73=y
# CONFIG_SENSORS_LM75 is not setCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=y
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not setCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM87=yCONFIG_SENSORS_LM90=y
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not setCONFIG_SENSORS_LM95245=yCONFIG_SENSORS_PC87360=yCONFIG_SENSORS_PC87427=yCONFIG_SENSORS_NCT6683=y
# CONFIG_SENSORS_NCT6775 is not setCONFIG_SENSORS_NCT7802=yCONFIG_SENSORS_NPCM7XX=yCONFIG_SENSORS_OCC_P8_I2C=yCONFIG_SENSORS_OCC=yCONFIG_SENSORS_PCF8591=yCONFIG_SENSORS_PECI_CPUTEMP=y
# CONFIG_SENSORS_PECI_DIMMTEMP is not setCONFIG_SENSORS_PECI=y
# CONFIG_PMBUS is not setCONFIG_SENSORS_PWM_FAN=yCONFIG_SENSORS_RASPBERRYPI_HWMON=yCONFIG_SENSORS_SL28CPLD=y
# CONFIG_SENSORS_SBTSI is not setCONFIG_SENSORS_SBRMI=yCONFIG_SENSORS_SHT15=yCONFIG_SENSORS_SHT21=y
CONFIG_SENSORS_SHT3x=y
# CONFIG_SENSORS_SHT4x is not setCONFIG_SENSORS_SHTC1=y
# CONFIG_SENSORS_SIS5595 is not setCONFIG_SENSORS_SY7636A=yCONFIG_SENSORS_DME1737=yCONFIG_SENSORS_EMC1403=yCONFIG_SENSORS_EMC2103=yCONFIG_SENSORS_EMC6W201=y
# CONFIG_SENSORS_SMSC47M1 is not setCONFIG_SENSORS_SMSC47M192=y
# CONFIG_SENSORS_SMSC47B397 is not setCONFIG_SENSORS_STTS751=yCONFIG_SENSORS_SMM665=yCONFIG_SENSORS_ADC128D818=yCONFIG_SENSORS_ADS7828=y
# CONFIG_SENSORS_AMC6821 is not setCONFIG_SENSORS_INA209=yCONFIG_SENSORS_INA2XX=yCONFIG_SENSORS_INA238=yCONFIG_SENSORS_INA3221=yCONFIG_SENSORS_TC74=yCONFIG_SENSORS_THMC50=yCONFIG_SENSORS_TMP102=yCONFIG_SENSORS_TMP103=yCONFIG_SENSORS_TMP108=y
# CONFIG_SENSORS_TMP401 is not setCONFIG_SENSORS_TMP421=y
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not setCONFIG_SENSORS_VIA_CPUTEMP=yCONFIG_SENSORS_VIA686A=y
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83773G is not setCONFIG_SENSORS_W83781D=y
# CONFIG_SENSORS_W83791D is not setCONFIG_SENSORS_W83792D=yCONFIG_SENSORS_W83793=yCONFIG_SENSORS_W83795=y
# CONFIG_SENSORS_W83795_FANCTRL is not setCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83L786NG=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_W83627EHF=yCONFIG_SENSORS_WM831X=y
# CONFIG_SENSORS_WM8350 is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not setCONFIG_SSB_POSSIBLE=yCONFIG_SSB=yCONFIG_SSB_SPROM=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=yCONFIG_SSB_PCMCIAHOST_POSSIBLE=yCONFIG_SSB_PCMCIAHOST=yCONFIG_SSB_SDIOHOST_POSSIBLE=yCONFIG_SSB_SDIOHOST=y
# CONFIG_SSB_HOST_SOC is not setCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=yCONFIG_SSB_DRIVER_GPIO=yCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=yCONFIG_BCMA_HOST_PCI_POSSIBLE=yCONFIG_BCMA_HOST_PCI=yCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_DRIVER_PCI=y
# CONFIG_BCMA_DRIVER_MIPS is not set
# CONFIG_BCMA_SFLASH is not set
# CONFIG_BCMA_DRIVER_GMAC_CMN is not setCONFIG_BCMA_DRIVER_GPIO=yCONFIG_BCMA_DEBUG=y
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_CS5535 is not setCONFIG_MFD_SUN4I_GPADC=yCONFIG_MFD_AS3711=y
# CONFIG_PMIC_ADP5520 is not setCONFIG_MFD_AAT2870_CORE=yCONFIG_MFD_AT91_USART=y
# CONFIG_MFD_BCM590XX is not setCONFIG_MFD_BD9571MWV=yCONFIG_MFD_AXP20X=yCONFIG_MFD_AXP20X_I2C=yCONFIG_MFD_CROS_EC_DEV=yCONFIG_MFD_MADERA=yCONFIG_MFD_MADERA_I2C=yCONFIG_MFD_CS47L15=y
# CONFIG_MFD_CS47L35 is not set
# CONFIG_MFD_CS47L85 is not set
# CONFIG_MFD_CS47L90 is not set
# CONFIG_MFD_CS47L92 is not setCONFIG_MFD_ASIC3=yCONFIG_PMIC_DA903X=yCONFIG_PMIC_DA9052=yCONFIG_MFD_DA9052_I2C=y
# CONFIG_MFD_DA9055 is not setCONFIG_MFD_DA9062=yCONFIG_MFD_DA9063=yCONFIG_MFD_DA9150=y
# CONFIG_MFD_ENE_KB3930 is not setCONFIG_MFD_EXYNOS_LPASS=y
# CONFIG_MFD_MC13XXX_I2C is not setCONFIG_MFD_MP2629=yCONFIG_MFD_MXS_LRADC=yCONFIG_MFD_MX25_TSADC=y
# CONFIG_HTC_PASIC3 is not setCONFIG_HTC_I2CPLD=yCONFIG_MFD_INTEL_QUARK_I2C_GPIO=yCONFIG_LPC_ICH=yCONFIG_LPC_SCH=yCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_PCI=yCONFIG_MFD_IQS62X=yCONFIG_MFD_JANZ_CMODIO=y
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not setCONFIG_MFD_88PM805=y
# CONFIG_MFD_88PM860X is not setCONFIG_MFD_MAX14577=yCONFIG_MFD_MAX77620=yCONFIG_MFD_MAX77650=y
# CONFIG_MFD_MAX77686 is not setCONFIG_MFD_MAX77693=yCONFIG_MFD_MAX77714=yCONFIG_MFD_MAX77843=yCONFIG_MFD_MAX8907=y
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6360 is not set
# CONFIG_MFD_MT6397 is not setCONFIG_MFD_MENF21BMC=yCONFIG_MFD_NTXEC=yCONFIG_MFD_RETU=y
# CONFIG_MFD_PCF50633 is not setCONFIG_UCB1400_CORE=y
# CONFIG_MFD_PM8XXX is not setCONFIG_MFD_RDC321X=yCONFIG_MFD_RT4831=y
# CONFIG_MFD_RT5033 is not setCONFIG_MFD_RC5T583=y
# CONFIG_MFD_SEC_CORE is not setCONFIG_MFD_SI476X_CORE=yCONFIG_MFD_SIMPLE_MFD_I2C=y
# CONFIG_MFD_SL28CPLD is not set
# CONFIG_MFD_SM501 is not setCONFIG_MFD_SKY81452=y
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SUN6I_PRCM is not setCONFIG_MFD_SYSCON=yCONFIG_MFD_TI_AM335X_TSCADC=y
# CONFIG_MFD_LP3943 is not setCONFIG_MFD_LP8788=yCONFIG_MFD_TI_LMU=yCONFIG_MFD_PALMAS=yCONFIG_TPS6105X=yCONFIG_TPS65010=yCONFIG_TPS6507X=y
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not setCONFIG_MFD_TI_LP873X=yCONFIG_MFD_TPS6586X=yCONFIG_MFD_TPS65910=yCONFIG_MFD_TPS65912=yCONFIG_MFD_TPS65912_I2C=y
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not setCONFIG_MFD_WL1273_CORE=yCONFIG_MFD_LM3533=yCONFIG_MFD_TIMBERDALE=y
# CONFIG_MFD_TQMX86 is not setCONFIG_MFD_VX855=y
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_WM8400 is not setCONFIG_MFD_WM831X=yCONFIG_MFD_WM831X_I2C=yCONFIG_MFD_WM8350=yCONFIG_MFD_WM8350_I2C=yCONFIG_MFD_WM8994=yCONFIG_MFD_STW481X=y
# CONFIG_MFD_STM32_LPTIMER is not setCONFIG_MFD_STM32_TIMERS=yCONFIG_MFD_STMFX=yCONFIG_MFD_ATC260X=yCONFIG_MFD_ATC260X_I2C=y
# CONFIG_MFD_KHADAS_MCU is not setCONFIG_MFD_ACER_A500_EC=yCONFIG_RAVE_SP_CORE=y
# end of Multifunction device drivers
CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not setCONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not setCONFIG_REGULATOR_USERSPACE_CONSUMER=y
# CONFIG_REGULATOR_88PG86X is not set
# CONFIG_REGULATOR_ACT8865 is not set
# CONFIG_REGULATOR_AD5398 is not set
# CONFIG_REGULATOR_ANATOP is not set
# CONFIG_REGULATOR_AAT2870 is not setCONFIG_REGULATOR_ARIZONA_LDO1=y
# CONFIG_REGULATOR_ARIZONA_MICSUPP is not setCONFIG_REGULATOR_AS3711=yCONFIG_REGULATOR_ATC260X=yCONFIG_REGULATOR_AXP20X=yCONFIG_REGULATOR_BD9571MWV=y
# CONFIG_REGULATOR_DA9052 is not setCONFIG_REGULATOR_DA9062=yCONFIG_REGULATOR_DA9210=yCONFIG_REGULATOR_DA9211=yCONFIG_REGULATOR_FAN53555=yCONFIG_REGULATOR_FAN53880=yCONFIG_REGULATOR_GPIO=y
# CONFIG_REGULATOR_ISL9305 is not set
# CONFIG_REGULATOR_ISL6271A is not setCONFIG_REGULATOR_LM363X=y
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_LP872X is not setCONFIG_REGULATOR_LP8755=yCONFIG_REGULATOR_LP8788=yCONFIG_REGULATOR_LTC3589=yCONFIG_REGULATOR_LTC3676=yCONFIG_REGULATOR_MAX14577=yCONFIG_REGULATOR_MAX1586=yCONFIG_REGULATOR_MAX77620=yCONFIG_REGULATOR_MAX77650=y
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not setCONFIG_REGULATOR_MAX8893=yCONFIG_REGULATOR_MAX8907=yCONFIG_REGULATOR_MAX8952=yCONFIG_REGULATOR_MAX20086=yCONFIG_REGULATOR_MAX77686=yCONFIG_REGULATOR_MAX77693=yCONFIG_REGULATOR_MAX77802=y
# CONFIG_REGULATOR_MAX77826 is not setCONFIG_REGULATOR_MP8859=y
# CONFIG_REGULATOR_MP886X is not setCONFIG_REGULATOR_MT6311=yCONFIG_REGULATOR_MT6315=yCONFIG_REGULATOR_MT6380=yCONFIG_REGULATOR_PALMAS=y
# CONFIG_REGULATOR_PBIAS is not setCONFIG_REGULATOR_PCA9450=y
# CONFIG_REGULATOR_PV88060 is not set
# CONFIG_REGULATOR_PV88080 is not set
# CONFIG_REGULATOR_PV88090 is not setCONFIG_REGULATOR_PWM=y
# CONFIG_REGULATOR_QCOM_RPMH is not setCONFIG_REGULATOR_QCOM_SPMI=yCONFIG_REGULATOR_QCOM_USB_VBUS=yCONFIG_REGULATOR_RC5T583=y
# CONFIG_REGULATOR_RT4801 is not setCONFIG_REGULATOR_RT4831=y
# CONFIG_REGULATOR_RT5190A is not setCONFIG_REGULATOR_RT6160=yCONFIG_REGULATOR_RT6245=yCONFIG_REGULATOR_RTQ2134=yCONFIG_REGULATOR_RTMV20=yCONFIG_REGULATOR_RTQ6752=y
# CONFIG_REGULATOR_S2MPA01 is not set
# CONFIG_REGULATOR_S2MPS11 is not setCONFIG_REGULATOR_S5M8767=yCONFIG_REGULATOR_SC2731=y
# CONFIG_REGULATOR_SKY81452 is not setCONFIG_REGULATOR_SLG51000=yCONFIG_REGULATOR_STM32_BOOSTER=yCONFIG_REGULATOR_STM32_VREFBUF=yCONFIG_REGULATOR_STM32_PWR=yCONFIG_REGULATOR_TI_ABB=y
# CONFIG_REGULATOR_STW481X_VMMC is not setCONFIG_REGULATOR_SY7636A=y
# CONFIG_REGULATOR_SY8106A is not setCONFIG_REGULATOR_SY8824X=yCONFIG_REGULATOR_SY8827N=yCONFIG_REGULATOR_TPS51632=y
# CONFIG_REGULATOR_TPS6105X is not setCONFIG_REGULATOR_TPS62360=yCONFIG_REGULATOR_TPS65023=yCONFIG_REGULATOR_TPS6507X=yCONFIG_REGULATOR_TPS65132=yCONFIG_REGULATOR_TPS6586X=y
# CONFIG_REGULATOR_TPS65910 is not set
# CONFIG_REGULATOR_TPS65912 is not set
# CONFIG_REGULATOR_TPS68470 is not setCONFIG_REGULATOR_WM831X=yCONFIG_REGULATOR_WM8350=yCONFIG_REGULATOR_WM8994=y
# CONFIG_REGULATOR_QCOM_LABIBB is not setCONFIG_RC_CORE=y
# CONFIG_LIRC is not setCONFIG_RC_MAP=y
# CONFIG_RC_DECODERS is not set
# CONFIG_RC_DEVICES is not setCONFIG_CEC_CORE=yCONFIG_CEC_NOTIFIER=yCONFIG_CEC_PIN=y
#
# CEC support
#CONFIG_MEDIA_CEC_RC=y
# CONFIG_CEC_PIN_ERROR_INJ is not setCONFIG_MEDIA_CEC_SUPPORT=yCONFIG_CEC_CH7322=yCONFIG_CEC_CROS_EC=yCONFIG_CEC_MESON_AO=yCONFIG_CEC_GPIO=yCONFIG_CEC_SAMSUNG_S5P=yCONFIG_CEC_STI=y
# CONFIG_CEC_STM32 is not setCONFIG_CEC_TEGRA=y
# CONFIG_CEC_SECO is not set
# end of CEC support
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_AGP=y
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL is not setCONFIG_AGP_SIS=y
# CONFIG_AGP_VIA is not setCONFIG_IMX_IPUV3_CORE=yCONFIG_DRM=yCONFIG_DRM_MIPI_DSI=y
# CONFIG_DRM_DP_AUX_CHARDEV is not setCONFIG_DRM_DEBUG_MM=yCONFIG_DRM_DP_HELPER=yCONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_FBDEV_EMULATION is not set
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_DRM_DP_CEC is not setCONFIG_DRM_TTM=yCONFIG_DRM_VRAM_HELPER=yCONFIG_DRM_TTM_HELPER=yCONFIG_DRM_GEM_CMA_HELPER=yCONFIG_DRM_GEM_SHMEM_HELPER=yCONFIG_DRM_SCHED=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=yCONFIG_DRM_I2C_SIL164=yCONFIG_DRM_I2C_NXP_TDA998X=yCONFIG_DRM_I2C_NXP_TDA9950=y
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
CONFIG_DRM_RADEON=y
# CONFIG_DRM_RADEON_USERPTR is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I915 is not setCONFIG_DRM_KMB_DISPLAY=y
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not setCONFIG_DRM_VMWGFX=y
# CONFIG_DRM_VMWGFX_MKSSTATS is not setCONFIG_DRM_GMA500=y
# CONFIG_DRM_AST is not setCONFIG_DRM_MGAG200=yCONFIG_DRM_QXL=yCONFIG_DRM_MSM=yCONFIG_DRM_MSM_GPU_STATE=y
# CONFIG_DRM_MSM_HDMI_HDCP is not set
# CONFIG_DRM_MSM_DP is not setCONFIG_DRM_MSM_DSI=yCONFIG_DRM_MSM_DSI_28NM_PHY=yCONFIG_DRM_MSM_DSI_20NM_PHY=yCONFIG_DRM_MSM_DSI_28NM_8960_PHY=y
# CONFIG_DRM_MSM_DSI_14NM_PHY is not set
# CONFIG_DRM_MSM_DSI_10NM_PHY is not set
# CONFIG_DRM_MSM_DSI_7NM_PHY is not setCONFIG_DRM_PANEL=y
#
# Display Panels
#CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=y
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges
# CONFIG_DRM_IMX is not setCONFIG_DRM_V3D=y
# CONFIG_DRM_VC4 is not set
# CONFIG_DRM_ETNAVIV is not set
# CONFIG_DRM_HISI_HIBMC is not setCONFIG_DRM_BOCHS=yCONFIG_DRM_CIRRUS_QEMU=y
# CONFIG_DRM_SIMPLEDRM is not setCONFIG_DRM_PL111=yCONFIG_DRM_VBOXVIDEO=yCONFIG_DRM_PANFROST=yCONFIG_DRM_SSD130X=yCONFIG_DRM_SSD130X_I2C=yCONFIG_DRM_LEGACY=yCONFIG_DRM_TDFX=yCONFIG_DRM_R128=yCONFIG_DRM_MGA=yCONFIG_DRM_SIS=y
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not setCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=yCONFIG_DRM_NOMODESET=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=yCONFIG_FB_NOTIFY=yCONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_DDC=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=yCONFIG_FB_SYS_FILLRECT=yCONFIG_FB_SYS_COPYAREA=yCONFIG_FB_SYS_IMAGEBLIT=yCONFIG_FB_FOREIGN_ENDIAN=yCONFIG_FB_BOTH_ENDIAN=y
# CONFIG_FB_BIG_ENDIAN is not set
# CONFIG_FB_LITTLE_ENDIAN is not setCONFIG_FB_SYS_FOPS=yCONFIG_FB_DEFERRED_IO=yCONFIG_FB_HECUBA=yCONFIG_FB_SVGALIB=yCONFIG_FB_BACKLIGHT=yCONFIG_FB_MODE_HELPERS=yCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#CONFIG_FB_CIRRUS=y
# CONFIG_FB_PM2 is not setCONFIG_FB_CLPS711X=y
# CONFIG_FB_IMX is not setCONFIG_FB_CYBER2000=y
# CONFIG_FB_CYBER2000_DDC is not setCONFIG_FB_ARC=y
# CONFIG_FB_CONTROL is not setCONFIG_FB_ASILIANT=y
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not setCONFIG_FB_UVESA=y
# CONFIG_FB_VESA is not setCONFIG_FB_N411=yCONFIG_FB_HGA=y
# CONFIG_FB_GBE is not setCONFIG_FB_PVR2=y
# CONFIG_FB_OPENCORES is not setCONFIG_FB_S1D13XXX=y
# CONFIG_FB_NVIDIA is not setCONFIG_FB_RIVA=y
# CONFIG_FB_RIVA_I2C is not setCONFIG_FB_RIVA_DEBUG=y
# CONFIG_FB_RIVA_BACKLIGHT is not setCONFIG_FB_I740=yCONFIG_FB_LE80578=yCONFIG_FB_CARILLO_RANCH=yCONFIG_FB_MATROX=y
# CONFIG_FB_MATROX_MILLENIUM is not setCONFIG_FB_MATROX_MYSTIQUE=y
# CONFIG_FB_MATROX_G is not setCONFIG_FB_MATROX_I2C=yCONFIG_FB_RADEON=y
# CONFIG_FB_RADEON_I2C is not setCONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not setCONFIG_FB_ATY128=y
# CONFIG_FB_ATY128_BACKLIGHT is not setCONFIG_FB_ATY=yCONFIG_FB_ATY_CT=y
# CONFIG_FB_ATY_GENERIC_LCD is not setCONFIG_FB_ATY_GX=y
# CONFIG_FB_ATY_BACKLIGHT is not setCONFIG_FB_S3=yCONFIG_FB_S3_DDC=yCONFIG_FB_SAVAGE=yCONFIG_FB_SAVAGE_I2C=yCONFIG_FB_SAVAGE_ACCEL=y
# CONFIG_FB_SIS is not setCONFIG_FB_VIA=y
# CONFIG_FB_VIA_DIRECT_PROCFS is not setCONFIG_FB_VIA_X_COMPATIBILITY=y
# CONFIG_FB_NEOMAGIC is not setCONFIG_FB_KYRO=yCONFIG_FB_3DFX=yCONFIG_FB_3DFX_ACCEL=y
# CONFIG_FB_3DFX_I2C is not setCONFIG_FB_VOODOO1=yCONFIG_FB_VT8623=yCONFIG_FB_TRIDENT=yCONFIG_FB_ARK=yCONFIG_FB_PM3=y
# CONFIG_FB_CARMINE is not setCONFIG_FB_WM8505=y
# CONFIG_FB_WMT_GE_ROPS is not setCONFIG_FB_GEODE=yCONFIG_FB_GEODE_LX=yCONFIG_FB_GEODE_GX=y
# CONFIG_FB_GEODE_GX1 is not setCONFIG_FB_PXA168=yCONFIG_FB_W100=y
# CONFIG_FB_SH_MOBILE_LCDC is not setCONFIG_FB_TMIO=yCONFIG_FB_TMIO_ACCELL=y
# CONFIG_FB_S3C is not set
# CONFIG_FB_IBM_GXT4500 is not setCONFIG_FB_GOLDFISH=y
# CONFIG_FB_DA8XX is not setCONFIG_FB_VIRTUAL=y
# CONFIG_FB_METRONOME is not setCONFIG_FB_MB862XX=yCONFIG_FB_MB862XX_PCI_GDC=y
# CONFIG_FB_MB862XX_I2C is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_SIMPLE is not setCONFIG_FB_SSD1307=y
# CONFIG_FB_SM712 is not set
# CONFIG_MMP_DISP is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#CONFIG_LCD_CLASS_DEVICE=y
# CONFIG_LCD_PLATFORM is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_KTD253 is not setCONFIG_BACKLIGHT_LM3533=yCONFIG_BACKLIGHT_CARILLO_RANCH=yCONFIG_BACKLIGHT_PWM=yCONFIG_BACKLIGHT_DA903X=yCONFIG_BACKLIGHT_DA9052=yCONFIG_BACKLIGHT_QCOM_WLED=yCONFIG_BACKLIGHT_RT4831=y
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_WM831X is not set
# CONFIG_BACKLIGHT_ADP8860 is not setCONFIG_BACKLIGHT_ADP8870=yCONFIG_BACKLIGHT_AAT2870=yCONFIG_BACKLIGHT_LM3630A=yCONFIG_BACKLIGHT_LM3639=y
# CONFIG_BACKLIGHT_LP855X is not set
# CONFIG_BACKLIGHT_LP8788 is not setCONFIG_BACKLIGHT_SKY81452=yCONFIG_BACKLIGHT_AS3711=y
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not setCONFIG_BACKLIGHT_BD6107=yCONFIG_BACKLIGHT_ARCXCNN=y
# CONFIG_BACKLIGHT_RAVE_SP is not set
# end of Backlight & LCD device support
CONFIG_VGASTATE=yCONFIG_VIDEOMODE_HELPERS=yCONFIG_HDMI=y
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=y CONFIG_DUMMY_CONSOLE_COLUMNS=80 CONFIG_DUMMY_CONSOLE_ROWS=25 CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION=y # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
CONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=y
# CONFIG_LOGO_LINUX_VGA16 is not setCONFIG_LOGO_LINUX_CLUT224=y
# end of Graphics support
CONFIG_SOUND=yCONFIG_SOUND_OSS_CORE=y
# CONFIG_SOUND_OSS_CORE_PRECLAIM is not setCONFIG_SND=yCONFIG_SND_TIMER=yCONFIG_SND_PCM=yCONFIG_SND_PCM_ELD=yCONFIG_SND_PCM_IEC958=yCONFIG_SND_DMAENGINE_PCM=yCONFIG_SND_HWDEP=yCONFIG_SND_RAWMIDI=yCONFIG_SND_COMPRESS_OFFLOAD=yCONFIG_SND_JACK=yCONFIG_SND_JACK_INPUT_DEV=yCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=y
# CONFIG_SND_PCM_OSS is not setCONFIG_SND_PCM_TIMER=yCONFIG_SND_DYNAMIC_MINORS=yCONFIG_SND_MAX_CARDS=32CONFIG_SND_SUPPORT_OLD_API=yCONFIG_SND_PROC_FS=y
# CONFIG_SND_VERBOSE_PROCFS is not setCONFIG_SND_VERBOSE_PRINTK=y
# CONFIG_SND_DEBUG is not setCONFIG_SND_VMASTER=yCONFIG_SND_DMA_SGBUF=yCONFIG_SND_CTL_LED=y
# CONFIG_SND_SEQUENCER is not setCONFIG_SND_MPU401_UART=yCONFIG_SND_OPL3_LIB=yCONFIG_SND_OPL4_LIB=yCONFIG_SND_VX_LIB=yCONFIG_SND_AC97_CODEC=yCONFIG_SND_DRIVERS=yCONFIG_SND_DUMMY=y
# CONFIG_SND_ALOOP is not setCONFIG_SND_MTPAV=yCONFIG_SND_SERIAL_U16550=yCONFIG_SND_MPU401=y
# CONFIG_SND_AC97_POWER_SAVE is not setCONFIG_SND_WSS_LIB=yCONFIG_SND_SB_COMMON=yCONFIG_SND_SB8_DSP=yCONFIG_SND_SB16_DSP=yCONFIG_SND_ISA=yCONFIG_SND_ADLIB=yCONFIG_SND_AD1848=y
# CONFIG_SND_AZT1605 is not set
# CONFIG_SND_AZT2316 is not setCONFIG_SND_CMI8328=y
# CONFIG_SND_CMI8330 is not setCONFIG_SND_CS4231=yCONFIG_SND_CS4236=y
# CONFIG_SND_ES1688 is not setCONFIG_SND_ES18XX=yCONFIG_SND_SC6000=yCONFIG_SND_GUSCLASSIC=yCONFIG_SND_GUSEXTREME=yCONFIG_SND_GUSMAX=yCONFIG_SND_JAZZ16=yCONFIG_SND_OPL3SA2=yCONFIG_SND_OPTI92X_AD1848=yCONFIG_SND_OPTI92X_CS4231=yCONFIG_SND_OPTI93X=yCONFIG_SND_MIRO=yCONFIG_SND_SB8=y
# CONFIG_SND_SB16 is not setCONFIG_SND_SBAWE=y
# CONFIG_SND_SB16_CSP is not set
# CONFIG_SND_SSCAPE is not setCONFIG_SND_WAVEFRONT=yCONFIG_SND_MSND_PINNACLE=yCONFIG_SND_MSND_CLASSIC=yCONFIG_SND_PCI=yCONFIG_SND_AD1889=yCONFIG_SND_ALS300=yCONFIG_SND_ALS4000=y
# CONFIG_SND_ALI5451 is not setCONFIG_SND_ASIHPI=y
# CONFIG_SND_ATIIXP is not setCONFIG_SND_ATIIXP_MODEM=yCONFIG_SND_AU8810=y
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not setCONFIG_SND_AW2=yCONFIG_SND_AZT3328=y
# CONFIG_SND_BT87X is not setCONFIG_SND_CA0106=yCONFIG_SND_CMIPCI=yCONFIG_SND_OXYGEN_LIB=yCONFIG_SND_OXYGEN=yCONFIG_SND_CS4281=yCONFIG_SND_CS46XX=yCONFIG_SND_CS46XX_NEW_DSP=yCONFIG_SND_CS5530=y
# CONFIG_SND_CS5535AUDIO is not setCONFIG_SND_CTXFI=y
# CONFIG_SND_DARLA20 is not setCONFIG_SND_GINA20=yCONFIG_SND_LAYLA20=yCONFIG_SND_DARLA24=yCONFIG_SND_GINA24=yCONFIG_SND_LAYLA24=yCONFIG_SND_MONA=y
# CONFIG_SND_MIA is not setCONFIG_SND_ECHO3G=y
# CONFIG_SND_INDIGO is not setCONFIG_SND_INDIGOIO=yCONFIG_SND_INDIGODJ=yCONFIG_SND_INDIGOIOX=yCONFIG_SND_INDIGODJX=yCONFIG_SND_EMU10K1=yCONFIG_SND_EMU10K1X=yCONFIG_SND_ENS1370=y
# CONFIG_SND_ENS1371 is not setCONFIG_SND_ES1938=yCONFIG_SND_ES1968=yCONFIG_SND_ES1968_INPUT=yCONFIG_SND_FM801=y
# CONFIG_SND_HDSP is not setCONFIG_SND_HDSPM=yCONFIG_SND_ICE1712=yCONFIG_SND_ICE1724=yCONFIG_SND_INTEL8X0=yCONFIG_SND_INTEL8X0M=yCONFIG_SND_KORG1212=yCONFIG_SND_LOLA=yCONFIG_SND_LX6464ES=y
# CONFIG_SND_MAESTRO3 is not setCONFIG_SND_MIXART=y
# CONFIG_SND_NM256 is not setCONFIG_SND_PCXHR=yCONFIG_SND_RIPTIDE=y
# CONFIG_SND_RME32 is not setCONFIG_SND_RME96=yCONFIG_SND_RME9652=yCONFIG_SND_SONICVIBES=y
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not setCONFIG_SND_VIA82XX_MODEM=yCONFIG_SND_VIRTUOSO=yCONFIG_SND_VX222=yCONFIG_SND_YMFPCI=y
#
# HD-Audio
#CONFIG_SND_HDA=yCONFIG_SND_HDA_GENERIC_LEDS=y
# CONFIG_SND_HDA_INTEL is not setCONFIG_SND_HDA_HWDEP=yCONFIG_SND_HDA_RECONFIG=yCONFIG_SND_HDA_INPUT_BEEP=yCONFIG_SND_HDA_INPUT_BEEP_MODE=1CONFIG_SND_HDA_PATCH_LOADER=y
# CONFIG_SND_HDA_CODEC_REALTEK is not setCONFIG_SND_HDA_CODEC_ANALOG=y
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not setCONFIG_SND_HDA_CODEC_CIRRUS=yCONFIG_SND_HDA_CODEC_CS8409=yCONFIG_SND_HDA_CODEC_CONEXANT=y
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not setCONFIG_SND_HDA_CODEC_CMEDIA=y
# CONFIG_SND_HDA_CODEC_SI3054 is not setCONFIG_SND_HDA_GENERIC=yCONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# end of HD-Audio
CONFIG_SND_HDA_CORE=yCONFIG_SND_HDA_EXT_CORE=yCONFIG_SND_HDA_PREALLOC_SIZE=0CONFIG_SND_INTEL_DSP_CONFIG=yCONFIG_SND_PCMCIA=yCONFIG_SND_VXPOCKET=yCONFIG_SND_PDAUDIOCF=yCONFIG_SND_SOC=yCONFIG_SND_SOC_AC97_BUS=yCONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=yCONFIG_SND_SOC_COMPRESS=yCONFIG_SND_SOC_TOPOLOGY=yCONFIG_SND_SOC_TOPOLOGY_KUNIT_TEST=yCONFIG_SND_SOC_ADI=yCONFIG_SND_SOC_ADI_AXI_I2S=yCONFIG_SND_SOC_ADI_AXI_SPDIF=y
# CONFIG_SND_SOC_AMD_ACP is not set
# CONFIG_SND_SOC_AMD_ACP3x is not set
# CONFIG_SND_SOC_AMD_RENOIR is not set
CONFIG_SND_SOC_AMD_ACP5x=y
CONFIG_SND_SOC_AMD_ACP6x=y
# CONFIG_SND_SOC_AMD_YC_MACH is not setCONFIG_SND_AMD_ACP_CONFIG=yCONFIG_SND_SOC_AMD_ACP_COMMON=yCONFIG_SND_SOC_AMD_ACP_PDM=yCONFIG_SND_SOC_AMD_ACP_I2S=yCONFIG_SND_SOC_AMD_ACP_PCM=yCONFIG_SND_SOC_AMD_ACP_PCI=yCONFIG_SND_AMD_ASOC_RENOIR=y
# CONFIG_SND_SOC_AMD_LEGACY_MACH is not set
# CONFIG_SND_SOC_AMD_SOF_MACH is not setCONFIG_SND_ATMEL_SOC=yCONFIG_SND_ATMEL_SOC_PDC=yCONFIG_SND_ATMEL_SOC_DMA=yCONFIG_SND_ATMEL_SOC_SSC=y
# CONFIG_SND_ATMEL_SOC_SSC_PDC is not setCONFIG_SND_ATMEL_SOC_SSC_DMA=y
# CONFIG_SND_AT91_SOC_SAM9G20_WM8731 is not set
# CONFIG_SND_ATMEL_SOC_WM8904 is not setCONFIG_SND_AT91_SOC_SAM9X5_WM8731=y
# CONFIG_SND_ATMEL_SOC_CLASSD is not setCONFIG_SND_BCM2835_SOC_I2S=yCONFIG_SND_SOC_CYGNUS=yCONFIG_SND_BCM63XX_I2S_WHISTLER=yCONFIG_SND_EP93XX_SOC=yCONFIG_SND_DESIGNWARE_I2S=y
# CONFIG_SND_DESIGNWARE_PCM is not set
#
# SoC Audio for Freescale CPUs
#
#
# Common SoC Audio options for Freescale CPUs:
#CONFIG_SND_SOC_FSL_ASRC=yCONFIG_SND_SOC_FSL_SAI=y
# CONFIG_SND_SOC_FSL_MQS is not setCONFIG_SND_SOC_FSL_AUDMIX=yCONFIG_SND_SOC_FSL_SSI=yCONFIG_SND_SOC_FSL_SPDIF=yCONFIG_SND_SOC_FSL_ESAI=y
# CONFIG_SND_SOC_FSL_MICFIL is not setCONFIG_SND_SOC_FSL_EASRC=y
# CONFIG_SND_SOC_FSL_XCVR is not setCONFIG_SND_SOC_FSL_AUD2HTX=yCONFIG_SND_SOC_IMX_PCM_DMA=y
# CONFIG_SND_SOC_IMX_AUDMUX is not setCONFIG_SND_IMX_SOC=y
#
# SoC Audio support for Freescale i.MX boards:
#CONFIG_SND_SOC_IMX_SPDIF=yCONFIG_SND_SOC_IMX_AUDMIX=yCONFIG_SND_SOC_IMX_HDMI=y
# end of SoC Audio for Freescale CPUs
CONFIG_SND_I2S_HI6210_I2S=y CONFIG_SND_KIRKWOOD_SOC=y CONFIG_SND_KIRKWOOD_SOC_ARMADA370_DB=y
# CONFIG_SND_SOC_IMG is not set CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=y CONFIG_SND_SOC_INTEL_CATPT=y CONFIG_SND_SST_ATOM_HIFI2_PLATFORM=y CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_PCI=y CONFIG_SND_SOC_ACPI_INTEL_MATCH=y
# CONFIG_SND_SOC_INTEL_KEEMBAY is not set CONFIG_SND_SOC_INTEL_MACH=y
# CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES is not set CONFIG_SND_SOC_INTEL_HASWELL_MACH=y CONFIG_SND_SOC_INTEL_BDW_RT5650_MACH=y CONFIG_SND_SOC_INTEL_BROADWELL_MACH=y CONFIG_SND_SOC_MEDIATEK=y CONFIG_SND_SOC_MTK_BTCVSD=y CONFIG_SND_SOC_MT8195=y CONFIG_SND_SOC_MT8195_MT6359_RT1019_RT5682=y CONFIG_SND_SOC_MT8195_MT6359_RT1011_RT5682=y
#
# ASoC support for Amlogic platforms
#CONFIG_SND_MESON_AIU=yCONFIG_SND_MESON_AXG_FIFO=yCONFIG_SND_MESON_AXG_FRDDR=yCONFIG_SND_MESON_AXG_TODDR=yCONFIG_SND_MESON_AXG_TDM_FORMATTER=yCONFIG_SND_MESON_AXG_TDM_INTERFACE=yCONFIG_SND_MESON_AXG_TDMIN=yCONFIG_SND_MESON_AXG_TDMOUT=yCONFIG_SND_MESON_AXG_SOUND_CARD=yCONFIG_SND_MESON_AXG_SPDIFOUT=y
# CONFIG_SND_MESON_AXG_SPDIFIN is not set
# CONFIG_SND_MESON_AXG_PDM is not setCONFIG_SND_MESON_CARD_UTILS=yCONFIG_SND_MESON_CODEC_GLUE=yCONFIG_SND_MESON_GX_SOUND_CARD=yCONFIG_SND_MESON_G12A_TOACODEC=yCONFIG_SND_MESON_G12A_TOHDMITX=yCONFIG_SND_SOC_MESON_T9015=y
# end of ASoC support for Amlogic platforms
CONFIG_SND_MXS_SOC=y
# CONFIG_SND_SOC_MXS_SGTL5000 is not set
# CONFIG_SND_PXA2XX_SOC is not setCONFIG_SND_SOC_QCOM=yCONFIG_SND_SOC_LPASS_CPU=yCONFIG_SND_SOC_LPASS_HDMI=yCONFIG_SND_SOC_LPASS_PLATFORM=yCONFIG_SND_SOC_LPASS_IPQ806X=yCONFIG_SND_SOC_LPASS_SC7180=yCONFIG_SND_SOC_STORM=y
# CONFIG_SND_SOC_APQ8016_SBC is not setCONFIG_SND_SOC_QCOM_COMMON=yCONFIG_SND_SOC_SC7180=yCONFIG_SND_SOC_ROCKCHIP=yCONFIG_SND_SOC_ROCKCHIP_I2S=yCONFIG_SND_SOC_ROCKCHIP_I2S_TDM=y
# CONFIG_SND_SOC_ROCKCHIP_PDM is not setCONFIG_SND_SOC_ROCKCHIP_SPDIF=yCONFIG_SND_SOC_ROCKCHIP_MAX98090=y
# CONFIG_SND_SOC_ROCKCHIP_RT5645 is not set
# CONFIG_SND_SOC_RK3288_HDMI_ANALOG is not setCONFIG_SND_SOC_SAMSUNG=y
# CONFIG_SND_SAMSUNG_PCM is not setCONFIG_SND_SAMSUNG_SPDIF=yCONFIG_SND_SAMSUNG_I2S=yCONFIG_SND_SOC_SAMSUNG_SMDK_WM8580=yCONFIG_SND_SOC_SAMSUNG_SMDK_WM8994=y
# CONFIG_SND_SOC_SMARTQ is not setCONFIG_SND_SOC_SAMSUNG_SMDK_SPDIF=y
# CONFIG_SND_SOC_SMDK_WM8994_PCM is not set
# CONFIG_SND_SOC_TOBERMORY is not set
# CONFIG_SND_SOC_LOWLAND is not set
# CONFIG_SND_SOC_LITTLEMILL is not set
# CONFIG_SND_SOC_SNOW is not set
# CONFIG_SND_SOC_ODROID is not setCONFIG_SND_SOC_ARNDALE=yCONFIG_SND_SOC_SAMSUNG_MIDAS_WM1811=y
#
# SoC Audio support for Renesas SoCs
#CONFIG_SND_SOC_SH4_FSI=yCONFIG_SND_SOC_RCAR=y
# CONFIG_SND_SOC_RZ is not set
# end of SoC Audio support for Renesas SoCs
CONFIG_SND_SOC_SOF_TOPLEVEL=y
# CONFIG_SND_SOC_SOF_PCI is not set
# CONFIG_SND_SOC_SOF_ACPI is not setCONFIG_SND_SOC_SOF_OF=yCONFIG_SND_SOC_SOF_OF_DEV=yCONFIG_SND_SOC_SOF_COMPRESS=yCONFIG_SND_SOC_SOF=yCONFIG_SND_SOC_SOF_AMD_TOPLEVEL=yCONFIG_SND_SOC_SOF_IMX_TOPLEVEL=y
# CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL is not setCONFIG_SND_SOC_SOF_MTK_TOPLEVEL=yCONFIG_SND_SOC_SOF_MTK_COMMON=yCONFIG_SND_SOC_SOF_MT8195=yCONFIG_SND_SOC_SOF_XTENSA=yCONFIG_SND_SOC_SPRD=yCONFIG_SND_SOC_SPRD_MCDT=yCONFIG_SND_SOC_STI=y
#
# STMicroelectronics STM32 SOC audio support
#
# CONFIG_SND_SOC_STM32_SAI is not setCONFIG_SND_SOC_STM32_I2S=y
# CONFIG_SND_SOC_STM32_SPDIFRX is not set
# end of STMicroelectronics STM32 SOC audio support
#
# Allwinner SoC Audio support
#CONFIG_SND_SUN4I_CODEC=yCONFIG_SND_SUN8I_CODEC_ANALOG=yCONFIG_SND_SUN50I_CODEC_ANALOG=yCONFIG_SND_SUN4I_I2S=yCONFIG_SND_SUN8I_ADDA_PR_REGMAP=y
# end of Allwinner SoC Audio support
CONFIG_SND_SOC_TEGRA=yCONFIG_SND_SOC_TEGRA20_AC97=yCONFIG_SND_SOC_TEGRA20_DAS=yCONFIG_SND_SOC_TEGRA20_I2S=yCONFIG_SND_SOC_TEGRA20_SPDIF=y
# CONFIG_SND_SOC_TEGRA30_AHUB is not set
# CONFIG_SND_SOC_TEGRA30_I2S is not set
# CONFIG_SND_SOC_TEGRA210_AHUB is not set
# CONFIG_SND_SOC_TEGRA210_DMIC is not setCONFIG_SND_SOC_TEGRA210_I2S=yCONFIG_SND_SOC_TEGRA186_DSPK=yCONFIG_SND_SOC_TEGRA210_ADMAIF=y
# CONFIG_SND_SOC_TEGRA210_MVC is not set
# CONFIG_SND_SOC_TEGRA210_SFC is not setCONFIG_SND_SOC_TEGRA210_AMX=yCONFIG_SND_SOC_TEGRA210_ADX=yCONFIG_SND_SOC_TEGRA210_MIXER=yCONFIG_SND_SOC_TEGRA_MACHINE_DRV=y
# CONFIG_SND_SOC_TEGRA_RT5640 is not setCONFIG_SND_SOC_TEGRA_WM8753=yCONFIG_SND_SOC_TEGRA_WM8903=y
# CONFIG_SND_SOC_TEGRA_WM9712 is not setCONFIG_SND_SOC_TEGRA_TRIMSLICE=yCONFIG_SND_SOC_TEGRA_ALC5632=y
# CONFIG_SND_SOC_TEGRA_MAX98090 is not setCONFIG_SND_SOC_TEGRA_RT5677=yCONFIG_SND_SOC_TEGRA_SGTL5000=y
#
# Audio support for Texas Instruments SoCs
#CONFIG_SND_SOC_TI_EDMA_PCM=yCONFIG_SND_SOC_TI_SDMA_PCM=y
#
# Texas Instruments DAI support for:
#CONFIG_SND_SOC_DAVINCI_ASP=y
# CONFIG_SND_SOC_DAVINCI_MCASP is not set
# CONFIG_SND_SOC_DAVINCI_VCIF is not set
# CONFIG_SND_SOC_OMAP_DMIC is not setCONFIG_SND_SOC_OMAP_MCBSP=y
# CONFIG_SND_SOC_OMAP_MCPDM is not set
#
# Audio support for boards with Texas Instruments SoCs #CONFIG_SND_SOC_OMAP_HDMI=y
# CONFIG_SND_SOC_J721E_EVM is not set
# end of Audio support for Texas Instruments SoCs
CONFIG_SND_SOC_UNIPHIER=y CONFIG_SND_SOC_UNIPHIER_AIO=y
# CONFIG_SND_SOC_UNIPHIER_LD11 is not set CONFIG_SND_SOC_UNIPHIER_PXS2=y CONFIG_SND_SOC_UNIPHIER_EVEA_CODEC=y CONFIG_SND_SOC_XILINX_I2S=y
# CONFIG_SND_SOC_XILINX_AUDIO_FORMATTER is not set CONFIG_SND_SOC_XILINX_SPDIF=y
# CONFIG_SND_SOC_XTFPGA_I2S is not set CONFIG_SND_SOC_I2C_AND_SPI=y
#
# CODEC drivers
#CONFIG_SND_SOC_ALL_CODECS=y
# CONFIG_SND_SOC_88PM860X is not setCONFIG_SND_SOC_WM_HUBS=yCONFIG_SND_SOC_WM_ADSP=y
# CONFIG_SND_SOC_AB8500_CODEC is not setCONFIG_SND_SOC_AC97_CODEC=y
# CONFIG_SND_SOC_AD1836 is not setCONFIG_SND_SOC_AD193X=y
# CONFIG_SND_SOC_AD193X_SPI is not setCONFIG_SND_SOC_AD193X_I2C=yCONFIG_SND_SOC_AD1980=yCONFIG_SND_SOC_AD73311=yCONFIG_SND_SOC_ADAU_UTILS=yCONFIG_SND_SOC_ADAU1372=yCONFIG_SND_SOC_ADAU1372_I2C=y
# CONFIG_SND_SOC_ADAU1372_SPI is not setCONFIG_SND_SOC_ADAU1373=yCONFIG_SND_SOC_ADAU1701=yCONFIG_SND_SOC_ADAU17X1=yCONFIG_SND_SOC_ADAU1761=yCONFIG_SND_SOC_ADAU1761_I2C=y
# CONFIG_SND_SOC_ADAU1761_SPI is not setCONFIG_SND_SOC_ADAU1781=yCONFIG_SND_SOC_ADAU1781_I2C=y
# CONFIG_SND_SOC_ADAU1781_SPI is not setCONFIG_SND_SOC_ADAU1977=y
# CONFIG_SND_SOC_ADAU1977_SPI is not setCONFIG_SND_SOC_ADAU1977_I2C=yCONFIG_SND_SOC_ADAU7002=y
# CONFIG_SND_SOC_ADAU7118_HW is not set
# CONFIG_SND_SOC_ADAU7118_I2C is not setCONFIG_SND_SOC_ADAV80X=y
# CONFIG_SND_SOC_ADAV801 is not setCONFIG_SND_SOC_ADAV803=yCONFIG_SND_SOC_ADS117X=y
# CONFIG_SND_SOC_AK4104 is not setCONFIG_SND_SOC_AK4118=yCONFIG_SND_SOC_AK4375=yCONFIG_SND_SOC_AK4458=yCONFIG_SND_SOC_AK4535=yCONFIG_SND_SOC_AK4554=yCONFIG_SND_SOC_AK4613=yCONFIG_SND_SOC_AK4641=y
# CONFIG_SND_SOC_AK4642 is not setCONFIG_SND_SOC_AK4671=y
# CONFIG_SND_SOC_AK5386 is not setCONFIG_SND_SOC_AK5558=y
# CONFIG_SND_SOC_ALC5623 is not setCONFIG_SND_SOC_ALC5632=yCONFIG_SND_SOC_AW8738=yCONFIG_SND_SOC_BD28623=yCONFIG_SND_SOC_BT_SCO=yCONFIG_SND_SOC_CQ0093VC=yCONFIG_SND_SOC_CROS_EC_CODEC=yCONFIG_SND_SOC_CS35L32=yCONFIG_SND_SOC_CS35L33=y
# CONFIG_SND_SOC_CS35L34 is not setCONFIG_SND_SOC_CS35L35=y
# CONFIG_SND_SOC_CS35L36 is not setCONFIG_SND_SOC_CS35L41_LIB=yCONFIG_SND_SOC_CS35L41=y
# CONFIG_SND_SOC_CS35L41_SPI is not setCONFIG_SND_SOC_CS35L41_I2C=yCONFIG_SND_SOC_CS42L42=yCONFIG_SND_SOC_CS42L51=yCONFIG_SND_SOC_CS42L51_I2C=y
# CONFIG_SND_SOC_CS42L52 is not setCONFIG_SND_SOC_CS42L56=y
# CONFIG_SND_SOC_CS42L73 is not set
# CONFIG_SND_SOC_CS4234 is not setCONFIG_SND_SOC_CS4265=yCONFIG_SND_SOC_CS4270=yCONFIG_SND_SOC_CS4271=yCONFIG_SND_SOC_CS4271_I2C=y
# CONFIG_SND_SOC_CS4271_SPI is not setCONFIG_SND_SOC_CS42XX8=yCONFIG_SND_SOC_CS42XX8_I2C=yCONFIG_SND_SOC_CS43130=y
# CONFIG_SND_SOC_CS4341 is not setCONFIG_SND_SOC_CS4349=yCONFIG_SND_SOC_CS47L15=y
# CONFIG_SND_SOC_CS47L24 is not set
# CONFIG_SND_SOC_CS47L35 is not set
# CONFIG_SND_SOC_CS47L85 is not set
# CONFIG_SND_SOC_CS47L90 is not set
# CONFIG_SND_SOC_CS47L92 is not setCONFIG_SND_SOC_CS53L30=yCONFIG_SND_SOC_CX20442=y
# CONFIG_SND_SOC_CX2072X is not set
# CONFIG_SND_SOC_JZ4740_CODEC is not set
# CONFIG_SND_SOC_JZ4725B_CODEC is not set
# CONFIG_SND_SOC_JZ4760_CODEC is not set
# CONFIG_SND_SOC_JZ4770_CODEC is not setCONFIG_SND_SOC_L3=yCONFIG_SND_SOC_DA7210=yCONFIG_SND_SOC_DA7213=yCONFIG_SND_SOC_DA7218=yCONFIG_SND_SOC_DA7219=yCONFIG_SND_SOC_DA732X=yCONFIG_SND_SOC_DA9055=yCONFIG_SND_SOC_DMIC=yCONFIG_SND_SOC_HDMI_CODEC=y
# CONFIG_SND_SOC_ES7134 is not set
# CONFIG_SND_SOC_ES7241 is not set
# CONFIG_SND_SOC_ES8316 is not setCONFIG_SND_SOC_ES8328=yCONFIG_SND_SOC_ES8328_I2C=y
# CONFIG_SND_SOC_ES8328_SPI is not setCONFIG_SND_SOC_GTM601=yCONFIG_SND_SOC_HDAC_HDMI=yCONFIG_SND_SOC_HDAC_HDA=yCONFIG_SND_SOC_ICS43432=yCONFIG_SND_SOC_INNO_RK3036=yCONFIG_SND_SOC_ISABELLE=yCONFIG_SND_SOC_LM49453=y
# CONFIG_SND_SOC_LOCHNAGAR_SC is not setCONFIG_SND_SOC_MADERA=yCONFIG_SND_SOC_MAX98088=yCONFIG_SND_SOC_MAX98090=yCONFIG_SND_SOC_MAX98095=yCONFIG_SND_SOC_MAX98357A=yCONFIG_SND_SOC_MAX98371=y
# CONFIG_SND_SOC_MAX98504 is not set
# CONFIG_SND_SOC_MAX9867 is not setCONFIG_SND_SOC_MAX98925=yCONFIG_SND_SOC_MAX98926=yCONFIG_SND_SOC_MAX98927=y
# CONFIG_SND_SOC_MAX98520 is not set
# CONFIG_SND_SOC_MAX98373_I2C is not set
# CONFIG_SND_SOC_MAX98373_SDW is not setCONFIG_SND_SOC_MAX98390=yCONFIG_SND_SOC_MAX9850=y
# CONFIG_SND_SOC_MAX9860 is not setCONFIG_SND_SOC_MSM8916_WCD_ANALOG=yCONFIG_SND_SOC_MSM8916_WCD_DIGITAL=y
# CONFIG_SND_SOC_PCM1681 is not set
# CONFIG_SND_SOC_PCM1789_I2C is not setCONFIG_SND_SOC_PCM179X=yCONFIG_SND_SOC_PCM179X_I2C=y
# CONFIG_SND_SOC_PCM179X_SPI is not setCONFIG_SND_SOC_PCM186X=yCONFIG_SND_SOC_PCM186X_I2C=y
# CONFIG_SND_SOC_PCM186X_SPI is not setCONFIG_SND_SOC_PCM3008=yCONFIG_SND_SOC_PCM3060=yCONFIG_SND_SOC_PCM3060_I2C=y
# CONFIG_SND_SOC_PCM3060_SPI is not setCONFIG_SND_SOC_PCM3168A=yCONFIG_SND_SOC_PCM3168A_I2C=y
# CONFIG_SND_SOC_PCM3168A_SPI is not setCONFIG_SND_SOC_PCM5102A=y
# CONFIG_SND_SOC_PCM512x_I2C is not set
# CONFIG_SND_SOC_PCM512x_SPI is not setCONFIG_SND_SOC_RK3328=y
# CONFIG_SND_SOC_RK817 is not setCONFIG_SND_SOC_RL6231=yCONFIG_SND_SOC_RL6347A=yCONFIG_SND_SOC_RT274=yCONFIG_SND_SOC_RT286=yCONFIG_SND_SOC_RT298=yCONFIG_SND_SOC_RT1011=yCONFIG_SND_SOC_RT1015=yCONFIG_SND_SOC_RT1015P=yCONFIG_SND_SOC_RT1019=yCONFIG_SND_SOC_RT1305=yCONFIG_SND_SOC_RT1308=y
# CONFIG_SND_SOC_RT1308_SDW is not set
# CONFIG_SND_SOC_RT1316_SDW is not setCONFIG_SND_SOC_RT5514=yCONFIG_SND_SOC_RT5616=yCONFIG_SND_SOC_RT5631=yCONFIG_SND_SOC_RT5640=yCONFIG_SND_SOC_RT5645=yCONFIG_SND_SOC_RT5651=y
# CONFIG_SND_SOC_RT5659 is not setCONFIG_SND_SOC_RT5660=yCONFIG_SND_SOC_RT5663=yCONFIG_SND_SOC_RT5665=yCONFIG_SND_SOC_RT5668=yCONFIG_SND_SOC_RT5670=yCONFIG_SND_SOC_RT5677=yCONFIG_SND_SOC_RT5682=yCONFIG_SND_SOC_RT5682_I2C=y
# CONFIG_SND_SOC_RT5682_SDW is not setCONFIG_SND_SOC_RT5682S=y
# CONFIG_SND_SOC_RT700_SDW is not set
# CONFIG_SND_SOC_RT711_SDW is not set
# CONFIG_SND_SOC_RT711_SDCA_SDW is not set
# CONFIG_SND_SOC_RT715_SDW is not set
# CONFIG_SND_SOC_RT715_SDCA_SDW is not set
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not setCONFIG_SND_SOC_SGTL5000=yCONFIG_SND_SOC_SI476X=yCONFIG_SND_SOC_SIGMADSP=yCONFIG_SND_SOC_SIGMADSP_I2C=yCONFIG_SND_SOC_SIGMADSP_REGMAP=yCONFIG_SND_SOC_SIMPLE_AMPLIFIER=yCONFIG_SND_SOC_SIMPLE_MUX=yCONFIG_SND_SOC_SPDIF=yCONFIG_SND_SOC_SSM2305=yCONFIG_SND_SOC_SSM2518=y
# CONFIG_SND_SOC_SSM2602_SPI is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_SSM4567 is not set
# CONFIG_SND_SOC_STA32X is not setCONFIG_SND_SOC_STA350=yCONFIG_SND_SOC_STA529=yCONFIG_SND_SOC_STAC9766=y
# CONFIG_SND_SOC_STI_SAS is not set
# CONFIG_SND_SOC_TAS2552 is not setCONFIG_SND_SOC_TAS2562=yCONFIG_SND_SOC_TAS2764=y
# CONFIG_SND_SOC_TAS2770 is not setCONFIG_SND_SOC_TAS5086=yCONFIG_SND_SOC_TAS571X=y
# CONFIG_SND_SOC_TAS5720 is not set
# CONFIG_SND_SOC_TAS5805M is not set
# CONFIG_SND_SOC_TAS6424 is not set
# CONFIG_SND_SOC_TDA7419 is not set
# CONFIG_SND_SOC_TFA9879 is not setCONFIG_SND_SOC_TFA989X=y
# CONFIG_SND_SOC_TLV320ADC3XXX is not setCONFIG_SND_SOC_TLV320AIC23=yCONFIG_SND_SOC_TLV320AIC23_I2C=y
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC26 is not setCONFIG_SND_SOC_TLV320AIC31XX=y
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_SPI is not setCONFIG_SND_SOC_TLV320AIC3X=yCONFIG_SND_SOC_TLV320AIC3X_I2C=y
# CONFIG_SND_SOC_TLV320AIC3X_SPI is not setCONFIG_SND_SOC_TLV320DAC33=yCONFIG_SND_SOC_TLV320ADCX140=yCONFIG_SND_SOC_TS3A227E=yCONFIG_SND_SOC_TSCS42XX=y
# CONFIG_SND_SOC_TSCS454 is not set
# CONFIG_SND_SOC_TWL4030 is not set
# CONFIG_SND_SOC_TWL6040 is not setCONFIG_SND_SOC_UDA1334=yCONFIG_SND_SOC_UDA134X=yCONFIG_SND_SOC_UDA1380=y
# CONFIG_SND_SOC_WCD9335 is not set
# CONFIG_SND_SOC_WCD934X is not set
# CONFIG_SND_SOC_WCD938X_SDW is not setCONFIG_SND_SOC_WL1273=y
# CONFIG_SND_SOC_WM0010 is not setCONFIG_SND_SOC_WM1250_EV1=yCONFIG_SND_SOC_WM2000=yCONFIG_SND_SOC_WM2200=yCONFIG_SND_SOC_WM5100=y
# CONFIG_SND_SOC_WM5102 is not set
# CONFIG_SND_SOC_WM5110 is not setCONFIG_SND_SOC_WM8350=y
# CONFIG_SND_SOC_WM8400 is not setCONFIG_SND_SOC_WM8510=yCONFIG_SND_SOC_WM8523=yCONFIG_SND_SOC_WM8524=yCONFIG_SND_SOC_WM8580=y
# CONFIG_SND_SOC_WM8711 is not setCONFIG_SND_SOC_WM8727=yCONFIG_SND_SOC_WM8728=yCONFIG_SND_SOC_WM8731=yCONFIG_SND_SOC_WM8737=yCONFIG_SND_SOC_WM8741=yCONFIG_SND_SOC_WM8750=yCONFIG_SND_SOC_WM8753=y
# CONFIG_SND_SOC_WM8770 is not setCONFIG_SND_SOC_WM8776=y
# CONFIG_SND_SOC_WM8782 is not setCONFIG_SND_SOC_WM8804=yCONFIG_SND_SOC_WM8804_I2C=y
# CONFIG_SND_SOC_WM8804_SPI is not setCONFIG_SND_SOC_WM8900=yCONFIG_SND_SOC_WM8903=y
# CONFIG_SND_SOC_WM8904 is not setCONFIG_SND_SOC_WM8940=yCONFIG_SND_SOC_WM8955=y
# CONFIG_SND_SOC_WM8960 is not setCONFIG_SND_SOC_WM8961=yCONFIG_SND_SOC_WM8962=yCONFIG_SND_SOC_WM8971=yCONFIG_SND_SOC_WM8974=yCONFIG_SND_SOC_WM8978=yCONFIG_SND_SOC_WM8983=y
# CONFIG_SND_SOC_WM8985 is not setCONFIG_SND_SOC_WM8988=yCONFIG_SND_SOC_WM8990=yCONFIG_SND_SOC_WM8991=yCONFIG_SND_SOC_WM8993=yCONFIG_SND_SOC_WM8994=yCONFIG_SND_SOC_WM8995=yCONFIG_SND_SOC_WM8996=y
# CONFIG_SND_SOC_WM8997 is not set
# CONFIG_SND_SOC_WM8998 is not setCONFIG_SND_SOC_WM9081=yCONFIG_SND_SOC_WM9090=yCONFIG_SND_SOC_WM9705=yCONFIG_SND_SOC_WM9712=yCONFIG_SND_SOC_WM9713=y
# CONFIG_SND_SOC_WSA881X is not set
# CONFIG_SND_SOC_ZL38060 is not setCONFIG_SND_SOC_LM4857=y
# CONFIG_SND_SOC_MAX9759 is not setCONFIG_SND_SOC_MAX9768=yCONFIG_SND_SOC_MAX9877=y
# CONFIG_SND_SOC_MC13783 is not setCONFIG_SND_SOC_ML26124=yCONFIG_SND_SOC_MT6351=yCONFIG_SND_SOC_MT6358=yCONFIG_SND_SOC_MT6359=y
# CONFIG_SND_SOC_MT6359_ACCDET is not setCONFIG_SND_SOC_MT6660=yCONFIG_SND_SOC_NAU8315=yCONFIG_SND_SOC_NAU8540=yCONFIG_SND_SOC_NAU8810=y
# CONFIG_SND_SOC_NAU8821 is not setCONFIG_SND_SOC_NAU8822=y
# CONFIG_SND_SOC_NAU8824 is not setCONFIG_SND_SOC_NAU8825=yCONFIG_SND_SOC_TPA6130A2=yCONFIG_SND_SOC_LPASS_MACRO_COMMON=yCONFIG_SND_SOC_LPASS_WSA_MACRO=yCONFIG_SND_SOC_LPASS_VA_MACRO=yCONFIG_SND_SOC_LPASS_RX_MACRO=yCONFIG_SND_SOC_LPASS_TX_MACRO=y
# end of CODEC drivers
CONFIG_SND_SIMPLE_CARD_UTILS=yCONFIG_SND_SIMPLE_CARD=yCONFIG_SND_X86=y
# CONFIG_SND_VIRTIO is not setCONFIG_AC97_BUS=y
#
# HID support
#CONFIG_HID=yCONFIG_HID_BATTERY_STRENGTH=y
# CONFIG_HIDRAW is not set
# CONFIG_UHID is not setCONFIG_HID_GENERIC=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=yCONFIG_HID_ACRUX=y
# CONFIG_HID_ACRUX_FF is not set
# CONFIG_HID_APPLE is not setCONFIG_HID_AUREAL=y
# CONFIG_HID_BELKIN is not setCONFIG_HID_CHERRY=yCONFIG_HID_COUGAR=yCONFIG_HID_MACALLY=yCONFIG_HID_CMEDIA=yCONFIG_HID_CYPRESS=yCONFIG_HID_DRAGONRISE=yCONFIG_DRAGONRISE_FF=y
# CONFIG_HID_EMS_FF is not setCONFIG_HID_ELECOM=y
# CONFIG_HID_EZKEY is not setCONFIG_HID_GEMBIRD=yCONFIG_HID_GFRM=yCONFIG_HID_GLORIOUS=y
# CONFIG_HID_VIVALDI is not setCONFIG_HID_KEYTOUCH=yCONFIG_HID_KYE=y
# CONFIG_HID_WALTOP is not setCONFIG_HID_VIEWSONIC=yCONFIG_HID_XIAOMI=yCONFIG_HID_GYRATION=yCONFIG_HID_ICADE=y
# CONFIG_HID_ITE is not setCONFIG_HID_JABRA=yCONFIG_HID_TWINHAN=yCONFIG_HID_KENSINGTON=yCONFIG_HID_LCPOWER=yCONFIG_HID_LED=yCONFIG_HID_LENOVO=yCONFIG_HID_MAGICMOUSE=yCONFIG_HID_MALTRON=yCONFIG_HID_MAYFLASH=yCONFIG_HID_REDRAGON=yCONFIG_HID_MICROSOFT=yCONFIG_HID_MONTEREY=yCONFIG_HID_MULTITOUCH=yCONFIG_HID_NINTENDO=y
# CONFIG_NINTENDO_FF is not setCONFIG_HID_NTI=y
# CONFIG_HID_ORTEK is not setCONFIG_HID_PANTHERLORD=y
# CONFIG_PANTHERLORD_FF is not setCONFIG_HID_PETALYNX=y
# CONFIG_HID_PICOLCD is not setCONFIG_HID_PLANTRONICS=yCONFIG_HID_RAZER=yCONFIG_HID_PRIMAX=y
# CONFIG_HID_SAITEK is not setCONFIG_HID_SEMITEK=yCONFIG_HID_SPEEDLINK=yCONFIG_HID_STEAM=y
# CONFIG_HID_STEELSERIES is not setCONFIG_HID_SUNPLUS=y
# CONFIG_HID_RMI is not setCONFIG_HID_GREENASIA=yCONFIG_GREENASIA_FF=yCONFIG_HID_SMARTJOYPLUS=y
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TIVO=yCONFIG_HID_TOPSEED=yCONFIG_HID_THINGM=y
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not setCONFIG_HID_ZYDACRON=y
# CONFIG_HID_SENSOR_HUB is not setCONFIG_HID_ALPS=y
# end of Special HID drivers
#
# I2C HID support
#
# end of I2C HID support
#
# Intel ISH HID support
#
# CONFIG_INTEL_ISH_HID is not set
# end of Intel ISH HID support
#
# AMD SFH HID Support
#
# CONFIG_AMD_SFH_HID is not set
# end of AMD SFH HID Support # end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_SUPPORT is not setCONFIG_MMC=yCONFIG_MMC_BLOCK=yCONFIG_MMC_BLOCK_MINORS=8CONFIG_SDIO_UART=yCONFIG_MMC_TEST=y
# CONFIG_MMC_CRYPTO is not set
#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not setCONFIG_MMC_SDHCI=yCONFIG_MMC_SDHCI_IO_ACCESSORS=yCONFIG_MMC_SDHCI_PCI=yCONFIG_MMC_RICOH_MMC=yCONFIG_MMC_SDHCI_PLTFM=yCONFIG_MMC_SDHCI_OF_ESDHC=y
# CONFIG_MMC_SDHCI_OF_SPARX5 is not setCONFIG_MMC_SDHCI_CNS3XXX=yCONFIG_MMC_SDHCI_DOVE=yCONFIG_MMC_SDHCI_TEGRA=yCONFIG_MMC_SDHCI_S3C=yCONFIG_MMC_SDHCI_PXAV3=y
# CONFIG_MMC_SDHCI_PXAV2 is not setCONFIG_MMC_SDHCI_S3C_DMA=y
# CONFIG_MMC_SDHCI_BCM_KONA is not set
# CONFIG_MMC_MESON_GX is not set
# CONFIG_MMC_MOXART is not set
# CONFIG_MMC_SDHCI_ST is not setCONFIG_MMC_OMAP_HS=y
# CONFIG_MMC_WBSD is not setCONFIG_MMC_SDHCI_MSM=yCONFIG_MMC_TIFM_SD=yCONFIG_MMC_DAVINCI=yCONFIG_MMC_S3C=y
# CONFIG_MMC_S3C_HW_SDIO_IRQ is not setCONFIG_MMC_S3C_PIO=y
# CONFIG_MMC_S3C_DMA is not setCONFIG_MMC_SDRICOH_CS=y
# CONFIG_MMC_SDHCI_SPRD is not setCONFIG_MMC_TMIO_CORE=yCONFIG_MMC_TMIO=yCONFIG_MMC_SDHI=y
# CONFIG_MMC_SDHI_SYS_DMAC is not setCONFIG_MMC_SDHI_INTERNAL_DMAC=yCONFIG_MMC_CB710=y
# CONFIG_MMC_VIA_SDMMC is not setCONFIG_MMC_DW=yCONFIG_MMC_DW_PLTFM=y
# CONFIG_MMC_DW_BLUEFIELD is not setCONFIG_MMC_DW_EXYNOS=yCONFIG_MMC_DW_HI3798CV200=yCONFIG_MMC_DW_K3=y
# CONFIG_MMC_DW_PCI is not setCONFIG_MMC_SH_MMCIF=yCONFIG_MMC_USDHI6ROL0=y
# CONFIG_MMC_SUNXI is not setCONFIG_MMC_CQHCI=y
# CONFIG_MMC_HSQ is not setCONFIG_MMC_TOSHIBA_PCI=yCONFIG_MMC_BCM2835=yCONFIG_MMC_MTK=yCONFIG_MMC_SDHCI_XENON=yCONFIG_MMC_OWL=yCONFIG_MMC_LITEX=yCONFIG_MEMSTICK=yCONFIG_MEMSTICK_DEBUG=y
#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not set
# CONFIG_MSPRO_BLOCK is not setCONFIG_MS_BLOCK=y
#
# MemoryStick Host Controller Drivers
#CONFIG_MEMSTICK_TIFM_MS=yCONFIG_MEMSTICK_JMICRON_38X=yCONFIG_MEMSTICK_R592=yCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=yCONFIG_LEDS_CLASS_FLASH=y
# CONFIG_LEDS_CLASS_MULTICOLOR is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
#
# LED drivers
#
# CONFIG_LEDS_APU is not setCONFIG_LEDS_ARIEL=y
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_LM3532 is not setCONFIG_LEDS_LM3533=yCONFIG_LEDS_LM3642=yCONFIG_LEDS_S3C24XX=yCONFIG_LEDS_COBALT_QUBE=yCONFIG_LEDS_COBALT_RAQ=y
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3944 is not setCONFIG_LEDS_LP3952=yCONFIG_LEDS_LP50XX=y
# CONFIG_LEDS_LP8788 is not setCONFIG_LEDS_CLEVO_MAIL=yCONFIG_LEDS_PCA955X=y
# CONFIG_LEDS_PCA955X_GPIO is not setCONFIG_LEDS_PCA963X=yCONFIG_LEDS_WM831X_STATUS=y
# CONFIG_LEDS_WM8350 is not setCONFIG_LEDS_DA903X=yCONFIG_LEDS_DA9052=yCONFIG_LEDS_PWM=y
# CONFIG_LEDS_REGULATOR is not setCONFIG_LEDS_BD2802=y
# CONFIG_LEDS_INTEL_SS4200 is not setCONFIG_LEDS_LT3593=yCONFIG_LEDS_NS2=yCONFIG_LEDS_ASIC3=yCONFIG_LEDS_TCA6507=y
# CONFIG_LEDS_TLC591XX is not setCONFIG_LEDS_MAX77650=y
CONFIG_LEDS_LM355x=y
# CONFIG_LEDS_OT200 is not setCONFIG_LEDS_MENF21BMC=y
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=y
# CONFIG_LEDS_MLXCPLD is not set
# CONFIG_LEDS_MLXREG is not setCONFIG_LEDS_USER=y
# CONFIG_LEDS_TI_LMU_COMMON is not setCONFIG_LEDS_TPS6105X=yCONFIG_LEDS_IP30=yCONFIG_LEDS_ACER_A500=y
#
# Flash and Torch LED drivers
#CONFIG_LEDS_AS3645A=yCONFIG_LEDS_LM3601X=yCONFIG_LEDS_RT8515=y
# CONFIG_LEDS_SGM3140 is not set
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=yCONFIG_LEDS_TRIGGER_ONESHOT=yCONFIG_LEDS_TRIGGER_DISK=y
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
# CONFIG_LEDS_TRIGGER_CPU is not setCONFIG_LEDS_TRIGGER_ACTIVITY=yCONFIG_LEDS_TRIGGER_GPIO=y
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
#
# iptables trigger is under Netfilter config (LED target) # # CONFIG_LEDS_TRIGGER_TRANSIENT is not set CONFIG_LEDS_TRIGGER_CAMERA=y # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set CONFIG_LEDS_TRIGGER_PATTERN=y CONFIG_LEDS_TRIGGER_AUDIO=y # CONFIG_LEDS_TRIGGER_TTY is not set
#
# Simple LED drivers
#CONFIG_ACCESSIBILITY=yCONFIG_A11Y_BRAILLE_CONSOLE=y
#
# Speakup console speech
#CONFIG_SPEAKUP=yCONFIG_SPEAKUP_SERIALIO=y
# CONFIG_SPEAKUP_SYNTH_ACNTSA is not setCONFIG_SPEAKUP_SYNTH_ACNTPC=y
# CONFIG_SPEAKUP_SYNTH_APOLLO is not setCONFIG_SPEAKUP_SYNTH_AUDPTR=yCONFIG_SPEAKUP_SYNTH_BNS=y
# CONFIG_SPEAKUP_SYNTH_DECTLK is not setCONFIG_SPEAKUP_SYNTH_DECEXT=yCONFIG_SPEAKUP_SYNTH_DTLK=yCONFIG_SPEAKUP_SYNTH_KEYPC=yCONFIG_SPEAKUP_SYNTH_LTLK=y
# CONFIG_SPEAKUP_SYNTH_SOFT is not setCONFIG_SPEAKUP_SYNTH_SPKOUT=yCONFIG_SPEAKUP_SYNTH_TXPRT=yCONFIG_SPEAKUP_SYNTH_DUMMY=y
# end of Speakup console speech
CONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_EDAC=yCONFIG_EDAC_LEGACY_SYSFS=yCONFIG_EDAC_DEBUG=yCONFIG_EDAC_AL_MC=y
# CONFIG_EDAC_E752X is not set
# CONFIG_EDAC_I82975X is not setCONFIG_EDAC_I3000=y
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not setCONFIG_EDAC_X38=y
# CONFIG_EDAC_I5400 is not setCONFIG_EDAC_I5000=yCONFIG_EDAC_I5100=y
# CONFIG_EDAC_I7300 is not setCONFIG_EDAC_XGENE=yCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=y
# CONFIG_RTC_CLASS is not setCONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_ASYNC_TX_ENABLE_CHANNEL_SWITCH=yCONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_ALTERA_MSGDMA=y
# CONFIG_AXI_DMAC is not setCONFIG_DMA_JZ4780=yCONFIG_DMA_SA11X0=yCONFIG_DMA_SUN6I=yCONFIG_DW_AXI_DMAC=y
# CONFIG_EP93XX_DMA is not setCONFIG_HISI_DMA=y
# CONFIG_IMG_MDC_DMA is not setCONFIG_INTEL_IDMA64=y
# CONFIG_INTEL_IDXD is not set
# CONFIG_INTEL_IDXD_COMPAT is not setCONFIG_INTEL_IOATDMA=yCONFIG_INTEL_IOP_ADMA=yCONFIG_K3_DMA=yCONFIG_MCF_EDMA=y
# CONFIG_MMP_PDMA is not set
# CONFIG_MMP_TDMA is not setCONFIG_MV_XOR=y
# CONFIG_MXS_DMA is not setCONFIG_NBPFAXI_DMA=y
# CONFIG_PCH_DMA is not setCONFIG_PLX_DMA=y
# CONFIG_STM32_DMA is not set
# CONFIG_STM32_DMAMUX is not setCONFIG_SPRD_DMA=y
# CONFIG_S3C24XX_DMAC is not setCONFIG_TEGRA20_APB_DMA=yCONFIG_TEGRA210_ADMA=yCONFIG_TIMB_DMA=yCONFIG_XGENE_DMA=y
# CONFIG_XILINX_ZYNQMP_DMA is not setCONFIG_MTK_HSDMA=yCONFIG_MTK_CQDMA=yCONFIG_AMD_PTDMA=yCONFIG_QCOM_HIDMA_MGMT=yCONFIG_QCOM_HIDMA=yCONFIG_DW_DMAC_CORE=y
# CONFIG_DW_DMAC is not setCONFIG_DW_DMAC_PCI=yCONFIG_DW_EDMA=y
# CONFIG_DW_EDMA_PCIE is not setCONFIG_SF_PDMA=yCONFIG_RENESAS_DMA=yCONFIG_SH_DMAE_BASE=yCONFIG_SH_DMAE=yCONFIG_RCAR_DMAC=yCONFIG_RENESAS_USB_DMAC=y
# CONFIG_RZ_DMAC is not setCONFIG_TI_EDMA=y
# CONFIG_DMA_OMAP is not setCONFIG_TI_DMA_CROSSBAR=y
# CONFIG_INTEL_LDMA is not set
#
# DMA Clients
#CONFIG_ASYNC_TX_DMA=yCONFIG_DMATEST=yCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_MOVE_NOTIFY is not setCONFIG_DMABUF_DEBUG=yCONFIG_DMABUF_SELFTESTS=y
# CONFIG_DMABUF_HEAPS is not set
# CONFIG_DMABUF_SYSFS_STATS is not set
# end of DMABUF options
CONFIG_DCA=yCONFIG_AUXDISPLAY=yCONFIG_CHARLCD=yCONFIG_LINEDISP=yCONFIG_HD44780_COMMON=yCONFIG_HD44780=yCONFIG_IMG_ASCII_LCD=y
# CONFIG_HT16K33 is not setCONFIG_LCD2S=yCONFIG_PANEL_CHANGE_MESSAGE=yCONFIG_PANEL_BOOT_MESSAGE=""
# CONFIG_CHARLCD_BL_OFF is not set
# CONFIG_CHARLCD_BL_ON is not setCONFIG_CHARLCD_BL_FLASH=y
# CONFIG_UIO is not setCONFIG_VFIO=yCONFIG_VFIO_IOMMU_TYPE1=yCONFIG_VFIO_VIRQFD=yCONFIG_VFIO_NOIOMMU=yCONFIG_VFIO_PCI_CORE=yCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=yCONFIG_VFIO_PCI=y
# CONFIG_VFIO_PCI_VGA is not set
# CONFIG_VFIO_PCI_IGD is not setCONFIG_VFIO_PLATFORM=yCONFIG_VFIO_AMBA=yCONFIG_VFIO_PLATFORM_CALXEDAXGMAC_RESET=y
# CONFIG_VFIO_PLATFORM_AMDXGBE_RESET is not setCONFIG_VFIO_PLATFORM_BCMFLEXRM_RESET=yCONFIG_VFIO_MDEV=yCONFIG_IRQ_BYPASS_MANAGER=yCONFIG_VIRT_DRIVERS=yCONFIG_VBOXGUEST=y
# CONFIG_NITRO_ENCLAVES is not setCONFIG_ACRN_HSM=yCONFIG_VIRTIO=yCONFIG_ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS=yCONFIG_VIRTIO_PCI_LIB=yCONFIG_VIRTIO_PCI_LIB_LEGACY=y
# CONFIG_VIRTIO_MENU is not setCONFIG_VDPA=y
# CONFIG_VDPA_SIM is not setCONFIG_VDPA_USER=yCONFIG_IFCVF=yCONFIG_VP_VDPA=yCONFIG_ALIBABA_ENI_VDPA=yCONFIG_VHOST_IOTLB=y
# CONFIG_VHOST_MENU is not set
#
# Microsoft Hyper-V guest support
#
# end of Microsoft Hyper-V guest support
CONFIG_GREYBUS=y
# CONFIG_COMEDI is not set
# CONFIG_STAGING is not set
# CONFIG_X86_PLATFORM_DEVICES is not setCONFIG_PMC_ATOM=yCONFIG_CHROME_PLATFORMS=y
# CONFIG_CHROMEOS_LAPTOP is not setCONFIG_CHROMEOS_PSTORE=yCONFIG_CROS_EC=y
# CONFIG_CROS_EC_I2C is not setCONFIG_CROS_EC_PROTO=yCONFIG_CROS_EC_CHARDEV=yCONFIG_CROS_EC_LIGHTBAR=yCONFIG_CROS_EC_DEBUGFS=y
# CONFIG_CROS_EC_SENSORHUB is not set
# CONFIG_CROS_EC_SYSFS is not setCONFIG_CROS_USBPD_NOTIFY=yCONFIG_MELLANOX_PLATFORM=y
# CONFIG_MLXREG_HOTPLUG is not setCONFIG_MLXREG_IO=y
# CONFIG_MLXREG_LC is not setCONFIG_OLPC_XO175=y
# CONFIG_SURFACE_PLATFORMS is not setCONFIG_HAVE_CLK=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=yCONFIG_COMMON_CLK_WM831X=y
#
# Clock driver for ARM Reference designs
#
# CONFIG_CLK_ICST is not set
# CONFIG_CLK_SP810 is not set
# end of Clock driver for ARM Reference designs
CONFIG_CLK_HSDK=y
# CONFIG_COMMON_CLK_APPLE_NCO is not setCONFIG_COMMON_CLK_MAX77686=yCONFIG_COMMON_CLK_MAX9485=yCONFIG_COMMON_CLK_SCMI=y
# CONFIG_COMMON_CLK_SCPI is not set
# CONFIG_COMMON_CLK_SI5341 is not setCONFIG_COMMON_CLK_SI5351=yCONFIG_COMMON_CLK_SI544=yCONFIG_COMMON_CLK_BM1880=y
# CONFIG_COMMON_CLK_CDCE706 is not setCONFIG_COMMON_CLK_TPS68470=yCONFIG_COMMON_CLK_CS2000_CP=yCONFIG_COMMON_CLK_FSL_FLEXSPI=y
# CONFIG_COMMON_CLK_FSL_SAI is not set
# CONFIG_COMMON_CLK_GEMINI is not set
# CONFIG_COMMON_CLK_ASPEED is not setCONFIG_COMMON_CLK_S2MPS11=yCONFIG_CLK_LS1028A_PLLDIG=yCONFIG_COMMON_CLK_XGENE=y
# CONFIG_COMMON_CLK_PALMAS is not setCONFIG_COMMON_CLK_PWM=y
# CONFIG_COMMON_CLK_OXNAS is not setCONFIG_COMMON_CLK_MMP2_AUDIO=y
# CONFIG_CLK_ACTIONS is not set
# CONFIG_CLK_BAIKAL_T1 is not set
# CONFIG_CLK_BCM2711_DVP is not set
# CONFIG_CLK_BCM2835 is not set
# CONFIG_CLK_BCM_63XX is not set
# CONFIG_CLK_BCM_63XX_GATE is not set
# CONFIG_CLK_BCM_KONA is not setCONFIG_COMMON_CLK_IPROC=yCONFIG_CLK_BCM_CYGNUS=y
# CONFIG_CLK_BCM_HR2 is not setCONFIG_CLK_BCM_NSP=yCONFIG_CLK_BCM_NS2=y
# CONFIG_CLK_BCM_SR is not set
# CONFIG_CLK_RASPBERRYPI is not setCONFIG_COMMON_CLK_HI3516CV300=yCONFIG_COMMON_CLK_HI3519=y
# CONFIG_COMMON_CLK_HI3559A is not set
# CONFIG_COMMON_CLK_HI3660 is not setCONFIG_COMMON_CLK_HI3670=y
# CONFIG_COMMON_CLK_HI3798CV200 is not set
# CONFIG_COMMON_CLK_HI6220 is not setCONFIG_RESET_HISI=yCONFIG_COMMON_CLK_BOSTON=yCONFIG_MXC_CLK=yCONFIG_CLK_IMX8MM=yCONFIG_CLK_IMX8MN=y
# CONFIG_CLK_IMX8MP is not setCONFIG_CLK_IMX8MQ=yCONFIG_CLK_IMX8ULP=yCONFIG_CLK_IMX93=y
#
# Ingenic SoCs drivers
#CONFIG_INGENIC_CGU_COMMON=y
# CONFIG_INGENIC_CGU_JZ4740 is not setCONFIG_INGENIC_CGU_JZ4725B=yCONFIG_INGENIC_CGU_JZ4760=yCONFIG_INGENIC_CGU_JZ4770=yCONFIG_INGENIC_CGU_JZ4780=y
# CONFIG_INGENIC_CGU_X1000 is not setCONFIG_INGENIC_CGU_X1830=y
# CONFIG_INGENIC_TCU_CLK is not set
# end of Ingenic SoCs drivers
CONFIG_TI_SYSCON_CLK=y
#
# Clock driver for MediaTek SoC
#CONFIG_COMMON_CLK_MEDIATEK=yCONFIG_COMMON_CLK_MT2701=yCONFIG_COMMON_CLK_MT2701_MMSYS=y
# CONFIG_COMMON_CLK_MT2701_IMGSYS is not setCONFIG_COMMON_CLK_MT2701_VDECSYS=y
# CONFIG_COMMON_CLK_MT2701_HIFSYS is not set
# CONFIG_COMMON_CLK_MT2701_ETHSYS is not setCONFIG_COMMON_CLK_MT2701_BDPSYS=y
# CONFIG_COMMON_CLK_MT2701_AUDSYS is not setCONFIG_COMMON_CLK_MT2701_G3DSYS=yCONFIG_COMMON_CLK_MT2712=yCONFIG_COMMON_CLK_MT2712_BDPSYS=yCONFIG_COMMON_CLK_MT2712_IMGSYS=y
# CONFIG_COMMON_CLK_MT2712_JPGDECSYS is not set
# CONFIG_COMMON_CLK_MT2712_MFGCFG is not set
# CONFIG_COMMON_CLK_MT2712_MMSYS is not setCONFIG_COMMON_CLK_MT2712_VDECSYS=y
# CONFIG_COMMON_CLK_MT2712_VENCSYS is not set
# CONFIG_COMMON_CLK_MT6765 is not setCONFIG_COMMON_CLK_MT6779=yCONFIG_COMMON_CLK_MT6779_MMSYS=y
# CONFIG_COMMON_CLK_MT6779_IMGSYS is not setCONFIG_COMMON_CLK_MT6779_IPESYS=yCONFIG_COMMON_CLK_MT6779_CAMSYS=yCONFIG_COMMON_CLK_MT6779_VDECSYS=yCONFIG_COMMON_CLK_MT6779_VENCSYS=yCONFIG_COMMON_CLK_MT6779_MFGCFG=yCONFIG_COMMON_CLK_MT6779_AUDSYS=y
# CONFIG_COMMON_CLK_MT6797 is not setCONFIG_COMMON_CLK_MT7622=yCONFIG_COMMON_CLK_MT7622_ETHSYS=yCONFIG_COMMON_CLK_MT7622_HIFSYS=yCONFIG_COMMON_CLK_MT7622_AUDSYS=yCONFIG_COMMON_CLK_MT7629=y
# CONFIG_COMMON_CLK_MT7629_ETHSYS is not setCONFIG_COMMON_CLK_MT7629_HIFSYS=y
# CONFIG_COMMON_CLK_MT7986 is not setCONFIG_COMMON_CLK_MT8135=yCONFIG_COMMON_CLK_MT8167=yCONFIG_COMMON_CLK_MT8167_AUDSYS=yCONFIG_COMMON_CLK_MT8167_IMGSYS=y
# CONFIG_COMMON_CLK_MT8167_MFGCFG is not setCONFIG_COMMON_CLK_MT8167_MMSYS=yCONFIG_COMMON_CLK_MT8167_VDECSYS=y
# CONFIG_COMMON_CLK_MT8173 is not setCONFIG_COMMON_CLK_MT8183=yCONFIG_COMMON_CLK_MT8183_AUDIOSYS=yCONFIG_COMMON_CLK_MT8183_CAMSYS=y
# CONFIG_COMMON_CLK_MT8183_IMGSYS is not set
# CONFIG_COMMON_CLK_MT8183_IPU_CORE0 is not set
# CONFIG_COMMON_CLK_MT8183_IPU_CORE1 is not set
# CONFIG_COMMON_CLK_MT8183_IPU_ADL is not setCONFIG_COMMON_CLK_MT8183_IPU_CONN=y
# CONFIG_COMMON_CLK_MT8183_MFGCFG is not set
# CONFIG_COMMON_CLK_MT8183_MMSYS is not set
# CONFIG_COMMON_CLK_MT8183_VDECSYS is not setCONFIG_COMMON_CLK_MT8183_VENCSYS=yCONFIG_COMMON_CLK_MT8192=yCONFIG_COMMON_CLK_MT8192_AUDSYS=y
# CONFIG_COMMON_CLK_MT8192_CAMSYS is not setCONFIG_COMMON_CLK_MT8192_IMGSYS=yCONFIG_COMMON_CLK_MT8192_IMP_IIC_WRAP=yCONFIG_COMMON_CLK_MT8192_IPESYS=y
# CONFIG_COMMON_CLK_MT8192_MDPSYS is not set
# CONFIG_COMMON_CLK_MT8192_MFGCFG is not set
# CONFIG_COMMON_CLK_MT8192_MMSYS is not set
# CONFIG_COMMON_CLK_MT8192_MSDC is not setCONFIG_COMMON_CLK_MT8192_SCP_ADSP=y
# CONFIG_COMMON_CLK_MT8192_VDECSYS is not setCONFIG_COMMON_CLK_MT8192_VENCSYS=yCONFIG_COMMON_CLK_MT8195=y
# CONFIG_COMMON_CLK_MT8516 is not set
# end of Clock driver for MediaTek SoC
#
# Clock support for Amlogic platforms
#
# CONFIG_COMMON_CLK_AXG_AUDIO is not set
# end of Clock support for Amlogic platforms
CONFIG_MSTAR_MSC313_MPLL=yCONFIG_MCHP_CLK_MPFS=yCONFIG_COMMON_CLK_PISTACHIO=yCONFIG_CLK_MT7621=yCONFIG_CLK_RENESAS=y
# CONFIG_CLK_EMEV2 is not setCONFIG_CLK_RZA1=y
# CONFIG_CLK_R7S9210 is not set
# CONFIG_CLK_R8A73A4 is not set
# CONFIG_CLK_R8A7740 is not setCONFIG_CLK_R8A7742=yCONFIG_CLK_R8A7743=yCONFIG_CLK_R8A7745=y
# CONFIG_CLK_R8A77470 is not setCONFIG_CLK_R8A774A1=y
# CONFIG_CLK_R8A774B1 is not setCONFIG_CLK_R8A774C0=y
# CONFIG_CLK_R8A774E1 is not set
# CONFIG_CLK_R8A7778 is not set
# CONFIG_CLK_R8A7779 is not setCONFIG_CLK_R8A7790=y
# CONFIG_CLK_R8A7791 is not setCONFIG_CLK_R8A7792=y
# CONFIG_CLK_R8A7794 is not setCONFIG_CLK_R8A7795=y
# CONFIG_CLK_R8A77960 is not setCONFIG_CLK_R8A77961=y
# CONFIG_CLK_R8A77965 is not set
# CONFIG_CLK_R8A77970 is not setCONFIG_CLK_R8A77980=yCONFIG_CLK_R8A77990=yCONFIG_CLK_R8A77995=y
# CONFIG_CLK_R8A779A0 is not set
# CONFIG_CLK_R8A779F0 is not set
# CONFIG_CLK_R9A06G032 is not setCONFIG_CLK_R9A07G044=yCONFIG_CLK_R9A07G054=yCONFIG_CLK_SH73A0=yCONFIG_CLK_RCAR_CPG_LIB=yCONFIG_CLK_RCAR_GEN2_CPG=yCONFIG_CLK_RCAR_GEN3_CPG=y
# CONFIG_CLK_RCAR_GEN4_CPG is not setCONFIG_CLK_RCAR_USB2_CLOCK_SEL=yCONFIG_CLK_RZG2L=yCONFIG_CLK_RENESAS_CPG_MSSR=yCONFIG_CLK_RENESAS_CPG_MSTP=yCONFIG_CLK_RENESAS_DIV6=y
# CONFIG_COMMON_CLK_SAMSUNG is not set
# CONFIG_S3C2410_COMMON_CLK is not set
# CONFIG_S3C2412_COMMON_CLK is not set
# CONFIG_S3C2443_COMMON_CLK is not set
# CONFIG_CLK_SIFIVE is not setCONFIG_CLK_INTEL_SOCFPGA=y
# CONFIG_CLK_INTEL_SOCFPGA32 is not set
# CONFIG_CLK_INTEL_SOCFPGA64 is not setCONFIG_SPRD_COMMON_CLK=yCONFIG_SPRD_SC9860_CLK=yCONFIG_SPRD_SC9863A_CLK=yCONFIG_CLK_STARFIVE_JH7100=yCONFIG_CLK_STARFIVE_JH7100_AUDIO=y
# CONFIG_CLK_SUNXI is not setCONFIG_SUNXI_CCU=yCONFIG_SUNIV_F1C100S_CCU=y
# CONFIG_SUN20I_D1_CCU is not set
# CONFIG_SUN20I_D1_R_CCU is not setCONFIG_SUN50I_A64_CCU=y
# CONFIG_SUN50I_A100_CCU is not setCONFIG_SUN50I_A100_R_CCU=y
# CONFIG_SUN50I_H6_CCU is not set
# CONFIG_SUN50I_H616_CCU is not setCONFIG_SUN50I_H6_R_CCU=yCONFIG_SUN4I_A10_CCU=yCONFIG_SUN5I_CCU=yCONFIG_SUN6I_A31_CCU=yCONFIG_SUN6I_RTC_CCU=yCONFIG_SUN8I_A23_CCU=y
# CONFIG_SUN8I_A33_CCU is not setCONFIG_SUN8I_A83T_CCU=yCONFIG_SUN8I_H3_CCU=y
# CONFIG_SUN8I_V3S_CCU is not setCONFIG_SUN8I_DE2_CCU=y
# CONFIG_SUN8I_R40_CCU is not set
# CONFIG_SUN9I_A80_CCU is not setCONFIG_SUN8I_R_CCU=yCONFIG_COMMON_CLK_TI_ADPLL=y
# CONFIG_COMMON_CLK_VISCONTI is not setCONFIG_XILINX_VCU=yCONFIG_COMMON_CLK_ZYNQMP=yCONFIG_CLK_KUNIT_TEST=yCONFIG_CLK_GATE_KUNIT_TEST=y
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#CONFIG_TIMER_OF=yCONFIG_TIMER_PROBE=yCONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=yCONFIG_CLKSRC_MMIO=yCONFIG_BCM2835_TIMER=yCONFIG_BCM_KONA_TIMER=y
# CONFIG_DAVINCI_TIMER is not setCONFIG_DIGICOLOR_TIMER=y
# CONFIG_DW_APB_TIMER is not setCONFIG_FTTMR010_TIMER=y
# CONFIG_IXP4XX_TIMER is not setCONFIG_MESON6_TIMER=yCONFIG_OWL_TIMER=yCONFIG_RDA_TIMER=y
# CONFIG_SUN4I_TIMER is not set
# CONFIG_SUN5I_HSTIMER is not setCONFIG_TEGRA_TIMER=y
# CONFIG_VT8500_TIMER is not set
# CONFIG_NPCM7XX_TIMER is not setCONFIG_CADENCE_TTC_TIMER=yCONFIG_ASM9260_TIMER=y
# CONFIG_CLKSRC_DBX500_PRCMU is not set
# CONFIG_CLPS711X_TIMER is not set
# CONFIG_MXS_TIMER is not set
# CONFIG_NSPIRE_TIMER is not set
# CONFIG_INTEGRATOR_AP_TIMER is not set
# CONFIG_CLKSRC_PISTACHIO is not setCONFIG_CLKSRC_STM32_LP=yCONFIG_ARMV7M_SYSTICK=y
# CONFIG_ATMEL_PIT is not set
# CONFIG_ATMEL_ST is not setCONFIG_CLKSRC_SAMSUNG_PWM=y
# CONFIG_FSL_FTM_TIMER is not setCONFIG_OXNAS_RPS_TIMER=yCONFIG_MTK_TIMER=y
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_RENESAS_OSTM is not set
# CONFIG_SH_TIMER_TMU is not setCONFIG_EM_TIMER_STI=yCONFIG_CLKSRC_PXA=y
# CONFIG_H8300_TMR8 is not setCONFIG_H8300_TMR16=yCONFIG_H8300_TPU=yCONFIG_TIMER_IMX_SYS_CTR=yCONFIG_CLKSRC_ST_LPC=y
# CONFIG_MSC313E_TIMER is not set
# CONFIG_INGENIC_TIMER is not set
# CONFIG_INGENIC_SYSOST is not setCONFIG_INGENIC_OST=yCONFIG_MICROCHIP_PIT64B=y
# end of Clock Source drivers
# CONFIG_MAILBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#CONFIG_IOMMU_IO_PGTABLE=y CONFIG_IOMMU_IO_PGTABLE_LPAE=y CONFIG_IOMMU_IO_PGTABLE_LPAE_SELFTEST=y CONFIG_IOMMU_IO_PGTABLE_ARMV7S=y
# CONFIG_IOMMU_IO_PGTABLE_ARMV7S_SELFTEST is not set
# end of Generic IOMMU Pagetable Support
CONFIG_IOMMU_DEBUGFS=y
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not setCONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not setCONFIG_IOMMU_DMA=yCONFIG_OMAP_IOMMU=yCONFIG_OMAP_IOMMU_DEBUG=y
# CONFIG_ROCKCHIP_IOMMU is not set
# CONFIG_SUN50I_IOMMU is not set
# CONFIG_EXYNOS_IOMMU is not setCONFIG_IPMMU_VMSA=yCONFIG_APPLE_DART=y
# CONFIG_ARM_SMMU is not set
# CONFIG_S390_CCW_IOMMU is not set
# CONFIG_S390_AP_IOMMU is not setCONFIG_MTK_IOMMU=yCONFIG_QCOM_IOMMU=yCONFIG_VIRTIO_IOMMU=yCONFIG_SPRD_IOMMU=y
#
# Remoteproc drivers
#CONFIG_REMOTEPROC=yCONFIG_REMOTEPROC_CDEV=y
# CONFIG_INGENIC_VPU_RPROC is not set
# CONFIG_MTK_SCP is not set
# CONFIG_MESON_MX_AO_ARC_REMOTEPROC is not set
# CONFIG_RCAR_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
#
# SOC (System On Chip) specific Drivers
#CONFIG_OWL_PM_DOMAINS_HELPER=yCONFIG_OWL_PM_DOMAINS=y
#
# Amlogic SoC drivers
#
# CONFIG_MESON_CANVAS is not setCONFIG_MESON_CLK_MEASURE=y
# CONFIG_MESON_GX_SOCINFO is not setCONFIG_MESON_MX_SOCINFO=y
# end of Amlogic SoC drivers
#
# Apple SoC drivers
#CONFIG_APPLE_PMGR_PWRSTATE=y
# end of Apple SoC drivers
#
# ASPEED SoC drivers
#
# CONFIG_ASPEED_LPC_CTRL is not setCONFIG_ASPEED_LPC_SNOOP=yCONFIG_ASPEED_UART_ROUTING=y
# CONFIG_ASPEED_P2A_CTRL is not set
# CONFIG_ASPEED_SOCINFO is not set
# end of ASPEED SoC drivers
# CONFIG_AT91_SOC_ID is not setCONFIG_AT91_SOC_SFR=y
#
# Broadcom SoC drivers
#
# CONFIG_SOC_BCM63XX is not set
# CONFIG_SOC_BRCMSTB is not set
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#CONFIG_FSL_GUTS=y
# end of NXP/Freescale QorIQ SoC drivers
#
# i.MX SoC drivers
#
# CONFIG_SOC_IMX8M is not set
# end of i.MX SoC drivers
#
# IXP4xx SoC drivers
#CONFIG_IXP4XX_QMGR=y
# CONFIG_IXP4XX_NPE is not set
# end of IXP4xx SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#
# CONFIG_LITEX_SOC_CONTROLLER is not set
# end of Enable LiteX SoC Builder specific drivers
#
# MediaTek SoC drivers
#
# CONFIG_MTK_CMDQ is not setCONFIG_MTK_DEVAPC=y
# CONFIG_MTK_INFRACFG is not setCONFIG_MTK_PMIC_WRAP=y
# CONFIG_MTK_SCPSYS is not setCONFIG_MTK_SCPSYS_PM_DOMAINS=yCONFIG_MTK_MMSYS=y
# end of MediaTek SoC drivers
#
# Qualcomm SoC drivers
#CONFIG_QCOM_GENI_SE=y
# CONFIG_QCOM_GSBI is not set
# CONFIG_QCOM_LLCC is not setCONFIG_QCOM_RPMH=yCONFIG_QCOM_SPM=y
# end of Qualcomm SoC drivers
CONFIG_SOC_RENESAS=y
# CONFIG_RST_RCAR is not setCONFIG_SYSC_RCAR=yCONFIG_SYSC_RCAR_GEN4=yCONFIG_SYSC_R8A77995=yCONFIG_SYSC_R8A7794=y
# CONFIG_SYSC_R8A77990 is not setCONFIG_SYSC_R8A7779=y
# CONFIG_SYSC_R8A7790 is not set
# CONFIG_SYSC_R8A7795 is not setCONFIG_SYSC_R8A7791=y
# CONFIG_SYSC_R8A77965 is not setCONFIG_SYSC_R8A77960=yCONFIG_SYSC_R8A77961=y
# CONFIG_SYSC_R8A779F0 is not setCONFIG_SYSC_R8A7792=y
# CONFIG_SYSC_R8A77980 is not set
# CONFIG_SYSC_R8A77970 is not setCONFIG_SYSC_R8A779A0=yCONFIG_SYSC_RMOBILE=y
# CONFIG_SYSC_R8A77470 is not setCONFIG_SYSC_R8A7745=yCONFIG_SYSC_R8A7742=yCONFIG_SYSC_R8A7743=y
# CONFIG_SYSC_R8A774C0 is not setCONFIG_SYSC_R8A774E1=y
# CONFIG_SYSC_R8A774A1 is not setCONFIG_SYSC_R8A774B1=y
# CONFIG_ROCKCHIP_GRF is not set
# CONFIG_ROCKCHIP_PM_DOMAINS is not set
# CONFIG_SOC_SAMSUNG is not setCONFIG_SOC_TEGRA20_VOLTAGE_COUPLER=y
# CONFIG_SOC_TEGRA30_VOLTAGE_COUPLER is not set
# CONFIG_SOC_TI is not set
# CONFIG_UX500_SOC_ID is not set
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
CONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=yCONFIG_DEVFREQ_GOV_PERFORMANCE=yCONFIG_DEVFREQ_GOV_POWERSAVE=yCONFIG_DEVFREQ_GOV_USERSPACE=yCONFIG_DEVFREQ_GOV_PASSIVE=y
#
# DEVFREQ Drivers
#CONFIG_ARM_EXYNOS_BUS_DEVFREQ=y
# CONFIG_ARM_IMX_BUS_DEVFREQ is not setCONFIG_ARM_TEGRA_DEVFREQ=yCONFIG_ARM_SUN8I_A33_MBUS_DEVFREQ=yCONFIG_PM_DEVFREQ_EVENT=yCONFIG_DEVFREQ_EVENT_EXYNOS_NOCP=yCONFIG_DEVFREQ_EVENT_EXYNOS_PPMU=yCONFIG_DEVFREQ_EVENT_ROCKCHIP_DFI=yCONFIG_EXTCON=y
#
# Extcon Device Drivers
#CONFIG_EXTCON_FSA9480=yCONFIG_EXTCON_GPIO=y
# CONFIG_EXTCON_MAX14577 is not setCONFIG_EXTCON_MAX3355=yCONFIG_EXTCON_MAX77693=y
# CONFIG_EXTCON_MAX77843 is not set
# CONFIG_EXTCON_PALMAS is not set
# CONFIG_EXTCON_PTN5150 is not setCONFIG_EXTCON_QCOM_SPMI_MISC=yCONFIG_EXTCON_RT8973A=yCONFIG_EXTCON_SM5502=yCONFIG_EXTCON_USB_GPIO=yCONFIG_EXTCON_USBC_CROS_EC=y
# CONFIG_EXTCON_USBC_TUSB320 is not setCONFIG_MEMORY=yCONFIG_DDR=yCONFIG_BRCMSTB_DPFE=y
# CONFIG_BT1_L2_CTL is not setCONFIG_TI_EMIF=y
# CONFIG_FPGA_DFL_EMIF is not setCONFIG_FSL_CORENET_CF=yCONFIG_FSL_IFC=yCONFIG_MTK_SMI=yCONFIG_DA8XX_DDRCTL=y
# CONFIG_RENESAS_RPCIF is not set
# CONFIG_STM32_FMC2_EBI is not setCONFIG_SAMSUNG_MC=yCONFIG_EXYNOS5422_DMC=yCONFIG_EXYNOS_SROM=yCONFIG_TEGRA_MC=yCONFIG_TEGRA20_EMC=yCONFIG_TEGRA30_EMC=yCONFIG_TEGRA124_EMC=y
# CONFIG_TEGRA210_EMC is not set
# CONFIG_IIO is not setCONFIG_NTB=yCONFIG_NTB_MSI=y
# CONFIG_NTB_AMD is not set
# CONFIG_NTB_IDT is not set
# CONFIG_NTB_INTEL is not set
# CONFIG_NTB_SWITCHTEC is not set
# CONFIG_NTB_PINGPONG is not set
# CONFIG_NTB_TOOL is not set
# CONFIG_NTB_PERF is not setCONFIG_NTB_MSI_TEST=yCONFIG_NTB_TRANSPORT=yCONFIG_VME_BUS=y
#
# VME Bridge Drivers
#CONFIG_VME_CA91CX42=yCONFIG_VME_TSI148=yCONFIG_VME_FAKE=y
#
# VME Board Drivers
#CONFIG_VMIVME_7805=y
#
# VME Device Drivers
#CONFIG_PWM=yCONFIG_PWM_SYSFS=yCONFIG_PWM_BCM_IPROC=yCONFIG_PWM_BCM_KONA=y
# CONFIG_PWM_BCM2835 is not setCONFIG_PWM_BERLIN=yCONFIG_PWM_BRCMSTB=yCONFIG_PWM_CLPS711X=yCONFIG_PWM_CROS_EC=yCONFIG_PWM_DWC=yCONFIG_PWM_EP93XX=y
# CONFIG_PWM_HIBVT is not setCONFIG_PWM_IMG=yCONFIG_PWM_IMX1=yCONFIG_PWM_IMX27=yCONFIG_PWM_IMX_TPM=yCONFIG_PWM_INTEL_LGM=yCONFIG_PWM_IQS620A=y
# CONFIG_PWM_JZ4740 is not set
# CONFIG_PWM_KEEMBAY is not set
# CONFIG_PWM_LPC18XX_SCT is not setCONFIG_PWM_LPC32XX=yCONFIG_PWM_LPSS=yCONFIG_PWM_LPSS_PCI=y
# CONFIG_PWM_LPSS_PLATFORM is not set
# CONFIG_PWM_MESON is not setCONFIG_PWM_MTK_DISP=yCONFIG_PWM_MEDIATEK=yCONFIG_PWM_NTXEC=y
# CONFIG_PWM_PCA9685 is not set
# CONFIG_PWM_PXA is not setCONFIG_PWM_RASPBERRYPI_POE=yCONFIG_PWM_RCAR=yCONFIG_PWM_RENESAS_TPU=yCONFIG_PWM_ROCKCHIP=yCONFIG_PWM_SAMSUNG=yCONFIG_PWM_SL28CPLD=yCONFIG_PWM_SPRD=y
# CONFIG_PWM_STM32 is not setCONFIG_PWM_STM32_LP=yCONFIG_PWM_SUN4I=y
# CONFIG_PWM_TEGRA is not setCONFIG_PWM_TIECAP=yCONFIG_PWM_TIEHRPWM=yCONFIG_PWM_VISCONTI=y
# CONFIG_PWM_VT8500 is not set
#
# IRQ chip support
#CONFIG_AL_FIC=yCONFIG_MADERA_IRQ=y
# CONFIG_RENESAS_INTC_IRQPIN is not setCONFIG_RENESAS_IRQC=y
# CONFIG_RENESAS_RZA1_IRQC is not setCONFIG_SL28CPLD_INTC=yCONFIG_TS4800_IRQ=y
# CONFIG_INGENIC_TCU_IRQ is not set
# CONFIG_RENESAS_H8S_INTC is not setCONFIG_IRQ_UNIPHIER_AIDET=yCONFIG_MESON_IRQ_GPIO=yCONFIG_IMX_IRQSTEER=yCONFIG_IMX_INTMUX=yCONFIG_EXYNOS_IRQ_COMBINER=yCONFIG_LOONGSON_PCH_PIC=yCONFIG_LOONGSON_PCH_MSI=y
# CONFIG_MST_IRQ is not set
# CONFIG_MCHP_EIC is not set
# end of IRQ chip support
# CONFIG_IPACK_BUS is not setCONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_ATH79 is not set
# CONFIG_RESET_AXS10X is not set
# CONFIG_RESET_BCM6345 is not setCONFIG_RESET_BERLIN=yCONFIG_RESET_BRCMSTB=yCONFIG_RESET_BRCMSTB_RESCAL=yCONFIG_RESET_HSDK=yCONFIG_RESET_IMX7=y
# CONFIG_RESET_LANTIQ is not set
# CONFIG_RESET_LPC18XX is not set
# CONFIG_RESET_MCHP_SPARX5 is not setCONFIG_RESET_MESON=y
# CONFIG_RESET_MESON_AUDIO_ARB is not setCONFIG_RESET_NPCM=y
# CONFIG_RESET_PISTACHIO is not setCONFIG_RESET_QCOM_AOSS=yCONFIG_RESET_QCOM_PDC=yCONFIG_RESET_RASPBERRYPI=yCONFIG_RESET_RZG2L_USBPHY_CTRL=y
# CONFIG_RESET_SCMI is not set
# CONFIG_RESET_SIMPLE is not set
# CONFIG_RESET_SOCFPGA is not set
# CONFIG_RESET_STARFIVE_JH7100 is not set
# CONFIG_RESET_SUNXI is not setCONFIG_RESET_TI_SYSCON=yCONFIG_RESET_TN48M_CPLD=y
# CONFIG_RESET_ZYNQ is not setCONFIG_COMMON_RESET_HI3660=yCONFIG_COMMON_RESET_HI6220=y
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=yCONFIG_GENERIC_PHY_MIPI_DPHY=yCONFIG_PHY_PISTACHIO_USB=yCONFIG_PHY_CAN_TRANSCEIVER=yCONFIG_PHY_SUN6I_MIPI_DPHY=y
#
# PHY drivers for Broadcom platforms
#CONFIG_PHY_BCM63XX_USBH=yCONFIG_BCM_KONA_USB2_PHY=y
# CONFIG_PHY_NS2_PCIE is not set
# end of PHY drivers for Broadcom platforms
CONFIG_PHY_HI6220_USB=y
# CONFIG_PHY_HI3660_USB is not set
# CONFIG_PHY_HI3670_USB is not setCONFIG_PHY_HI3670_PCIE=yCONFIG_PHY_HISTB_COMBPHY=yCONFIG_PHY_HISI_INNO_USB2=y
# CONFIG_PHY_PXA_28NM_HSIC is not setCONFIG_PHY_PXA_28NM_USB2=yCONFIG_PHY_PXA_USB=yCONFIG_PHY_MMP3_USB=yCONFIG_PHY_MMP3_HSIC=yCONFIG_PHY_MT7621_PCI=yCONFIG_PHY_RALINK_USB=y
# CONFIG_PHY_RCAR_GEN3_USB3 is not set
# CONFIG_PHY_ROCKCHIP_DPHY_RX0 is not setCONFIG_PHY_ROCKCHIP_PCIE=y
# CONFIG_PHY_EXYNOS_MIPI_VIDEO is not setCONFIG_PHY_SAMSUNG_USB2=yCONFIG_PHY_S5PV210_USB2=y
# CONFIG_PHY_ST_SPEAR1310_MIPHY is not setCONFIG_PHY_ST_SPEAR1340_MIPHY=yCONFIG_PHY_STIH407_USB=yCONFIG_PHY_STM32_USBPHYC=yCONFIG_PHY_TEGRA194_P2U=yCONFIG_PHY_DA8XX_USB=yCONFIG_PHY_AM654_SERDES=yCONFIG_OMAP_CONTROL_PHY=yCONFIG_TI_PIPE3=y
# CONFIG_PHY_INTEL_KEEMBAY_EMMC is not setCONFIG_PHY_INTEL_KEEMBAY_USB=y
# CONFIG_PHY_INTEL_LGM_EMMC is not setCONFIG_PHY_XILINX_ZYNQMP=y
# end of PHY Subsystem
# CONFIG_POWERCAP is not setCONFIG_MCB=yCONFIG_MCB_PCI=yCONFIG_MCB_LPC=y
#
# Performance monitor support
#CONFIG_ARM_CCN=y
# CONFIG_ARM_CMN is not setCONFIG_ARM_SMMU_V3_PMU=yCONFIG_FSL_IMX8_DDR_PMU=yCONFIG_XGENE_PMU=y
# CONFIG_ARM_DMC620_PMU is not setCONFIG_MARVELL_CN10K_TAD_PMU=y
# CONFIG_MARVELL_CN10K_DDR_PMU is not set
# end of Performance monitor support
CONFIG_RAS=yCONFIG_RAS_CEC=y
# CONFIG_RAS_CEC_DEBUG is not setCONFIG_USB4=yCONFIG_USB4_DEBUGFS_WRITE=y
# CONFIG_USB4_KUNIT_TEST is not set
# CONFIG_USB4_DMA_TEST is not set
#
# Android
#
# CONFIG_ANDROID is not set
# end of Android
CONFIG_DAX=yCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=yCONFIG_NVMEM_IMX_IIM=yCONFIG_NVMEM_IMX_OCOTP=yCONFIG_NVMEM_LPC18XX_EEPROM=yCONFIG_NVMEM_LPC18XX_OTP=yCONFIG_NVMEM_MXS_OCOTP=y
# CONFIG_MTK_EFUSE is not setCONFIG_NVMEM_NINTENDO_OTP=y
# CONFIG_QCOM_QFPROM is not setCONFIG_NVMEM_SPMI_SDAM=yCONFIG_ROCKCHIP_EFUSE=y
# CONFIG_ROCKCHIP_OTP is not setCONFIG_NVMEM_BCM_OCOTP=y
# CONFIG_NVMEM_STM32_ROMEM is not setCONFIG_UNIPHIER_EFUSE=yCONFIG_NVMEM_VF610_OCOTP=yCONFIG_MESON_MX_EFUSE=yCONFIG_NVMEM_SNVS_LPGPR=yCONFIG_RAVE_SP_EEPROM=y
# CONFIG_SC27XX_EFUSE is not setCONFIG_SPRD_EFUSE=yCONFIG_NVMEM_RMEM=yCONFIG_NVMEM_BRCM_NVRAM=yCONFIG_NVMEM_LAYERSCAPE_SFP=y
# CONFIG_NVMEM_SUNPLUS_OCOTP is not set
#
# HW tracing support
#CONFIG_STM=y
# CONFIG_STM_PROTO_BASIC is not setCONFIG_STM_PROTO_SYS_T=yCONFIG_STM_DUMMY=yCONFIG_STM_SOURCE_CONSOLE=y
# CONFIG_STM_SOURCE_HEARTBEAT is not setCONFIG_STM_SOURCE_FTRACE=yCONFIG_INTEL_TH=y
# CONFIG_INTEL_TH_PCI is not set
# CONFIG_INTEL_TH_GTH is not set
# CONFIG_INTEL_TH_STH is not setCONFIG_INTEL_TH_MSU=yCONFIG_INTEL_TH_PTI=y
# CONFIG_INTEL_TH_DEBUG is not set
# end of HW tracing support
CONFIG_FPGA=yCONFIG_FPGA_MGR_SOCFPGA=yCONFIG_FPGA_MGR_SOCFPGA_A10=yCONFIG_ALTERA_PR_IP_CORE=yCONFIG_FPGA_MGR_ALTERA_CVP=yCONFIG_FPGA_MGR_ZYNQ_FPGA=yCONFIG_FPGA_BRIDGE=y
# CONFIG_ALTERA_FREEZE_BRIDGE is not setCONFIG_XILINX_PR_DECOUPLER=yCONFIG_FPGA_REGION=yCONFIG_FPGA_DFL=yCONFIG_FPGA_DFL_FME=yCONFIG_FPGA_DFL_FME_MGR=yCONFIG_FPGA_DFL_FME_BRIDGE=y
# CONFIG_FPGA_DFL_FME_REGION is not setCONFIG_FPGA_DFL_AFU=yCONFIG_FPGA_DFL_NIOS_INTEL_PAC_N3000=yCONFIG_FPGA_DFL_PCI=y
# CONFIG_FPGA_MGR_ZYNQMP_FPGA is not setCONFIG_FPGA_MGR_VERSAL_FPGA=yCONFIG_TEE=y
#
# TEE drivers
#
# end of TEE drivers
CONFIG_MULTIPLEXER=y
#
# Multiplexer drivers
#
# CONFIG_MUX_ADG792A is not setCONFIG_MUX_GPIO=yCONFIG_MUX_MMIO=y
# end of Multiplexer drivers
CONFIG_PM_OPP=y
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not setCONFIG_INTERCONNECT=yCONFIG_INTERCONNECT_IMX=yCONFIG_INTERCONNECT_IMX8MM=yCONFIG_INTERCONNECT_IMX8MN=yCONFIG_INTERCONNECT_IMX8MQ=yCONFIG_INTERCONNECT_QCOM_OSM_L3=y
# CONFIG_INTERCONNECT_SAMSUNG is not setCONFIG_COUNTER=yCONFIG_104_QUAD_8=y
# CONFIG_INTERRUPT_CNT is not setCONFIG_STM32_TIMER_CNT=yCONFIG_STM32_LPTIMER_CNT=y
# CONFIG_TI_EQEP is not setCONFIG_INTEL_QEP=yCONFIG_MOST=y
# CONFIG_MOST_CDEV is not setCONFIG_MOST_SND=yCONFIG_PECI=yCONFIG_PECI_CPU=y
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not setCONFIG_FS_IOMAP=y
# CONFIG_EXT2_FS is not setCONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_POSIX_ACL is not setCONFIG_EXT3_FS_SECURITY=yCONFIG_EXT4_FS=yCONFIG_EXT4_USE_FOR_EXT2=yCONFIG_EXT4_FS_POSIX_ACL=yCONFIG_EXT4_FS_SECURITY=yCONFIG_EXT4_DEBUG=yCONFIG_EXT4_KUNIT_TESTS=yCONFIG_JBD2=yCONFIG_JBD2_DEBUG=yCONFIG_FS_MBCACHE=yCONFIG_REISERFS_FS=yCONFIG_REISERFS_CHECK=y
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not setCONFIG_JFS_FS=yCONFIG_JFS_POSIX_ACL=yCONFIG_JFS_SECURITY=y
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not setCONFIG_XFS_FS=yCONFIG_XFS_SUPPORT_V4=yCONFIG_XFS_QUOTA=y
# CONFIG_XFS_POSIX_ACL is not setCONFIG_XFS_RT=yCONFIG_XFS_ONLINE_SCRUB=yCONFIG_XFS_ONLINE_REPAIR=yCONFIG_XFS_DEBUG=y
# CONFIG_XFS_ASSERT_FATAL is not setCONFIG_GFS2_FS=y
# CONFIG_BTRFS_FS is not setCONFIG_NILFS2_FS=yCONFIG_F2FS_FS=yCONFIG_F2FS_STAT_FS=yCONFIG_F2FS_FS_XATTR=yCONFIG_F2FS_FS_POSIX_ACL=y
# CONFIG_F2FS_FS_SECURITY is not setCONFIG_F2FS_CHECK_FS=y
# CONFIG_F2FS_FAULT_INJECTION is not setCONFIG_F2FS_FS_COMPRESSION=yCONFIG_F2FS_FS_LZO=y
# CONFIG_F2FS_FS_LZORLE is not setCONFIG_F2FS_FS_LZ4=yCONFIG_F2FS_FS_LZ4HC=yCONFIG_F2FS_FS_ZSTD=y
# CONFIG_F2FS_IOSTAT is not setCONFIG_F2FS_UNFAIR_RWSEM=yCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=y
# CONFIG_EXPORTFS_BLOCK_OPS is not setCONFIG_FILE_LOCKING=y
# CONFIG_FS_ENCRYPTION is not set
# CONFIG_FS_VERITY is not setCONFIG_FSNOTIFY=y
# CONFIG_DNOTIFY is not setCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=yCONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
# CONFIG_QUOTA is not set
# CONFIG_QUOTA_NETLINK_INTERFACE is not setCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=yCONFIG_AUTOFS_FS=yCONFIG_FUSE_FS=yCONFIG_CUSE=yCONFIG_VIRTIO_FS=y
# CONFIG_OVERLAY_FS is not set
#
# Caches
#
# CONFIG_FSCACHE is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=y
# end of CD-ROM/DVD Filesystems
#
# DOS/FAT/EXFAT/NT Filesystems
#CONFIG_FAT_FS=yCONFIG_MSDOS_FS=y
# CONFIG_VFAT_FS is not setCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_KUNIT_TEST=yCONFIG_EXFAT_FS=yCONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not setCONFIG_NTFS_RW=y
# CONFIG_NTFS3_FS is not set
# end of DOS/FAT/EXFAT/NT Filesystems
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not set
# CONFIG_PROC_VMCORE is not setCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_PROC_CHILDREN=yCONFIG_PROC_PID_ARCH_STATUS=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_INODE64 is not set
# CONFIG_HUGETLBFS is not setCONFIG_MEMFD_CREATE=yCONFIG_ARCH_HAS_GIGANTIC_PAGE=yCONFIG_CONFIGFS_FS=y
# end of Pseudo filesystems
# CONFIG_MISC_FILESYSTEMS is not setCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_CODEPAGE_737=yCONFIG_NLS_CODEPAGE_775=y
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not setCONFIG_NLS_CODEPAGE_855=yCONFIG_NLS_CODEPAGE_857=y
# CONFIG_NLS_CODEPAGE_860 is not setCONFIG_NLS_CODEPAGE_861=y
# CONFIG_NLS_CODEPAGE_862 is not setCONFIG_NLS_CODEPAGE_863=y
# CONFIG_NLS_CODEPAGE_864 is not setCONFIG_NLS_CODEPAGE_865=y
# CONFIG_NLS_CODEPAGE_866 is not setCONFIG_NLS_CODEPAGE_869=yCONFIG_NLS_CODEPAGE_936=y
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not setCONFIG_NLS_CODEPAGE_949=yCONFIG_NLS_CODEPAGE_874=yCONFIG_NLS_ISO8859_8=yCONFIG_NLS_CODEPAGE_1250=yCONFIG_NLS_CODEPAGE_1251=y
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not setCONFIG_NLS_ISO8859_2=yCONFIG_NLS_ISO8859_3=yCONFIG_NLS_ISO8859_4=yCONFIG_NLS_ISO8859_5=y
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not setCONFIG_NLS_ISO8859_13=y
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not setCONFIG_NLS_MAC_ROMAN=yCONFIG_NLS_MAC_CELTIC=yCONFIG_NLS_MAC_CENTEURO=yCONFIG_NLS_MAC_CROATIAN=yCONFIG_NLS_MAC_CYRILLIC=yCONFIG_NLS_MAC_GAELIC=yCONFIG_NLS_MAC_GREEK=yCONFIG_NLS_MAC_ICELAND=yCONFIG_NLS_MAC_INUIT=yCONFIG_NLS_MAC_ROMANIAN=y
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
#
# Security options
#CONFIG_KEYS=yCONFIG_KEYS_REQUEST_CACHE=yCONFIG_PERSISTENT_KEYRINGS=yCONFIG_BIG_KEYS=yCONFIG_TRUSTED_KEYS=yCONFIG_ENCRYPTED_KEYS=yCONFIG_USER_DECRYPTED_DATA=y
# CONFIG_KEY_DH_OPERATIONS is not set CONFIG_SECURITY_DMESG_RESTRICT=yCONFIG_SECURITY=yCONFIG_SECURITYFS=y
# CONFIG_SECURITY_NETWORK is not set
# CONFIG_PAGE_TABLE_ISOLATION is not set
# CONFIG_SECURITY_PATH is not set CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
# CONFIG_HARDENED_USERCOPY is not set CONFIG_FORTIFY_SOURCE=yCONFIG_STATIC_USERMODEHELPER=y CONFIG_STATIC_USERMODEHELPER_PATH="/sbin/usermode-helper" # CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
# CONFIG_SECURITY_YAMA is not set
# CONFIG_SECURITY_SAFESETID is not set CONFIG_SECURITY_LOCKDOWN_LSM=y CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set # CONFIG_SECURITY_LANDLOCK is not setCONFIG_INTEGRITY=y
# CONFIG_INTEGRITY_SIGNATURE is not setCONFIG_IMA=yCONFIG_IMA_MEASURE_PCR_IDX=10
# CONFIG_IMA_TEMPLATE is not set CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng" CONFIG_IMA_DEFAULT_HASH_SHA1=y
# CONFIG_IMA_DEFAULT_HASH_SHA256 is not set
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set CONFIG_IMA_DEFAULT_HASH="sha1"CONFIG_IMA_WRITE_POLICY=y
# CONFIG_IMA_READ_POLICY is not set CONFIG_IMA_APPRAISE=yCONFIG_IMA_APPRAISE_BOOTPARAM=y CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y CONFIG_IMA_DISABLE_HTABLE=yCONFIG_EVM=y
# CONFIG_EVM_ATTR_FSUUID is not set CONFIG_EVM_ADD_XATTRS=yCONFIG_DEFAULT_SECURITY_DAC=y CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,integrity,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=yCONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=yCONFIG_INIT_STACK_NONE=y
# CONFIG_INIT_STACK_ALL_PATTERN is not set
# CONFIG_INIT_STACK_ALL_ZERO is not setCONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
# end of Memory initialization # end of Kernel hardening options # end of Security options
CONFIG_XOR_BLOCKS=yCONFIG_CRYPTO=y
#
# Crypto core or helper
#
# CONFIG_CRYPTO_FIPS is not setCONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_SKCIPHER=yCONFIG_CRYPTO_SKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_RNG_DEFAULT=yCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=yCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_KPP=yCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=yCONFIG_CRYPTO_USER=y
# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not setCONFIG_CRYPTO_GF128MUL=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=yCONFIG_CRYPTO_PCRYPT=yCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=yCONFIG_CRYPTO_SIMD=yCONFIG_CRYPTO_ENGINE=y
#
# Public-key cryptography
#CONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_DH=yCONFIG_CRYPTO_DH_RFC7919_GROUPS=yCONFIG_CRYPTO_ECC=yCONFIG_CRYPTO_ECDH=yCONFIG_CRYPTO_ECDSA=yCONFIG_CRYPTO_ECRDSA=yCONFIG_CRYPTO_SM2=yCONFIG_CRYPTO_CURVE25519=yCONFIG_CRYPTO_CURVE25519_X86=y
#
# Authenticated Encryption with Associated Data
#CONFIG_CRYPTO_CCM=yCONFIG_CRYPTO_GCM=yCONFIG_CRYPTO_CHACHA20POLY1305=y
# CONFIG_CRYPTO_AEGIS128 is not set
# CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 is not set
# CONFIG_CRYPTO_SEQIV is not setCONFIG_CRYPTO_ECHAINIV=y
#
# Block modes
#CONFIG_CRYPTO_CBC=yCONFIG_CRYPTO_CFB=yCONFIG_CRYPTO_CTR=y
# CONFIG_CRYPTO_CTS is not setCONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_LRW is not setCONFIG_CRYPTO_OFB=yCONFIG_CRYPTO_PCBC=yCONFIG_CRYPTO_XTS=yCONFIG_CRYPTO_KEYWRAP=yCONFIG_CRYPTO_NHPOLY1305=yCONFIG_CRYPTO_NHPOLY1305_SSE2=yCONFIG_CRYPTO_NHPOLY1305_AVX2=yCONFIG_CRYPTO_ADIANTUM=yCONFIG_CRYPTO_ESSIV=y
#
# Hash modes
#CONFIG_CRYPTO_CMAC=yCONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_XCBC=y
# CONFIG_CRYPTO_VMAC is not set
#
# Digest
#CONFIG_CRYPTO_CRC32C=yCONFIG_CRYPTO_CRC32C_INTEL=yCONFIG_CRYPTO_CRC32=y
# CONFIG_CRYPTO_CRC32_PCLMUL is not set
# CONFIG_CRYPTO_XXHASH is not setCONFIG_CRYPTO_BLAKE2B=y
# CONFIG_CRYPTO_BLAKE2S is not setCONFIG_CRYPTO_BLAKE2S_X86=yCONFIG_CRYPTO_CRCT10DIF=yCONFIG_CRYPTO_CRCT10DIF_PCLMUL=yCONFIG_CRYPTO_CRC64_ROCKSOFT=yCONFIG_CRYPTO_GHASH=yCONFIG_CRYPTO_POLY1305=yCONFIG_CRYPTO_POLY1305_X86_64=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=yCONFIG_CRYPTO_RMD160=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA1_SSSE3=yCONFIG_CRYPTO_SHA256_SSSE3=yCONFIG_CRYPTO_SHA512_SSSE3=yCONFIG_CRYPTO_SHA256=yCONFIG_CRYPTO_SHA512=yCONFIG_CRYPTO_SHA3=y
# CONFIG_CRYPTO_SM3 is not set
# CONFIG_CRYPTO_SM3_AVX_X86_64 is not setCONFIG_CRYPTO_STREEBOG=yCONFIG_CRYPTO_WP512=y
# CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL is not set
#
# Ciphers
#CONFIG_CRYPTO_AES=yCONFIG_CRYPTO_AES_TI=yCONFIG_CRYPTO_AES_NI_INTEL=yCONFIG_CRYPTO_ANUBIS=yCONFIG_CRYPTO_ARC4=yCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_BLOWFISH_COMMON=yCONFIG_CRYPTO_BLOWFISH_X86_64=y
# CONFIG_CRYPTO_CAMELLIA is not setCONFIG_CRYPTO_CAMELLIA_X86_64=yCONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=yCONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=yCONFIG_CRYPTO_CAST_COMMON=yCONFIG_CRYPTO_CAST5=yCONFIG_CRYPTO_CAST5_AVX_X86_64=yCONFIG_CRYPTO_CAST6=yCONFIG_CRYPTO_CAST6_AVX_X86_64=yCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_DES3_EDE_X86_64=yCONFIG_CRYPTO_FCRYPT=y
# CONFIG_CRYPTO_KHAZAD is not setCONFIG_CRYPTO_CHACHA20=y
# CONFIG_CRYPTO_CHACHA20_X86_64 is not set
# CONFIG_CRYPTO_SEED is not setCONFIG_CRYPTO_SERPENT=yCONFIG_CRYPTO_SERPENT_SSE2_X86_64=yCONFIG_CRYPTO_SERPENT_AVX_X86_64=yCONFIG_CRYPTO_SERPENT_AVX2_X86_64=y
# CONFIG_CRYPTO_SM4 is not setCONFIG_CRYPTO_SM4_AESNI_AVX_X86_64=yCONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64=yCONFIG_CRYPTO_TEA=y
# CONFIG_CRYPTO_TWOFISH is not setCONFIG_CRYPTO_TWOFISH_COMMON=yCONFIG_CRYPTO_TWOFISH_X86_64=yCONFIG_CRYPTO_TWOFISH_X86_64_3WAY=y
# CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=yCONFIG_CRYPTO_842=y
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not setCONFIG_CRYPTO_ZSTD=y
#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set CONFIG_CRYPTO_DRBG_MENU=y CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_HASH is not set
# CONFIG_CRYPTO_DRBG_CTR is not set CONFIG_CRYPTO_DRBG=y CONFIG_CRYPTO_JITTERENTROPY=y CONFIG_CRYPTO_USER_API=y CONFIG_CRYPTO_USER_API_HASH=y
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set # CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y CONFIG_CRYPTO_STATS=y CONFIG_CRYPTO_HASH_INFO=y CONFIG_CRYPTO_HW=y CONFIG_CRYPTO_DEV_ALLWINNER=y CONFIG_CRYPTO_DEV_SUN8I_CE=y
# CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG is not set CONFIG_CRYPTO_DEV_SUN8I_CE_HASH=y
# CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG is not set CONFIG_CRYPTO_DEV_SUN8I_CE_TRNG=y CONFIG_CRYPTO_DEV_SUN8I_SS=y CONFIG_CRYPTO_DEV_SUN8I_SS_DEBUG=y CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG=y CONFIG_CRYPTO_DEV_SUN8I_SS_HASH=y CONFIG_CRYPTO_DEV_PADLOCK=y
# CONFIG_CRYPTO_DEV_PADLOCK_AES is not set CONFIG_CRYPTO_DEV_PADLOCK_SHA=y CONFIG_CRYPTO_DEV_SL3516=y
# CONFIG_CRYPTO_DEV_SL3516_DEBUG is not set CONFIG_CRYPTO_DEV_EXYNOS_RNG=y CONFIG_CRYPTO_DEV_S5P=y
# CONFIG_CRYPTO_DEV_ATMEL_AUTHENC is not set CONFIG_CRYPTO_DEV_ATMEL_AES=y
# CONFIG_CRYPTO_DEV_ATMEL_TDES is not set # CONFIG_CRYPTO_DEV_ATMEL_SHA is not set CONFIG_CRYPTO_DEV_ATMEL_I2C=y CONFIG_CRYPTO_DEV_ATMEL_ECC=y CONFIG_CRYPTO_DEV_ATMEL_SHA204A=y CONFIG_CRYPTO_DEV_CCP=y
# CONFIG_CRYPTO_DEV_CCP_DD is not set CONFIG_CRYPTO_DEV_QAT=y CONFIG_CRYPTO_DEV_QAT_DH895xCC=y CONFIG_CRYPTO_DEV_QAT_C3XXX=y CONFIG_CRYPTO_DEV_QAT_C62X=y CONFIG_CRYPTO_DEV_QAT_4XXX=y
# CONFIG_CRYPTO_DEV_QAT_DH895xCCVF is not set CONFIG_CRYPTO_DEV_QAT_C3XXXVF=y CONFIG_CRYPTO_DEV_QAT_C62XVF=y CONFIG_CRYPTO_DEV_CPT=y CONFIG_CAVIUM_CPT=y CONFIG_CRYPTO_DEV_NITROX=y CONFIG_CRYPTO_DEV_NITROX_CNN55XX=y
# CONFIG_CRYPTO_DEV_OCTEONTX_CPT is not set CONFIG_CRYPTO_DEV_CAVIUM_ZIP=y CONFIG_CRYPTO_DEV_QCE=y CONFIG_CRYPTO_DEV_QCE_SKCIPHER=y CONFIG_CRYPTO_DEV_QCE_SHA=y CONFIG_CRYPTO_DEV_QCE_AEAD=y CONFIG_CRYPTO_DEV_QCE_ENABLE_ALL=y
# CONFIG_CRYPTO_DEV_QCE_ENABLE_SKCIPHER is not set # CONFIG_CRYPTO_DEV_QCE_ENABLE_SHA is not set # CONFIG_CRYPTO_DEV_QCE_ENABLE_AEAD is not set CONFIG_CRYPTO_DEV_QCE_SW_MAX_LEN=512 CONFIG_CRYPTO_DEV_QCOM_RNG=y
# CONFIG_CRYPTO_DEV_IMGTEC_HASH is not set CONFIG_CRYPTO_DEV_ZYNQMP_AES=y
# CONFIG_CRYPTO_DEV_ZYNQMP_SHA3 is not set CONFIG_CRYPTO_DEV_VIRTIO=y
# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
# CONFIG_CRYPTO_DEV_HISI_SEC is not set CONFIG_CRYPTO_DEV_AMLOGIC_GXL=y
# CONFIG_CRYPTO_DEV_AMLOGIC_GXL_DEBUG is not set CONFIG_CRYPTO_DEV_SA2UL=y CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4=y CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4_ECB=y CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4_CTS=y # CONFIG_CRYPTO_DEV_KEEMBAY_OCS_ECC is not set CONFIG_CRYPTO_DEV_KEEMBAY_OCS_HCU=y CONFIG_CRYPTO_DEV_KEEMBAY_OCS_HCU_HMAC_SHA224=y CONFIG_ASYMMETRIC_KEY_TYPE=y CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
# CONFIG_X509_CERTIFICATE_PARSER is not set # CONFIG_PKCS8_PRIVATE_KEY_PARSER is not set
#
# Certificates for signature checking
#CONFIG_SYSTEM_TRUSTED_KEYRING=yCONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
# CONFIG_SECONDARY_TRUSTED_KEYRING is not setCONFIG_SYSTEM_BLACKLIST_KEYRING=yCONFIG_SYSTEM_BLACKLIST_HASH_LIST=""
# end of Certificates for signature checking
CONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_LINEAR_RANGES=y
# CONFIG_PACKING is not setCONFIG_BITREVERSE=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=yCONFIG_GENERIC_NET_UTILS=yCONFIG_CORDIC=y
# CONFIG_PRIME_NUMBERS is not setCONFIG_RATIONAL=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_STMP_DEVICE=yCONFIG_ARCH_USE_CMPXCHG_LOCKREF=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_ARCH_USE_SYM_ANNOTATIONS=y
#
# Crypto library routines
#CONFIG_CRYPTO_LIB_AES=yCONFIG_CRYPTO_LIB_ARC4=yCONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S=yCONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=yCONFIG_CRYPTO_LIB_CHACHA_GENERIC=yCONFIG_CRYPTO_LIB_CHACHA=yCONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=yCONFIG_CRYPTO_LIB_CURVE25519_GENERIC=y
# CONFIG_CRYPTO_LIB_CURVE25519 is not setCONFIG_CRYPTO_LIB_DES=yCONFIG_CRYPTO_LIB_POLY1305_RSIZE=11CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=yCONFIG_CRYPTO_LIB_POLY1305_GENERIC=yCONFIG_CRYPTO_LIB_POLY1305=yCONFIG_CRYPTO_LIB_CHACHA20POLY1305=yCONFIG_CRYPTO_LIB_SHA256=yCONFIG_CRYPTO_LIB_SM3=yCONFIG_CRYPTO_LIB_SM4=y
# end of Crypto library routines
CONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC64_ROCKSOFT=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not setCONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not setCONFIG_CRC64=yCONFIG_CRC4=y
# CONFIG_CRC7 is not setCONFIG_LIBCRC32C=yCONFIG_CRC8=yCONFIG_XXHASH=yCONFIG_RANDOM32_SELFTEST=yCONFIG_842_COMPRESS=yCONFIG_842_DECOMPRESS=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_LZ4_COMPRESS=yCONFIG_LZ4HC_COMPRESS=yCONFIG_LZ4_DECOMPRESS=yCONFIG_ZSTD_COMPRESS=yCONFIG_ZSTD_DECOMPRESS=yCONFIG_XZ_DEC=yCONFIG_XZ_DEC_X86=yCONFIG_XZ_DEC_POWERPC=yCONFIG_XZ_DEC_IA64=yCONFIG_XZ_DEC_ARM=yCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=y
# CONFIG_XZ_DEC_MICROLZMA is not setCONFIG_XZ_DEC_BCJ=yCONFIG_XZ_DEC_TEST=yCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_ZSTD=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=yCONFIG_TEXTSEARCH_BM=yCONFIG_TEXTSEARCH_FSM=yCONFIG_BTREE=yCONFIG_INTERVAL_TREE=yCONFIG_XARRAY_MULTI=yCONFIG_ASSOCIATIVE_ARRAY=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_DMA_OPS=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_ARCH_HAS_FORCE_DMA_UNENCRYPTED=yCONFIG_SWIOTLB=yCONFIG_DMA_COHERENT_POOL=y
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not setCONFIG_SGL_ALLOC=yCONFIG_IOMMU_HELPER=yCONFIG_CHECK_SIGNATURE=yCONFIG_CPU_RMAP=yCONFIG_DQL=yCONFIG_GLOB=yCONFIG_GLOB_SELFTEST=yCONFIG_NLATTR=yCONFIG_CLZ_TAB=yCONFIG_IRQ_POLL=yCONFIG_MPILIB=yCONFIG_OID_REGISTRY=yCONFIG_HAVE_GENERIC_VDSO=yCONFIG_GENERIC_GETTIMEOFDAY=yCONFIG_GENERIC_VDSO_TIME_NS=yCONFIG_FONT_SUPPORT=yCONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
CONFIG_FONT_ACORN_8x8=y
CONFIG_FONT_MINI_4x6=y
# CONFIG_FONT_6x10 is not set
CONFIG_FONT_10x18=y
CONFIG_FONT_SUN8x16=y
# CONFIG_FONT_SUN12x22 is not set
CONFIG_FONT_TER16x32=y
# CONFIG_FONT_6x8 is not setCONFIG_SG_SPLIT=yCONFIG_SG_POOL=yCONFIG_ARCH_HAS_PMEM_API=yCONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=yCONFIG_ARCH_HAS_COPY_MC=yCONFIG_ARCH_STACKWALK=yCONFIG_STACKDEPOT=yCONFIG_STACK_HASH_ORDER=20CONFIG_SBITMAP=yCONFIG_PARMAN=y
# CONFIG_OBJAGG is not set
# end of Library routines
CONFIG_ASN1_ENCODER=y
#
# Kernel hacking
#
#
# printk and dmesg options # CONFIG_PRINTK_TIME=y # CONFIG_PRINTK_CALLER is not set CONFIG_STACKTRACE_BUILD_ID=y CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_DYNAMIC_DEBUG is not set CONFIG_DYNAMIC_DEBUG_CORE=y # CONFIG_SYMBOLIC_ERRNAME is not set CONFIG_DEBUG_BUGVERBOSE=y # end of printk and dmesg options
# CONFIG_DEBUG_KERNEL is not set
#
# Compile-time checks and compiler options
#CONFIG_FRAME_WARN=2048CONFIG_STRIP_ASM_SYMS=y
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not setCONFIG_STACK_VALIDATION=y
# end of Compile-time checks and compiler options
#
# Generic Kernel Debugging Instruments
#CONFIG_MAGIC_SYSRQ=yCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
# CONFIG_MAGIC_SYSRQ_SERIAL is not setCONFIG_DEBUG_FS=yCONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_FS_DISALLOW_MOUNT is not set
# CONFIG_DEBUG_FS_ALLOW_NONE is not setCONFIG_HAVE_ARCH_KGDB=yCONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_UBSAN is not setCONFIG_HAVE_ARCH_KCSAN=yCONFIG_HAVE_KCSAN_COMPILER=y
# end of Generic Kernel Debugging Instruments
#
# Networking Debugging
#
# end of Networking Debugging
#
# Memory Debugging
#CONFIG_PAGE_EXTENSION=yCONFIG_PAGE_TABLE_CHECK=yCONFIG_PAGE_TABLE_CHECK_ENFORCED=y
# CONFIG_PAGE_POISONING is not setCONFIG_DEBUG_RODATA_TEST=yCONFIG_ARCH_HAS_DEBUG_WX=y
# CONFIG_DEBUG_WX is not setCONFIG_GENERIC_PTDUMP=yCONFIG_SLUB_DEBUG_ON=yCONFIG_SLUB_STATS=yCONFIG_HAVE_DEBUG_KMEMLEAK=yCONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
# CONFIG_DEBUG_VM_PGTABLE is not setCONFIG_ARCH_HAS_DEBUG_VIRTUAL=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=yCONFIG_HAVE_ARCH_KASAN=yCONFIG_HAVE_ARCH_KASAN_VMALLOC=yCONFIG_CC_HAS_KASAN_GENERIC=yCONFIG_CC_HAS_KASAN_SW_TAGS=yCONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
# CONFIG_KASAN is not setCONFIG_HAVE_ARCH_KFENCE=yCONFIG_KFENCE=yCONFIG_KFENCE_SAMPLE_INTERVAL=100CONFIG_KFENCE_NUM_OBJECTS=255CONFIG_KFENCE_DEFERRABLE=yCONFIG_KFENCE_STRESS_TEST_FAULTS=0CONFIG_KFENCE_KUNIT_TEST=y
# end of Memory Debugging
#
# Debug Oops, Lockups and Hangs
#CONFIG_PANIC_ON_OOPS=yCONFIG_PANIC_ON_OOPS_VALUE=1CONFIG_PANIC_TIMEOUT=0CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
# end of Debug Oops, Lockups and Hangs
#
# Scheduler Debugging
#
# end of Scheduler Debugging
# CONFIG_DEBUG_TIMEKEEPING is not set
#
# Lock Debugging (spinlocks, mutexes, etc...)
#CONFIG_LOCK_DEBUGGING_SUPPORT=y
# CONFIG_WW_MUTEX_SELFTEST is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)
# CONFIG_DEBUG_IRQFLAGS is not setCONFIG_STACKTRACE=yCONFIG_WARN_ALL_UNSEEDED_RANDOM=y
#
# Debug kernel data structures
#
# CONFIG_BUG_ON_DATA_CORRUPTION is not set
# end of Debug kernel data structures
#
# RCU Debugging
#CONFIG_RCU_CPU_STALL_TIMEOUT=21
# end of RCU Debugging
138 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Re: [PATCHv8 14/30] x86: Consolidate port I/O helpers
Quoted 17 lines · Borislav Petkov
Quoted 8 lines · Kirill A. Shutemov
There are two implementations of port I/O helpers: one in the kernel and one in the boot stub.
Move the helpers required for both to <
asm/shared/io.h> and use the one implementation everywhere.Signed-off-by Kirill A. Shutemov <[email protected]>Reviewed-by Thomas Gleixner <[email protected]>Quoted 7 lines
--- arch/x86/boot/boot.h | 35 +------------------------------- arch/x86/boot/compressed/misc.h | 2 +- arch/x86/include/asm/io.h | 22 ++------------------ arch/x86/include/asm/shared/io.h | 34 +++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 55 deletions(-) create mode 100644 arch/x86/include/asm/shared/io.h
Quoted 4 lines
This complains with clang-13 here, config attached.
And yap, this is the damn include hell I keep talking about. That
lib/kalsr.cthing includes the kernel properio.hheader ...
Right. <asm/shared/io.h> is enough for lib/kaslr.c.
What about this:
From 164de295599f8befa2ee1ff05dc03542c02b0800 Mon Sep 17 00:00:00 2001
From: "Kirill A. Shutemov" <[email protected]>
Date: Sun, 10 Apr 2022 22:49:28 +0300
Subject: [PATCH] x86/kaslr: Fix build warning in KASLR code in boot stub
lib/kaslr.c used by both the main kernel and the boot stub. It includes <asm/io.h> that intended to be used in the main kernel. It leads to build warnings like this:
warning: implicit declaration of function 'outl' is invalid in C99 [-Wimplicit-function-declaration]
Replace <asm/io.h> with <asm/shared/io.h> which is suitable for both cases.
--- arch/x86/lib/kaslr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/kaslr.c +1 -1
@@ -11,7 +11,7 @@#include <asm/msr.h> #include <asm/archrandom.h> #include <asm/e820/api.h> -#include <asm/io.h> +#include <asm/shared/io.h> /* * When built for the regular kernel, several functions need to be stubbed out
Signature · 1 line
Kirill A. Shutemov
Borislav Petkov
maintainerRe: [PATCHv8 14/30] x86: Consolidate port I/O helpers
Quoted 13 lines · Kirill A. Shutemov
Right. <
asm/shared/io.h> is enough forlib/kaslr.c.What about this:
From
164de295599f8befa2ee1ff05dc03542c02b0800Mon Sep 17 00:00:00 2001
From: "Kirill A. Shutemov" <[email protected]>
Date: Sun, 10 Apr 2022 22:49:28 +0300
Subject: [PATCH] x86/kaslr: Fix build warning in KASLR code in boot stub
lib/kaslr.cused by both the main kernel and the boot stub. It includes <asm/io.h> that intended to be used in the main kernel. It leads to build warnings like this:
Quoted 8 lines
warning: implicit declaration of function 'outl' is invalid in C99 [-Wimplicit-function-declaration]
Replace <
asm/io.h> with <asm/shared/io.h> which is suitable for both cases.Signed-off-by Kirill A. Shutemov <[email protected]>Fixes 1e8f93e18379 ("x86: Consolidate port I/O helpers")
Quoted 10 lines
--- arch/x86/lib/kaslr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/x86/lib/kaslr.c +0
-0
arch/x86/lib/kaslr.c line 17
Quoted 8 lines
arch/x86/lib/kaslr.c +1
-1@@ -11,7 +11,7 @@#include <asm/msr.h> #include <asm/archrandom.h> #include <asm/e820/api.h> -#include <asm/io.h> +#include <asm/shared/io.h> /* * When built for the regular kernel, several functions need to be stubbed out
Thanks, that works and looks nice too.
I'll queue it tomorrow.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette[tip: x86/tdx] x86/kaslr: Fix build warning in KASLR code in boot stub
In reply to Kirill A. ShutemovThe following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: adb5680b8dfdd09756f13450bfc1ed874d895935 Gitweb: https://git.kernel.org/tip/adb5680b8dfdd09756f13450bfc1ed874d895935 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Sun, 10 Apr 2022 23:00:25 +03:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Mon, 11 Apr 2022 09:41:12 +02:00
x86/kaslr: Fix build warning in KASLR code in boot stub
lib/kaslr.c is used by both the main kernel and the boot stub. It includes asm/io.h which is supposed to be used in the main kernel. It leads to build warnings like this with clang 13:
warning: implicit declaration of function 'outl' is invalid in C99 [-Wimplicit-function-declaration]
Replace <asm/io.h> with <asm/shared/io.h> which is suitable for both cases.
--- arch/x86/lib/kaslr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/kaslr.c +1 -1
@@ -11,7 +11,7 @@#include <asm/msr.h> #include <asm/archrandom.h> #include <asm/e820/api.h> -#include <asm/io.h> +#include <asm/shared/io.h> /* * When built for the regular kernel, several functions need to be stubbed out
PATCH v8 15/30 x86/boot: Port I/O: allow to hook up alternative helpers
In reply to Kirill A. ShutemovPort I/O instructions trigger #VE in the TDX environment. In response to the exception, kernel emulates these instructions using hypercalls.
But during early boot, on the decompression stage, it is cumbersome to deal with #VE. It is cleaner to go to hypercalls directly, bypassing #VE handling.
Add a way to hook up alternative port I/O helpers in the boot stub with a new pio_ops structure. For now, set the ops structure to just call the normal I/O operation functions.
out*()/in*() macros redefined to use pio_ops callbacks. It eliminates need in changing call sites. io_delay() changed to use port I/O helper instead of inline assembly.
--- arch/x86/boot/boot.h | 4 ++-- arch/x86/boot/compressed/misc.c | 4 ++++ arch/x86/boot/compressed/misc.h | 2 +- arch/x86/boot/io.h | 41 +++++++++++++++++++++++++++++++++ arch/x86/boot/main.c | 4 ++++ arch/x86/realmode/rm/wakemain.c | 4 ++++ 6 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 arch/x86/boot/io.h
arch/x86/boot/boot.h +2 -2
@@ -23,10 +23,10 @@#include <linux/edd.h> #include <asm/setup.h> #include <asm/asm.h> -#include <asm/shared/io.h> #include "bitops.h" #include "ctype.h" #include "cpuflags.h" +#include "io.h" /* Useful macros */ #define ARRAY_SIZE (x) (sizeof(x) / sizeof(*(x)))
@@ -39,7 +39,7 @@ extern struct boot_params boot_params;static inline void io_delay (void ) {const u16 DELAY_PORT =0x80 ; - asmvolatile ("outb %%al,%0" : :"dN" (DELAY_PORT )); +outb (0 ,DELAY_PORT ); }/* These functions are used to reference data in other segments. */
arch/x86/boot/compressed/misc.c +4 -0
@@ -48,6 +48,8 @@ void *memmove(void *dest, const void *src, size_t n);*/ struct boot_params *boot_params; +struct port_io_ops pio_ops; +memptr free_mem_ptr;memptr free_mem_end_ptr;
@@ -371,6 +373,8 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, lines = boot_params->screen_info.orig_video_lines; cols = boot_params->screen_info.orig_video_cols; +init_default_io_ops (); +/* * Detect TDX guest environment. *
arch/x86/boot/compressed/misc.h +1 -1
@@ -26,7 +26,6 @@#include <asm/boot.h> #include <asm/bootparam.h> #include <asm/desc_defs.h> -#include <asm/shared/io.h> #include "tdx.h"
@@ -35,6 +34,7 @@#define BOOT_BOOT_H #include "../ctype.h" +#include "../io.h" #ifdef CONFIG_X86_64 #define memptr long
arch/x86/boot/io.h new file +41 -0
41 lines not on this page · raw message
arch/x86/boot/main.c +4 -0
@@ -17,6 +17,8 @@ struct boot_params boot_params __attribute__((aligned(16))); +struct port_io_ops pio_ops; +char *HEAP = _end;char *heap_end = _end;/* Default end of heap = no heap */
@@ -133,6 +135,8 @@ static void init_heap(void)void main (void ) { +init_default_io_ops (); +/* First, copy the boot header into the "zeropage" */ copy_boot_params ();
arch/x86/realmode/rm/wakemain.c +4 -0
@@ -62,8 +62,12 @@ static void send_morse(const char *pattern) } } +struct port_io_ops pio_ops; +void main (void ) { +init_default_io_ops (); +/* Kill machine if structures are wrong */ if (wakeup_header.real_magic !=0x12345678 )while (1 )
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/boot: Port I/O: Allow to hook up alternative helpers
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: eb4ea1ae8f45e3249e7586f30be8977478202a37 Gitweb: https://git.kernel.org/tip/eb4ea1ae8f45e3249e7586f30be8977478202a37 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:24 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86/boot: Port I/O: Allow to hook up alternative helpers
Port I/O instructions trigger #VE in the TDX environment. In response to the exception, kernel emulates these instructions using hypercalls.
But during early boot, on the decompression stage, it is cumbersome to deal with #VE. It is cleaner to go to hypercalls directly, bypassing #VE handling.
Add a way to hook up alternative port I/O helpers in the boot stub with a new pio_ops structure. For now, set the ops structure to just call the normal I/O operation functions.
out*()/in*() macros redefined to use pio_ops callbacks. It eliminates need in changing call sites. io_delay() changed to use port I/O helper instead of inline assembly.
--- arch/x86/boot/boot.h | 4 +-- arch/x86/boot/compressed/misc.c | 4 +++- arch/x86/boot/compressed/misc.h | 2 +- arch/x86/boot/io.h | 41 ++++++++++++++++++++++++++++++++- arch/x86/boot/main.c | 4 +++- arch/x86/realmode/rm/wakemain.c | 4 +++- 6 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 arch/x86/boot/io.h
arch/x86/boot/boot.h +2 -2
@@ -23,10 +23,10 @@#include <linux/edd.h> #include <asm/setup.h> #include <asm/asm.h> -#include <asm/shared/io.h> #include "bitops.h" #include "ctype.h" #include "cpuflags.h" +#include "io.h" /* Useful macros */ #define ARRAY_SIZE (x) (sizeof(x) / sizeof(*(x)))
@@ -39,7 +39,7 @@ extern struct boot_params boot_params;static inline void io_delay (void ) {const u16 DELAY_PORT =0x80 ; - asmvolatile ("outb %%al,%0" : :"dN" (DELAY_PORT )); +outb (0 ,DELAY_PORT ); }/* These functions are used to reference data in other segments. */
arch/x86/boot/compressed/misc.c +4 -0
@@ -48,6 +48,8 @@ void *memmove(void *dest, const void *src, size_t n);*/ struct boot_params *boot_params; +struct port_io_ops pio_ops; +memptr free_mem_ptr;memptr free_mem_end_ptr;
@@ -371,6 +373,8 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, lines = boot_params->screen_info.orig_video_lines; cols = boot_params->screen_info.orig_video_cols; +init_default_io_ops (); +/* * Detect TDX guest environment. *
arch/x86/boot/compressed/misc.h +1 -1
@@ -26,7 +26,6 @@#include <asm/boot.h> #include <asm/bootparam.h> #include <asm/desc_defs.h> -#include <asm/shared/io.h> #include "tdx.h"
@@ -35,6 +34,7 @@#define BOOT_BOOT_H #include "../ctype.h" +#include "../io.h" #ifdef CONFIG_X86_64 #define memptr long
arch/x86/boot/io.h new file +41 -0
41 lines not on this page · raw message
arch/x86/boot/main.c +4 -0
@@ -17,6 +17,8 @@ struct boot_params boot_params __attribute__((aligned(16))); +struct port_io_ops pio_ops; +char *HEAP = _end;char *heap_end = _end;/* Default end of heap = no heap */
@@ -133,6 +135,8 @@ static void init_heap(void)void main (void ) { +init_default_io_ops (); +/* First, copy the boot header into the "zeropage" */ copy_boot_params ();
arch/x86/realmode/rm/wakemain.c +4 -0
@@ -62,8 +62,12 @@ static void send_morse(const char *pattern) } } +struct port_io_ops pio_ops; +void main (void ) { +init_default_io_ops (); +/* Kill machine if structures are wrong */ if (wakeup_header.real_magic !=0x12345678 )while (1 )
PATCH v8 16/30 x86/boot: Port I/O: add decompression-time support for TDX
In reply to Kirill A. ShutemovPort I/O instructions trigger #VE in the TDX environment. In response to the exception, kernel emulates these instructions using hypercalls.
But during early boot, on the decompression stage, it is cumbersome to deal with #VE. It is cleaner to go to hypercalls directly, bypassing #VE handling.
Hook up TDX-specific port I/O helpers if booting in TDX environment.
--- arch/x86/boot/compressed/Makefile | 2 +- arch/x86/boot/compressed/tdcall.S | 3 ++ arch/x86/boot/compressed/tdx.c | 61 +++++++++++++++++++++++++++++++ arch/x86/include/asm/shared/tdx.h | 32 ++++++++++++++++ arch/x86/include/asm/tdx.h | 27 -------------- 5 files changed, 97 insertions(+), 28 deletions(-) create mode 100644 arch/x86/boot/compressed/tdcall.S
arch/x86/boot/compressed/Makefile +1 -1
@@ -101,7 +101,7 @@ ifdef CONFIG_X86_64 endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o -vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o +vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o $(obj)/tdcall.o vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o efi-obj-$(CONFIG_EFI_STUB) = $(objtree)/drivers/firmware/efi/libstub/lib.a
arch/x86/boot/compressed/tdcall.S new file +3 -0
@@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include "../../coco/tdx/tdcall.S"
arch/x86/boot/compressed/tdx.c +61 -0
74 lines not on this page · raw message
arch/x86/include/asm/shared/tdx.h +32 -0
@@ -2,7 +2,39 @@#ifndef _ASM_X86_SHARED_TDX_H#define _ASM_X86_SHARED_TDX_H +#include <linux/bits.h> +#include <linux/types.h> + +#define TDX_HYPERCALL_STANDARD 0 + +#define TDX_HCALL_HAS_OUTPUT BIT(0) +#define TDX_HCALL_ISSUE_STI BIT(1) +#define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX " +#ifndef __ASSEMBLY__ + +/* +* Used in __tdx_hypercall() to pass down and get back registers' values of +* the TDCALL instruction when requesting services from the VMM. +* +* This is a software only structure and not part of the TDX module/VMM ABI. +*/ +struct tdx_hypercall_args { +u64 r10; +u64 r11; +u64 r12; +u64 r13; +u64 r14; +u64 r15; +}; + +/* Used to request services from the VMM */ +u64 __tdx_hypercall (struct tdx_hypercall_args *args,unsigned long flags); + +/* Called from __tdx_hypercall() for unrecoverable failure */ +void __tdx_hypercall_failed (void ); + +#endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_SHARED_TDX_H */
arch/x86/include/asm/tdx.h +0 -27
@@ -3,17 +3,11 @@#ifndef _ASM_X86_TDX_H#define _ASM_X86_TDX_H -#include <linux/bits.h> #include <linux/init.h> #include <linux/bits.h> #include <asm/ptrace.h> #include <asm/shared/tdx.h> -#define TDX_HYPERCALL_STANDARD 0 - -#define TDX_HCALL_HAS_OUTPUT BIT(0) -#define TDX_HCALL_ISSUE_STI BIT(1) -/* * SW-defined error codes. *
@@ -41,21 +35,6 @@ struct tdx_module_output {u64 r11; }; -/* -* Used in __tdx_hypercall() to pass down and get back registers' values of -* the TDCALL instruction when requesting services from the VMM. -* -* This is a software only structure and not part of the TDX module/VMM ABI. -*/ -struct tdx_hypercall_args { -u64 r10; -u64 r11; -u64 r12; -u64 r13; -u64 r14; -u64 r15; -}; -/* * Used by the #VE exception handler to gather the #VE exception * info from the TDX module. This is a software only structure
@@ -80,12 +59,6 @@ void __init tdx_early_init(void);u64 __tdx_module_call (u64 fn,u64 rcx,u64 rdx,u64 r8,u64 r9,struct tdx_module_output *out); -/* Used to request services from the VMM */ -u64 __tdx_hypercall (struct tdx_hypercall_args *args,unsigned long flags); - -/* Called from __tdx_hypercall() for unrecoverable failure */ -void __tdx_hypercall_failed (void ); -void tdx_get_ve_info (struct ve_info *ve);bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve);
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/boot: Port I/O: Add decompression-time support for TDX
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 4c5b9aac6cade51aef64cc6ed67f2ad5acda9aed Gitweb: https://git.kernel.org/tip/4c5b9aac6cade51aef64cc6ed67f2ad5acda9aed Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:25 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86/boot: Port I/O: Add decompression-time support for TDX
Port I/O instructions trigger #VE in the TDX environment. In response to the exception, kernel emulates these instructions using hypercalls.
But during early boot, on the decompression stage, it is cumbersome to deal with #VE. It is cleaner to go to hypercalls directly, bypassing #VE handling.
Hook up TDX-specific port I/O helpers if booting in TDX environment.
--- arch/x86/boot/compressed/Makefile | 2 +- arch/x86/boot/compressed/tdcall.S | 3 +- arch/x86/boot/compressed/tdx.c | 61 ++++++++++++++++++++++++++++++- arch/x86/include/asm/shared/tdx.h | 32 ++++++++++++++++- arch/x86/include/asm/tdx.h | 27 +------------- 5 files changed, 97 insertions(+), 28 deletions(-) create mode 100644 arch/x86/boot/compressed/tdcall.S
arch/x86/boot/compressed/Makefile +1 -1
@@ -101,7 +101,7 @@ ifdef CONFIG_X86_64 endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o -vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o +vmlinux-objs-$(CONFIG_INTEL_TDX_GUEST) += $(obj)/tdx.o $(obj)/tdcall.o vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o efi-obj-$(CONFIG_EFI_STUB) = $(objtree)/drivers/firmware/efi/libstub/lib.a
arch/x86/boot/compressed/tdcall.S new file +3 -0
@@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include "../../coco/tdx/tdcall.S"
arch/x86/boot/compressed/tdx.c +61 -0
74 lines not on this page · raw message
arch/x86/include/asm/shared/tdx.h +32 -0
@@ -2,7 +2,39 @@#ifndef _ASM_X86_SHARED_TDX_H#define _ASM_X86_SHARED_TDX_H +#include <linux/bits.h> +#include <linux/types.h> + +#define TDX_HYPERCALL_STANDARD 0 + +#define TDX_HCALL_HAS_OUTPUT BIT(0) +#define TDX_HCALL_ISSUE_STI BIT(1) +#define TDX_CPUID_LEAF_ID 0x21#define TDX_IDENT "IntelTDX " +#ifndef __ASSEMBLY__ + +/* +* Used in __tdx_hypercall() to pass down and get back registers' values of +* the TDCALL instruction when requesting services from the VMM. +* +* This is a software only structure and not part of the TDX module/VMM ABI. +*/ +struct tdx_hypercall_args { +u64 r10; +u64 r11; +u64 r12; +u64 r13; +u64 r14; +u64 r15; +}; + +/* Used to request services from the VMM */ +u64 __tdx_hypercall (struct tdx_hypercall_args *args,unsigned long flags); + +/* Called from __tdx_hypercall() for unrecoverable failure */ +void __tdx_hypercall_failed (void ); + +#endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_SHARED_TDX_H */
arch/x86/include/asm/tdx.h +0 -27
@@ -3,17 +3,11 @@#ifndef _ASM_X86_TDX_H#define _ASM_X86_TDX_H -#include <linux/bits.h> #include <linux/init.h> #include <linux/bits.h> #include <asm/ptrace.h> #include <asm/shared/tdx.h> -#define TDX_HYPERCALL_STANDARD 0 - -#define TDX_HCALL_HAS_OUTPUT BIT(0) -#define TDX_HCALL_ISSUE_STI BIT(1) -/* * SW-defined error codes. *
@@ -42,21 +36,6 @@ struct tdx_module_output { };/* -* Used in __tdx_hypercall() to pass down and get back registers' values of -* the TDCALL instruction when requesting services from the VMM. -* -* This is a software only structure and not part of the TDX module/VMM ABI. -*/ -struct tdx_hypercall_args { -u64 r10; -u64 r11; -u64 r12; -u64 r13; -u64 r14; -u64 r15; -}; - -/* * Used by the #VE exception handler to gather the #VE exception * info from the TDX module. This is a software only structure * and not part of the TDX module/VMM ABI.
@@ -80,12 +59,6 @@ void __init tdx_early_init(void);u64 __tdx_module_call (u64 fn,u64 rcx,u64 rdx,u64 r8,u64 r9,struct tdx_module_output *out); -/* Used to request services from the VMM */ -u64 __tdx_hypercall (struct tdx_hypercall_args *args,unsigned long flags); - -/* Called from __tdx_hypercall() for unrecoverable failure */ -void __tdx_hypercall_failed (void ); -void tdx_get_ve_info (struct ve_info *ve);bool tdx_handle_virt_exception (struct pt_regs *regs,struct ve_info *ve);
PATCH v8 17/30 x86/tdx: Port I/O: add runtime hypercalls
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
TDX hypervisors cannot emulate instructions directly. This includes port I/O which is normally emulated in the hypervisor. All port I/O instructions inside TDX trigger the #VE exception in the guest and would be normally emulated there.
Use a hypercall to emulate port I/O. Extend the tdx_handle_virt_exception() and add support to handle the #VE due to port I/O instructions.
String I/O operations are not supported in TDX. Unroll them by declaring CC_ATTR_GUEST_UNROLL_STRING_IO confidential computing attribute.
== Userspace Implications ==
The ioperm() facility allows userspace access to I/O instructions like inb/outb. Among other things, this allows writing userspace device drivers.
This series has no special handling for ioperm(). Users will be able to successfully request I/O permissions but will induce a #VE on their first I/O instruction which leads SIGSEGV. If this is undesirable users can enable kernel lockdown feature with 'lockdown=integrity' kernel command line option. It makes ioperm() fail.
More robust handling of this situation (denying ioperm() in all TDX guests) will be addressed in follow-on work.
--- arch/x86/coco/core.c | 7 +++- arch/x86/coco/tdx/tdx.c | 79 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-)
arch/x86/coco/core.c +6 -1
@@ -18,7 +18,12 @@ static u64 cc_mask __ro_after_init;static bool intel_cc_platform_has (enum cc_attr attr) { -return false; +switch (attr) { +case CC_ATTR_GUEST_UNROLL_STRING_IO : +return true; +default : +return false; + } }/*
arch/x86/coco/tdx/tdx.c +79 -0
97 lines not on this page · raw message
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Port I/O: Add runtime hypercalls
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 03149948832a078f759022ed5b92e722d8d23c26 Gitweb: https://git.kernel.org/tip/03149948832a078f759022ed5b92e722d8d23c26 Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:26 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86/tdx: Port I/O: Add runtime hypercalls
TDX hypervisors cannot emulate instructions directly. This includes port I/O which is normally emulated in the hypervisor. All port I/O instructions inside TDX trigger the #VE exception in the guest and would be normally emulated there.
Use a hypercall to emulate port I/O. Extend the tdx_handle_virt_exception() and add support to handle the #VE due to port I/O instructions.
String I/O operations are not supported in TDX. Unroll them by declaring CC_ATTR_GUEST_UNROLL_STRING_IO confidential computing attribute.
== Userspace Implications ==
The ioperm() facility allows userspace access to I/O instructions like inb/outb. Among other things, this allows writing userspace device drivers.
This series has no special handling for ioperm(). Users will be able to successfully request I/O permissions but will induce a #VE on their first I/O instruction which leads SIGSEGV. If this is undesirable users can enable kernel lockdown feature with 'lockdown=integrity' kernel command line option. It makes ioperm() fail.
More robust handling of this situation (denying ioperm() in all TDX guests) will be addressed in follow-on work.
--- arch/x86/coco/core.c | 7 +++- arch/x86/coco/tdx/tdx.c | 79 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 85 insertions(+), 1 deletion(-)
arch/x86/coco/core.c +6 -1
@@ -18,7 +18,12 @@ static u64 cc_mask __ro_after_init;static bool intel_cc_platform_has (enum cc_attr attr) { -return false; +switch (attr) { +case CC_ATTR_GUEST_UNROLL_STRING_IO : +return true; +default : +return false; + } }/*
arch/x86/coco/tdx/tdx.c +79 -0
97 lines not on this page · raw message
PATCH v8 18/30 x86/tdx: Port I/O: add early boot support
In reply to Kirill A. ShutemovFrom: Andi Kleen <[email protected]>
TDX guests cannot do port I/O directly. The TDX module triggers a #VE exception to let the guest kernel emulate port I/O by converting them into TDCALLs to call the host.
But before IDT handlers are set up, port I/O cannot be emulated using normal kernel #VE handlers. To support the #VE-based emulation during this boot window, add a minimal early #VE handler support in early exception handlers. This is similar to what AMD SEV does. This is mainly to support earlyprintk's serial driver, as well as potentially the VGA driver.
The early handler only supports I/O-related #VE exceptions. Unhandled or failed exceptions will be handled via early_fixup_exceptions() (like normal exception failures). At runtime I/O-related #VE exceptions (along with other types) handled by virt_exception_kernel().
--- arch/x86/coco/tdx/tdx.c | 16 ++++++++++++++++ arch/x86/include/asm/tdx.h | 4 ++++ arch/x86/kernel/head64.c | 3 +++ 3 files changed, 23 insertions(+)
arch/x86/coco/tdx/tdx.c +16 -0
@@ -418,6 +418,22 @@ static bool handle_io(struct pt_regs *regs, u32 exit_qual)return handle_out (regs, size, port); } +/* +* Early #VE exception handler. Only handles a subset of port I/O. +* Intended only for earlyprintk. If failed, return false. +*/ +__init bool tdx_early_handle_ve (struct pt_regs *regs) +{ +struct ve_info ve; + +tdx_get_ve_info (&ve); + +if (ve.exit_reason !=EXIT_REASON_IO_INSTRUCTION ) +return false; + +return handle_io (regs, ve.exit_qual); +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
arch/x86/include/asm/tdx.h +4 -0
@@ -65,11 +65,15 @@ bool tdx_handle_virt_exception(struct pt_regs *regs, struct ve_info *ve);void tdx_safe_halt (void ); +bool tdx_early_handle_ve (struct pt_regs *regs); +#else static inline void tdx_early_init (void ) { };static inline void tdx_safe_halt (void ) { }; +static inline bool tdx_early_handle_ve (struct pt_regs *regs) {return false; } +#endif /* CONFIG_INTEL_TDX_GUEST */ #endif /* !__ASSEMBLY__ */
arch/x86/kernel/head64.c +3 -0
@@ -417,6 +417,9 @@ void __init do_early_exception(struct pt_regs *regs, int trapnr) trapnr == X86_TRAP_VC && handle_vc_boot_ghcb(regs)) return; +if (trapnr ==X86_TRAP_VE &&tdx_early_handle_ve (regs)) +return ; +early_fixup_exception (regs, trapnr); }
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Port I/O: Add early boot support
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 32e72854fa5fef6bc72e27c54f31897db9092acb Gitweb: https://git.kernel.org/tip/32e72854fa5fef6bc72e27c54f31897db9092acb Author: Andi Kleen <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:27 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86/tdx: Port I/O: Add early boot support
TDX guests cannot do port I/O directly. The TDX module triggers a #VE exception to let the guest kernel emulate port I/O by converting them into TDCALLs to call the host.
But before IDT handlers are set up, port I/O cannot be emulated using normal kernel #VE handlers. To support the #VE-based emulation during this boot window, add a minimal early #VE handler support in early exception handlers. This is similar to what AMD SEV does. This is mainly to support earlyprintk's serial driver, as well as potentially the VGA driver.
The early handler only supports I/O-related #VE exceptions. Unhandled or failed exceptions will be handled via early_fixup_exceptions() (like normal exception failures). At runtime I/O-related #VE exceptions (along with other types) handled by virt_exception_kernel().
--- arch/x86/coco/tdx/tdx.c | 16 ++++++++++++++++ arch/x86/include/asm/tdx.h | 4 ++++ arch/x86/kernel/head64.c | 3 +++ 3 files changed, 23 insertions(+)
arch/x86/coco/tdx/tdx.c +16 -0
@@ -418,6 +418,22 @@ static bool handle_io(struct pt_regs *regs, u32 exit_qual)return handle_out (regs, size, port); } +/* +* Early #VE exception handler. Only handles a subset of port I/O. +* Intended only for earlyprintk. If failed, return false. +*/ +__init bool tdx_early_handle_ve (struct pt_regs *regs) +{ +struct ve_info ve; + +tdx_get_ve_info (&ve); + +if (ve.exit_reason !=EXIT_REASON_IO_INSTRUCTION ) +return false; + +return handle_io (regs, ve.exit_qual); +} +void tdx_get_ve_info (struct ve_info *ve) {struct tdx_module_output out;
arch/x86/include/asm/tdx.h +4 -0
@@ -65,11 +65,15 @@ bool tdx_handle_virt_exception(struct pt_regs *regs, struct ve_info *ve);void tdx_safe_halt (void ); +bool tdx_early_handle_ve (struct pt_regs *regs); +#else static inline void tdx_early_init (void ) { };static inline void tdx_safe_halt (void ) { }; +static inline bool tdx_early_handle_ve (struct pt_regs *regs) {return false; } +#endif /* CONFIG_INTEL_TDX_GUEST */ #endif /* !__ASSEMBLY__ */
arch/x86/kernel/head64.c +3 -0
@@ -417,6 +417,9 @@ void __init do_early_exception(struct pt_regs *regs, int trapnr) trapnr == X86_TRAP_VC && handle_vc_boot_ghcb(regs)) return; +if (trapnr ==X86_TRAP_VE &&tdx_early_handle_ve (regs)) +return ; +early_fixup_exception (regs, trapnr); }
PATCH v8 19/30 x86/tdx: Wire up KVM hypercalls
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
KVM hypercalls use the VMCALL or VMMCALL instructions. Although the ABI is similar, those instructions no longer function for TDX guests.
Make vendor-specific TDVMCALLs instead of VMCALL. This enables TDX guests to run with KVM acting as the hypervisor.
Among other things, KVM hypercall is used to send IPIs.
Since the KVM driver can be built as a kernel module, export tdx_kvm_hypercall() to make the symbols visible to kvm.ko.
--- arch/x86/coco/tdx/tdx.c | 17 +++++++++++++++++ arch/x86/include/asm/kvm_para.h | 22 ++++++++++++++++++++++ arch/x86/include/asm/tdx.h | 11 +++++++++++ 3 files changed, 50 insertions(+)
arch/x86/coco/tdx/tdx.c +17 -0
@@ -64,6 +64,23 @@ static u64 hcall_func(u64 exit_reason)return exit_reason; } +#ifdef CONFIG_KVM_GUEST +long tdx_kvm_hypercall (unsigned int nr,unsigned long p1,unsigned long p2, +unsigned long p3,unsigned long p4) +{ +struct tdx_hypercall_args args = { + .r10 = nr, + .r11 = p1, + .r12 = p2, + .r13 = p3, + .r14 = p4, + }; + +return __tdx_hypercall (&args,0 ); +} +EXPORT_SYMBOL_GPL (tdx_kvm_hypercall); +#endif +/* * Used for TDX guests to make calls directly to the TD module. This * should only be used for calls that have no legitimate reason to fail
arch/x86/include/asm/kvm_para.h +22 -0
@@ -7,6 +7,8 @@#include <linux/interrupt.h> #include <uapi/asm/kvm_para.h> +#include <asm/tdx.h> +#ifdef CONFIG_KVM_GUEST bool kvm_check_and_clear_guest_paused (void );#else
@@ -32,6 +34,10 @@ static inline bool kvm_check_and_clear_guest_paused(void)static inline long kvm_hypercall0 (unsigned int nr) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr,0 ,0 ,0 ,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr)
@@ -42,6 +48,10 @@ static inline long kvm_hypercall0(unsigned int nr)static inline long kvm_hypercall1 (unsigned int nr,unsigned long p1) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1,0 ,0 ,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1)
@@ -53,6 +63,10 @@ static inline long kvm_hypercall2(unsigned int nr, unsigned long p1, unsigned long p2) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1, p2,0 ,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1), "c"(p2)
@@ -64,6 +78,10 @@ static inline long kvm_hypercall3(unsigned int nr, unsigned long p1, unsigned long p2, unsigned long p3) { long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1, p2, p3,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1), "c"(p2), "d"(p3)
@@ -76,6 +94,10 @@ static inline long kvm_hypercall4(unsigned int nr, unsigned long p1, unsigned long p4) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1, p2, p3, p4); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1), "c"(p2), "d"(p3), "S"(p4)
arch/x86/include/asm/tdx.h +11 -0
@@ -76,5 +76,16 @@ static inline bool tdx_early_handle_ve(struct pt_regs *regs) { return false; }#endif /* CONFIG_INTEL_TDX_GUEST */ +#if defined(CONFIG_KVM_GUEST ) && defined(CONFIG_INTEL_TDX_GUEST ) +long tdx_kvm_hypercall (unsigned int nr,unsigned long p1,unsigned long p2, +unsigned long p3,unsigned long p4); +#else +static inline long tdx_kvm_hypercall (unsigned int nr,unsigned long p1, +unsigned long p2,unsigned long p3, +unsigned long p4) +{ +return -ENODEV ; +} +#endif /* CONFIG_INTEL_TDX_GUEST && CONFIG_KVM_GUEST */ #endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_TDX_H */
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Wire up KVM hypercalls
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: cfb8ec7a31f234b4519c104f1cc9accbc8b393a9 Gitweb: https://git.kernel.org/tip/cfb8ec7a31f234b4519c104f1cc9accbc8b393a9 Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:28 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86/tdx: Wire up KVM hypercalls
KVM hypercalls use the VMCALL or VMMCALL instructions. Although the ABI is similar, those instructions no longer function for TDX guests.
Make vendor-specific TDVMCALLs instead of VMCALL. This enables TDX guests to run with KVM acting as the hypervisor.
Among other things, KVM hypercall is used to send IPIs.
Since the KVM driver can be built as a kernel module, export tdx_kvm_hypercall() to make the symbols visible to kvm.ko.
--- arch/x86/coco/tdx/tdx.c | 17 +++++++++++++++++ arch/x86/include/asm/kvm_para.h | 22 ++++++++++++++++++++++ arch/x86/include/asm/tdx.h | 11 +++++++++++ 3 files changed, 50 insertions(+)
arch/x86/coco/tdx/tdx.c +17 -0
@@ -64,6 +64,23 @@ static u64 hcall_func(u64 exit_reason)return exit_reason; } +#ifdef CONFIG_KVM_GUEST +long tdx_kvm_hypercall (unsigned int nr,unsigned long p1,unsigned long p2, +unsigned long p3,unsigned long p4) +{ +struct tdx_hypercall_args args = { + .r10 = nr, + .r11 = p1, + .r12 = p2, + .r13 = p3, + .r14 = p4, + }; + +return __tdx_hypercall (&args,0 ); +} +EXPORT_SYMBOL_GPL (tdx_kvm_hypercall); +#endif +/* * Used for TDX guests to make calls directly to the TD module. This * should only be used for calls that have no legitimate reason to fail
arch/x86/include/asm/kvm_para.h +22 -0
@@ -7,6 +7,8 @@#include <linux/interrupt.h> #include <uapi/asm/kvm_para.h> +#include <asm/tdx.h> +#ifdef CONFIG_KVM_GUEST bool kvm_check_and_clear_guest_paused (void );#else
@@ -32,6 +34,10 @@ static inline bool kvm_check_and_clear_guest_paused(void)static inline long kvm_hypercall0 (unsigned int nr) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr,0 ,0 ,0 ,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr)
@@ -42,6 +48,10 @@ static inline long kvm_hypercall0(unsigned int nr)static inline long kvm_hypercall1 (unsigned int nr,unsigned long p1) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1,0 ,0 ,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1)
@@ -53,6 +63,10 @@ static inline long kvm_hypercall2(unsigned int nr, unsigned long p1, unsigned long p2) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1, p2,0 ,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1), "c"(p2)
@@ -64,6 +78,10 @@ static inline long kvm_hypercall3(unsigned int nr, unsigned long p1, unsigned long p2, unsigned long p3) { long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1, p2, p3,0 ); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1), "c"(p2), "d"(p3)
@@ -76,6 +94,10 @@ static inline long kvm_hypercall4(unsigned int nr, unsigned long p1, unsigned long p4) {long ret; + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) +return tdx_kvm_hypercall (nr, p1, p2, p3, p4); + asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1), "c"(p2), "d"(p3), "S"(p4)
arch/x86/include/asm/tdx.h +11 -0
@@ -76,5 +76,16 @@ static inline bool tdx_early_handle_ve(struct pt_regs *regs) { return false; }#endif /* CONFIG_INTEL_TDX_GUEST */ +#if defined(CONFIG_KVM_GUEST ) && defined(CONFIG_INTEL_TDX_GUEST ) +long tdx_kvm_hypercall (unsigned int nr,unsigned long p1,unsigned long p2, +unsigned long p3,unsigned long p4); +#else +static inline long tdx_kvm_hypercall (unsigned int nr,unsigned long p1, +unsigned long p2,unsigned long p3, +unsigned long p4) +{ +return -ENODEV ; +} +#endif /* CONFIG_INTEL_TDX_GUEST && CONFIG_KVM_GUEST */ #endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_TDX_H */
PATCH v8 20/30 x86/boot: Add a trampoline for booting APs via firmware handoff
In reply to Kirill A. ShutemovFrom: Sean Christopherson <[email protected]>
Historically, x86 platforms have booted secondary processors (APs) using INIT followed by the start up IPI (SIPI) messages. In regular VMs, this boot sequence is supported by the VMM emulation. But such a wakeup model is fatal for secure VMs like TDX in which VMM is an untrusted entity. To address this issue, a new wakeup model was added in ACPI v6.4, in which firmware (like TDX virtual BIOS) will help boot the APs. More details about this wakeup model can be found in ACPI specification v6.4, the section titled "Multiprocessor Wakeup Structure".
Since the existing trampoline code requires processors to boot in real mode with 16-bit addressing, it will not work for this wakeup model (because it boots the AP in 64-bit mode). To handle it, extend the trampoline code to support 64-bit mode firmware handoff. Also, extend IDT and GDT pointers to support 64-bit mode hand off.
There is no TDX-specific detection for this new boot method. The kernel will rely on it as the sole boot method whenever the new ACPI structure is present.
The ACPI table parser for the MADT multiprocessor wake up structure and the wakeup method that uses this structure will be added by the following patch in this series.
--- arch/x86/include/asm/apic.h | 2 ++ arch/x86/include/asm/realmode.h | 1 + arch/x86/kernel/smpboot.c | 12 ++++++-- arch/x86/realmode/rm/header.S | 1 + arch/x86/realmode/rm/trampoline_64.S | 38 ++++++++++++++++++++++++ arch/x86/realmode/rm/trampoline_common.S | 12 +++++++- 6 files changed, 63 insertions(+), 3 deletions(-)
arch/x86/include/asm/apic.h +2 -0
@@ -328,6 +328,8 @@ struct apic {/* wakeup_secondary_cpu */ int (*wakeup_secondary_cpu)(int apicid,unsigned long start_eip); +/* wakeup secondary CPU using 64-bit wakeup point */ +int (*wakeup_secondary_cpu_64)(int apicid,unsigned long start_eip);void (*inquire_remote_apic)(int apicid);
arch/x86/include/asm/realmode.h +1 -0
@@ -25,6 +25,7 @@ struct real_mode_header {u32 sev_es_trampoline_start;#endif #ifdef CONFIG_X86_64 +u32 trampoline_start64;u32 trampoline_pgd;#endif /* ACPI S3 wakeup */
arch/x86/kernel/smpboot.c +10 -2
@@ -1082,6 +1082,11 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle,unsigned long boot_error =0 ;unsigned long timeout; +#ifdef CONFIG_X86_64 +/* If 64-bit wakeup method exists, use the 64-bit mode trampoline IP */ +if (apic->wakeup_secondary_cpu_64) + start_ip = real_mode_header->trampoline_start64; +#endif idle->thread.sp = (unsigned long )task_pt_regs (idle); early_gdt_descr.address = (unsigned long )get_cpu_gdt_rw (cpu); initial_code = (unsigned long )start_secondary;
@@ -1123,11 +1128,14 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle,/* * Wake up a CPU in difference cases: -* - Use the method in the APIC driver if it's defined +* - Use a method from the APIC driver if one defined, with wakeup +* straight to 64-bit mode preferred over wakeup to RM. * Otherwise, * - Use an INIT boot APIC message for APs or NMI for BSP. */ -if (apic->wakeup_secondary_cpu) +if (apic->wakeup_secondary_cpu_64) + boot_error = apic->wakeup_secondary_cpu_64 (apicid, start_ip); +else if (apic->wakeup_secondary_cpu) boot_error = apic->wakeup_secondary_cpu (apicid, start_ip);else boot_error = wakeup_cpu_via_init_nmi(cpu, start_ip, apicid,
arch/x86/realmode/rm/header.S +1 -0
@@ -24,6 +24,7 @@ SYM_DATA_START(real_mode_header) .long pa_sev_es_trampoline_start #endif #ifdef CONFIG_X86_64 + .long pa_trampoline_start64 .long pa_trampoline_pgd; #endif /* ACPI S3 wakeup */
arch/x86/realmode/rm/trampoline_64.S +38 -0
@@ -161,6 +161,19 @@ SYM_CODE_START(startup_32) ljmpl $__KERNEL_CS, $pa_startup_64 SYM_CODE_END(startup_32) +SYM_CODE_START(pa_trampoline_compat) + /* + * In compatibility mode. Prep ESP and DX for startup_32, then disable + * paging and complete the switch to legacy 32-bit mode. + */ + movl $rm_stack_end, %esp + movw $__KERNEL_DS, %dx + + movl $X86_CR0_PE, %eax + movl %eax, %cr0 + ljmpl $__KERNEL32_CS, $pa_startup_32 +SYM_CODE_END(pa_trampoline_compat) + .section ".text64","ax" .code64 .balign 4
@@ -169,6 +182,20 @@ SYM_CODE_START(startup_64) jmpq *tr_start(%rip) SYM_CODE_END(startup_64) +SYM_CODE_START(trampoline_start64) + /* + * APs start here on a direct transfer from 64-bit BIOS with identity + * mapped page tables. Load the kernel's GDT in order to gear down to + * 32-bit mode (to handle 4-level vs. 5-level paging), and to (re)load + * segment registers. Load the zero IDT so any fault triggers a + * shutdown instead of jumping back into BIOS. + */ + lidt tr_idt(%rip) + lgdt tr_gdt64(%rip) + + ljmpl *tr_compat(%rip) +SYM_CODE_END(trampoline_start64) + .section ".rodata","a" # Duplicate the global descriptor table # so the kernel can live anywhere
@@ -182,6 +209,17 @@ SYM_DATA_START(tr_gdt) .quad 0x00cf93000000ffff # __KERNEL_DS SYM_DATA_END_LABEL(tr_gdt, SYM_L_LOCAL, tr_gdt_end) +SYM_DATA_START(tr_gdt64) + .short tr_gdt_end - tr_gdt - 1 # gdt limit + .long pa_tr_gdt + .long 0 +SYM_DATA_END(tr_gdt64) + +SYM_DATA_START(tr_compat) + .long pa_trampoline_compat + .short __KERNEL32_CS +SYM_DATA_END(tr_compat) + .bss .balign PAGE_SIZE SYM_DATA(trampoline_pgd, .space PAGE_SIZE)
arch/x86/realmode/rm/trampoline_common.S +11 -1
@@ -1,4 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0 */ .section ".rodata","a" .balign 16 -SYM_DATA_LOCAL(tr_idt, .fill 1, 6, 0) + +/* + * When a bootloader hands off to the kernel in 32-bit mode an + * IDT with a 2-byte limit and 4-byte base is needed. When a boot + * loader hands off to a kernel 64-bit mode the base address + * extends to 8-bytes. Reserve enough space for either scenario. + */ +SYM_DATA_START_LOCAL(tr_idt) + .short 0 + .quad 0 +SYM_DATA_END(tr_idt)
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/boot: Add a trampoline for booting APs via firmware handoff
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: ff2e64684f153a61f6ae553e860af4b6ef2f4ca5 Gitweb: https://git.kernel.org/tip/ff2e64684f153a61f6ae553e860af4b6ef2f4ca5 Author: Sean Christopherson <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:29 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:52 -07:00
x86/boot: Add a trampoline for booting APs via firmware handoff
Historically, x86 platforms have booted secondary processors (APs) using INIT followed by the start up IPI (SIPI) messages. In regular VMs, this boot sequence is supported by the VMM emulation. But such a wakeup model is fatal for secure VMs like TDX in which VMM is an untrusted entity. To address this issue, a new wakeup model was added in ACPI v6.4, in which firmware (like TDX virtual BIOS) will help boot the APs. More details about this wakeup model can be found in ACPI specification v6.4, the section titled "Multiprocessor Wakeup Structure".
Since the existing trampoline code requires processors to boot in real mode with 16-bit addressing, it will not work for this wakeup model (because it boots the AP in 64-bit mode). To handle it, extend the trampoline code to support 64-bit mode firmware handoff. Also, extend IDT and GDT pointers to support 64-bit mode hand off.
There is no TDX-specific detection for this new boot method. The kernel will rely on it as the sole boot method whenever the new ACPI structure is present.
The ACPI table parser for the MADT multiprocessor wake up structure and the wakeup method that uses this structure will be added by the following patch in this series.
--- arch/x86/include/asm/apic.h | 2 +- arch/x86/include/asm/realmode.h | 1 +- arch/x86/kernel/smpboot.c | 12 +++++-- arch/x86/realmode/rm/header.S | 1 +- arch/x86/realmode/rm/trampoline_64.S | 38 +++++++++++++++++++++++- arch/x86/realmode/rm/trampoline_common.S | 12 ++++++- 6 files changed, 63 insertions(+), 3 deletions(-)
arch/x86/include/asm/apic.h +2 -0
@@ -328,6 +328,8 @@ struct apic {/* wakeup_secondary_cpu */ int (*wakeup_secondary_cpu)(int apicid,unsigned long start_eip); +/* wakeup secondary CPU using 64-bit wakeup point */ +int (*wakeup_secondary_cpu_64)(int apicid,unsigned long start_eip);void (*inquire_remote_apic)(int apicid);
arch/x86/include/asm/realmode.h +1 -0
@@ -25,6 +25,7 @@ struct real_mode_header {u32 sev_es_trampoline_start;#endif #ifdef CONFIG_X86_64 +u32 trampoline_start64;u32 trampoline_pgd;#endif /* ACPI S3 wakeup */
arch/x86/kernel/smpboot.c +10 -2
@@ -1082,6 +1082,11 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle,unsigned long boot_error =0 ;unsigned long timeout; +#ifdef CONFIG_X86_64 +/* If 64-bit wakeup method exists, use the 64-bit mode trampoline IP */ +if (apic->wakeup_secondary_cpu_64) + start_ip = real_mode_header->trampoline_start64; +#endif idle->thread.sp = (unsigned long )task_pt_regs (idle); early_gdt_descr.address = (unsigned long )get_cpu_gdt_rw (cpu); initial_code = (unsigned long )start_secondary;
@@ -1123,11 +1128,14 @@ static int do_boot_cpu(int apicid, int cpu, struct task_struct *idle,/* * Wake up a CPU in difference cases: -* - Use the method in the APIC driver if it's defined +* - Use a method from the APIC driver if one defined, with wakeup +* straight to 64-bit mode preferred over wakeup to RM. * Otherwise, * - Use an INIT boot APIC message for APs or NMI for BSP. */ -if (apic->wakeup_secondary_cpu) +if (apic->wakeup_secondary_cpu_64) + boot_error = apic->wakeup_secondary_cpu_64 (apicid, start_ip); +else if (apic->wakeup_secondary_cpu) boot_error = apic->wakeup_secondary_cpu (apicid, start_ip);else boot_error = wakeup_cpu_via_init_nmi(cpu, start_ip, apicid,
arch/x86/realmode/rm/header.S +1 -0
@@ -24,6 +24,7 @@ SYM_DATA_START(real_mode_header) .long pa_sev_es_trampoline_start #endif #ifdef CONFIG_X86_64 + .long pa_trampoline_start64 .long pa_trampoline_pgd; #endif /* ACPI S3 wakeup */
arch/x86/realmode/rm/trampoline_64.S +38 -0
@@ -161,6 +161,19 @@ SYM_CODE_START(startup_32) ljmpl $__KERNEL_CS, $pa_startup_64 SYM_CODE_END(startup_32) +SYM_CODE_START(pa_trampoline_compat) + /* + * In compatibility mode. Prep ESP and DX for startup_32, then disable + * paging and complete the switch to legacy 32-bit mode. + */ + movl $rm_stack_end, %esp + movw $__KERNEL_DS, %dx + + movl $X86_CR0_PE, %eax + movl %eax, %cr0 + ljmpl $__KERNEL32_CS, $pa_startup_32 +SYM_CODE_END(pa_trampoline_compat) + .section ".text64","ax" .code64 .balign 4
@@ -169,6 +182,20 @@ SYM_CODE_START(startup_64) jmpq *tr_start(%rip) SYM_CODE_END(startup_64) +SYM_CODE_START(trampoline_start64) + /* + * APs start here on a direct transfer from 64-bit BIOS with identity + * mapped page tables. Load the kernel's GDT in order to gear down to + * 32-bit mode (to handle 4-level vs. 5-level paging), and to (re)load + * segment registers. Load the zero IDT so any fault triggers a + * shutdown instead of jumping back into BIOS. + */ + lidt tr_idt(%rip) + lgdt tr_gdt64(%rip) + + ljmpl *tr_compat(%rip) +SYM_CODE_END(trampoline_start64) + .section ".rodata","a" # Duplicate the global descriptor table # so the kernel can live anywhere
@@ -182,6 +209,17 @@ SYM_DATA_START(tr_gdt) .quad 0x00cf93000000ffff # __KERNEL_DS SYM_DATA_END_LABEL(tr_gdt, SYM_L_LOCAL, tr_gdt_end) +SYM_DATA_START(tr_gdt64) + .short tr_gdt_end - tr_gdt - 1 # gdt limit + .long pa_tr_gdt + .long 0 +SYM_DATA_END(tr_gdt64) + +SYM_DATA_START(tr_compat) + .long pa_trampoline_compat + .short __KERNEL32_CS +SYM_DATA_END(tr_compat) + .bss .balign PAGE_SIZE SYM_DATA(trampoline_pgd, .space PAGE_SIZE)
arch/x86/realmode/rm/trampoline_common.S +11 -1
@@ -1,4 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0 */ .section ".rodata","a" .balign 16 -SYM_DATA_LOCAL(tr_idt, .fill 1, 6, 0) + +/* + * When a bootloader hands off to the kernel in 32-bit mode an + * IDT with a 2-byte limit and 4-byte base is needed. When a boot + * loader hands off to a kernel 64-bit mode the base address + * extends to 8-bytes. Reserve enough space for either scenario. + */ +SYM_DATA_START_LOCAL(tr_idt) + .short 0 + .quad 0 +SYM_DATA_END(tr_idt)
PATCH v8 21/30 x86/acpi, x86/boot: Add multiprocessor wake-up support
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
Secondary CPU startup is currently performed with something called the "INIT/SIPI protocol". This protocol requires assistance from VMMs to boot guests. As should be a familiar story by now, that support can not be provded to TDX guests because TDX VMMs are not trusted by guests.
To remedy this situation a new[1] "Multiprocessor Wakeup Structure" has been added to to an existing ACPI table (MADT). This structure provides the physical address of a "mailbox". A write to the mailbox then steers the secondary CPU to the boot code.
Add ACPI MADT wake structure parsing support and wake support. Use this support to wake CPUs whenever it is present instead of INIT/SIPI.
While this structure can theoretically be used on 32-bit kernels, there are no 32-bit TDX guest kernels. It has not been tested and can not practically *be* tested on 32-bit. Make it 64-bit only.
1. Details about the new structure can be found in ACPI v6.4, in the "Multiprocessor Wakeup Structure" section.
--- arch/x86/include/asm/apic.h | 5 ++ arch/x86/kernel/acpi/boot.c | 93 ++++++++++++++++++++++++++++++++++++- arch/x86/kernel/apic/apic.c | 10 ++++ 3 files changed, 107 insertions(+), 1 deletion(-)
arch/x86/include/asm/apic.h +5 -0
@@ -490,6 +490,11 @@ static inline unsigned int read_apic_id(void)return apic->get_apic_id (reg); } +#ifdef CONFIG_X86_64 +typedef int (*wakeup_cpu_handler )(int apicid,unsigned long start_eip); +extern void acpi_wake_cpu_handler_update (wakeup_cpu_handler handler); +#endif +extern int default_apic_id_valid (u32 apicid);extern int default_acpi_madt_oem_check (char *,char *);extern void default_setup_apic_routing (void );
arch/x86/kernel/acpi/boot.c +92 -1
117 lines not on this page · raw message
arch/x86/kernel/apic/apic.c +10 -0
@@ -2551,6 +2551,16 @@ u32 x86_msi_msg_get_destid(struct msi_msg *msg, bool extid) }EXPORT_SYMBOL_GPL (x86_msi_msg_get_destid); +#ifdef CONFIG_X86_64 +void __init acpi_wake_cpu_handler_update (wakeup_cpu_handler handler) +{ +struct apic **drv; + +for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) + (*drv)->wakeup_secondary_cpu_64 = handler; +} +#endif +/* * Override the generic EOI implementation with an optimized version. * Only called during early boot when only one CPU is active and with
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/acpi/x86/boot: Add multiprocessor wake-up support
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: f39642d0dbacded8b4a816a9197a73efb74e5702 Gitweb: https://git.kernel.org/tip/f39642d0dbacded8b4a816a9197a73efb74e5702 Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:30 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/acpi/x86/boot: Add multiprocessor wake-up support
Secondary CPU startup is currently performed with something called the "INIT/SIPI protocol". This protocol requires assistance from VMMs to boot guests. As should be a familiar story by now, that support can not be provded to TDX guests because TDX VMMs are not trusted by guests.
To remedy this situation a new[1] "Multiprocessor Wakeup Structure" has been added to to an existing ACPI table (MADT). This structure provides the physical address of a "mailbox". A write to the mailbox then steers the secondary CPU to the boot code.
Add ACPI MADT wake structure parsing support and wake support. Use this support to wake CPUs whenever it is present instead of INIT/SIPI.
While this structure can theoretically be used on 32-bit kernels, there are no 32-bit TDX guest kernels. It has not been tested and can not practically *be* tested on 32-bit. Make it 64-bit only.
1. Details about the new structure can be found in ACPI v6.4, in the "Multiprocessor Wakeup Structure" section.
--- arch/x86/include/asm/apic.h | 5 ++- arch/x86/kernel/acpi/boot.c | 93 +++++++++++++++++++++++++++++++++++- arch/x86/kernel/apic/apic.c | 10 ++++- 3 files changed, 107 insertions(+), 1 deletion(-)
arch/x86/include/asm/apic.h +5 -0
@@ -490,6 +490,11 @@ static inline unsigned int read_apic_id(void)return apic->get_apic_id (reg); } +#ifdef CONFIG_X86_64 +typedef int (*wakeup_cpu_handler )(int apicid,unsigned long start_eip); +extern void acpi_wake_cpu_handler_update (wakeup_cpu_handler handler); +#endif +extern int default_apic_id_valid (u32 apicid);extern int default_acpi_madt_oem_check (char *,char *);extern void default_setup_apic_routing (void );
arch/x86/kernel/acpi/boot.c +92 -1
117 lines not on this page · raw message
arch/x86/kernel/apic/apic.c +10 -0
@@ -2551,6 +2551,16 @@ u32 x86_msi_msg_get_destid(struct msi_msg *msg, bool extid) }EXPORT_SYMBOL_GPL (x86_msi_msg_get_destid); +#ifdef CONFIG_X86_64 +void __init acpi_wake_cpu_handler_update (wakeup_cpu_handler handler) +{ +struct apic **drv; + +for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) + (*drv)->wakeup_secondary_cpu_64 = handler; +} +#endif +/* * Override the generic EOI implementation with an optimized version. * Only called during early boot when only one CPU is active and with
PATCH v8 22/30 x86/boot: Set CR0.NE early and keep it set during the boot
In reply to Kirill A. ShutemovTDX guest requires CR0.NE to be set. Clearing the bit triggers #GP(0).
If CR0.NE is 0, the MS-DOS compatibility mode for handling floating-point exceptions is selected. In this mode, the software exception handler for floating-point exceptions is invoked externally using the processor’s FERR#, INTR, and IGNNE# pins.
Using FERR# and IGNNE# to handle floating-point exception is deprecated. CR0.NE=0 also limits newer processors to operate with one logical processor active.
Kernel uses CR0_STATE constant to initialize CR0. It has NE bit set. But during early boot kernel has more ad-hoc approach to setting bit in the register. During some of this ad-hoc manipulation, CR0.NE is cleared. This causes a #GP in TDX guests and makes it die in early boot.
Make CR0 initialization consistent, deriving the initial value of CR0 from CR0_STATE. Since CR0_STATE always has CR0.NE=1, this ensures that CR0.NE is never 0 and avoids the #GP.
--- arch/x86/boot/compressed/head_64.S | 7 ++++--- arch/x86/realmode/rm/trampoline_64.S | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-)
arch/x86/boot/compressed/head_64.S +4 -3
@@ -289,7 +289,7 @@ SYM_FUNC_START(startup_32) pushl %eax /* Enter paged protected Mode, activating Long Mode */ - movl $(X86_CR0_PG | X86_CR0_PE), %eax /* Enable Paging and Protected mode */ + movl $CR0_STATE, %eax movl %eax, %cr0 /* Jump from 32bit compatibility mode into 64bit mode. */
@@ -661,8 +661,9 @@ SYM_CODE_START(trampoline_32bit_src) pushl $__KERNEL_CS pushl %eax - /* Enable paging again */ - movl $(X86_CR0_PG | X86_CR0_PE), %eax + /* Enable paging again. */ + movl %cr0, %eax + btsl $X86_CR0_PG_BIT, %eax movl %eax, %cr0 lret
arch/x86/realmode/rm/trampoline_64.S +4 -4
@@ -70,7 +70,7 @@ SYM_CODE_START(trampoline_start) movw $__KERNEL_DS, %dx # Data segment descriptor # Enable protected mode - movl $X86_CR0_PE, %eax # protected mode (PE) bit + movl $(CR0_STATE & ~X86_CR0_PG), %eax movl %eax, %cr0 # into protected mode # flush prefetch and jump to startup_32
@@ -148,8 +148,8 @@ SYM_CODE_START(startup_32) movl $MSR_EFER, %ecx wrmsr - # Enable paging and in turn activate Long Mode - movl $(X86_CR0_PG | X86_CR0_WP | X86_CR0_PE), %eax + # Enable paging and in turn activate Long Mode. + movl $CR0_STATE, %eax movl %eax, %cr0 /*
@@ -169,7 +169,7 @@ SYM_CODE_START(pa_trampoline_compat) movl $rm_stack_end, %esp movw $__KERNEL_DS, %dx - movl $X86_CR0_PE, %eax + movl $(CR0_STATE & ~X86_CR0_PG), %eax movl %eax, %cr0 ljmpl $__KERNEL32_CS, $pa_startup_32 SYM_CODE_END(pa_trampoline_compat)
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/boot: Set CR0.NE early and keep it set during the boot
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 9cf30606405f37b68ee1c0f6846253313c077088 Gitweb: https://git.kernel.org/tip/9cf30606405f37b68ee1c0f6846253313c077088 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:31 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/boot: Set CR0.NE early and keep it set during the boot
TDX guest requires CR0.NE to be set. Clearing the bit triggers #GP(0).
If CR0.NE is 0, the MS-DOS compatibility mode for handling floating-point exceptions is selected. In this mode, the software exception handler for floating-point exceptions is invoked externally using the processor’s FERR#, INTR, and IGNNE# pins.
Using FERR# and IGNNE# to handle floating-point exception is deprecated. CR0.NE=0 also limits newer processors to operate with one logical processor active.
Kernel uses CR0_STATE constant to initialize CR0. It has NE bit set. But during early boot kernel has more ad-hoc approach to setting bit in the register. During some of this ad-hoc manipulation, CR0.NE is cleared. This causes a #GP in TDX guests and makes it die in early boot.
Make CR0 initialization consistent, deriving the initial value of CR0 from CR0_STATE. Since CR0_STATE always has CR0.NE=1, this ensures that CR0.NE is never 0 and avoids the #GP.
--- arch/x86/boot/compressed/head_64.S | 7 ++++--- arch/x86/realmode/rm/trampoline_64.S | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-)
arch/x86/boot/compressed/head_64.S +4 -3
@@ -289,7 +289,7 @@ SYM_FUNC_START(startup_32) pushl %eax /* Enter paged protected Mode, activating Long Mode */ - movl $(X86_CR0_PG | X86_CR0_PE), %eax /* Enable Paging and Protected mode */ + movl $CR0_STATE, %eax movl %eax, %cr0 /* Jump from 32bit compatibility mode into 64bit mode. */
@@ -661,8 +661,9 @@ SYM_CODE_START(trampoline_32bit_src) pushl $__KERNEL_CS pushl %eax - /* Enable paging again */ - movl $(X86_CR0_PG | X86_CR0_PE), %eax + /* Enable paging again. */ + movl %cr0, %eax + btsl $X86_CR0_PG_BIT, %eax movl %eax, %cr0 lret
arch/x86/realmode/rm/trampoline_64.S +4 -4
@@ -70,7 +70,7 @@ SYM_CODE_START(trampoline_start) movw $__KERNEL_DS, %dx # Data segment descriptor # Enable protected mode - movl $X86_CR0_PE, %eax # protected mode (PE) bit + movl $(CR0_STATE & ~X86_CR0_PG), %eax movl %eax, %cr0 # into protected mode # flush prefetch and jump to startup_32
@@ -148,8 +148,8 @@ SYM_CODE_START(startup_32) movl $MSR_EFER, %ecx wrmsr - # Enable paging and in turn activate Long Mode - movl $(X86_CR0_PG | X86_CR0_WP | X86_CR0_PE), %eax + # Enable paging and in turn activate Long Mode. + movl $CR0_STATE, %eax movl %eax, %cr0 /*
@@ -169,7 +169,7 @@ SYM_CODE_START(pa_trampoline_compat) movl $rm_stack_end, %esp movw $__KERNEL_DS, %dx - movl $X86_CR0_PE, %eax + movl $(CR0_STATE & ~X86_CR0_PG), %eax movl %eax, %cr0 ljmpl $__KERNEL32_CS, $pa_startup_32 SYM_CODE_END(pa_trampoline_compat)
PATCH v8 23/30 x86/boot: Avoid #VE during boot for TDX platforms
In reply to Kirill A. ShutemovFrom: Sean Christopherson <[email protected]>
There are a few MSRs and control register bits that the kernel normally needs to modify during boot. But, TDX disallows modification of these registers to help provide consistent security guarantees. Fortunately, TDX ensures that these are all in the correct state before the kernel loads, which means the kernel does not need to modify them.
The conditions to avoid are:
* Any writes to the EFER MSR
* Clearing CR4.MCE
This theoretically makes the guest boot more fragile. If, for instance, EFER was set up incorrectly and a WRMSR was performed, it will trigger early exception panic or a triple fault, if it's before early exceptions are set up. However, this is likely to trip up the guest BIOS long before control reaches the kernel. In any case, these kinds of problems are unlikely to occur in production environments, and developers have good debug tools to fix them quickly.
Change the common boot code to work on TDX and non-TDX systems. This should have no functional effect on non-TDX systems.
--- arch/x86/Kconfig | 1 + arch/x86/boot/compressed/head_64.S | 20 ++++++++++++++++++-- arch/x86/boot/compressed/pgtable.h | 2 +- arch/x86/kernel/head_64.S | 28 ++++++++++++++++++++++++++-- arch/x86/realmode/rm/trampoline_64.S | 13 ++++++++++++- 5 files changed, 58 insertions(+), 6 deletions(-)
arch/x86/Kconfig +1 -0
@@ -884,6 +884,7 @@ config INTEL_TDX_GUEST depends on X86_X2APIC select ARCH_HAS_CC_PLATFORM select DYNAMIC_PHYSICAL_MASK + select X86_MCE help Support running as a guest under Intel TDX. Without this support, the guest kernel can not boot or run under TDX.
arch/x86/boot/compressed/head_64.S +18 -2
@@ -642,12 +642,28 @@ SYM_CODE_START(trampoline_32bit_src) movl $MSR_EFER, %ecx rdmsr btsl $_EFER_LME, %eax + /* Avoid writing EFER if no change was made (for TDX guest) */ + jc 1f wrmsr - popl %edx +1: popl %edx popl %ecx +#ifdef CONFIG_X86_MCE + /* + * Preserve CR4.MCE if the kernel will enable #MC support. + * Clearing MCE may fault in some environments (that also force #MC + * support). Any machine check that occurs before #MC support is fully + * configured will crash the system regardless of the CR4.MCE value set + * here. + */ + movl %cr4, %eax + andl $X86_CR4_MCE, %eax +#else + movl $0, %eax +#endif + /* Enable PAE and LA57 (if required) paging modes */ - movl $X86_CR4_PAE, %eax + orl $X86_CR4_PAE, %eax testl %edx, %edx jz 1f orl $X86_CR4_LA57, %eax
arch/x86/boot/compressed/pgtable.h +1 -1
@@ -6,7 +6,7 @@#define TRAMPOLINE_32BIT_PGTABLE_OFFSET 0#define TRAMPOLINE_32BIT_CODE_OFFSET PAGE_SIZE -#define TRAMPOLINE_32BIT_CODE_SIZE 0x70 +#define TRAMPOLINE_32BIT_CODE_SIZE 0x80#define TRAMPOLINE_32BIT_STACK_END TRAMPOLINE_32BIT_SIZE
arch/x86/kernel/head_64.S +26 -2
@@ -142,8 +142,22 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL) addq $(init_top_pgt - __START_KERNEL_map), %rax 1: +#ifdef CONFIG_X86_MCE + /* + * Preserve CR4.MCE if the kernel will enable #MC support. + * Clearing MCE may fault in some environments (that also force #MC + * support). Any machine check that occurs before #MC support is fully + * configured will crash the system regardless of the CR4.MCE value set + * here. + */ + movq %cr4, %rcx + andl $X86_CR4_MCE, %ecx +#else + movl $0, %ecx +#endif + /* Enable PAE mode, PGE and LA57 */ - movl $(X86_CR4_PAE | X86_CR4_PGE), %ecx + orl $(X86_CR4_PAE | X86_CR4_PGE), %ecx #ifdef CONFIG_X86_5LEVEL testl $1, __pgtable_l5_enabled(%rip) jz 1f
@@ -249,13 +263,23 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL) /* Setup EFER (Extended Feature Enable Register) */ movl $MSR_EFER, %ecx rdmsr + /* + * Preserve current value of EFER for comparison and to skip + * EFER writes if no change was made (for TDX guest) + */ + movl %eax, %edx btsl $_EFER_SCE, %eax /* Enable System Call */ btl $20,%edi /* No Execute supported? */ jnc 1f btsl $_EFER_NX, %eax btsq $_PAGE_BIT_NX,early_pmd_flags(%rip) -1: wrmsr /* Make changes effective */ + /* Avoid writing EFER if no change was made (for TDX guest) */ +1: cmpl %edx, %eax + je 1f + xor %edx, %edx + wrmsr /* Make changes effective */ +1: /* Setup cr0 */ movl $CR0_STATE, %eax /* Make changes effective */
arch/x86/realmode/rm/trampoline_64.S +12 -1
@@ -143,11 +143,22 @@ SYM_CODE_START(startup_32) movl %eax, %cr3 # Set up EFER + movl $MSR_EFER, %ecx + rdmsr + /* + * Skip writing to EFER if the register already has desired + * value (to avoid #VE for the TDX guest). + */ + cmp pa_tr_efer, %eax + jne .Lwrite_efer + cmp pa_tr_efer + 4, %edx + je .Ldone_efer +.Lwrite_efer: movl pa_tr_efer, %eax movl pa_tr_efer + 4, %edx - movl $MSR_EFER, %ecx wrmsr +.Ldone_efer: # Enable paging and in turn activate Long Mode. movl $CR0_STATE, %eax movl %eax, %cr0
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/boot: Avoid #VE during boot for TDX platforms
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 77a512e35db7609a8c909e2006b2ea82f2b1616f Gitweb: https://git.kernel.org/tip/77a512e35db7609a8c909e2006b2ea82f2b1616f Author: Sean Christopherson <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:32 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/boot: Avoid #VE during boot for TDX platforms
There are a few MSRs and control register bits that the kernel normally needs to modify during boot. But, TDX disallows modification of these registers to help provide consistent security guarantees. Fortunately, TDX ensures that these are all in the correct state before the kernel loads, which means the kernel does not need to modify them.
The conditions to avoid are:
* Any writes to the EFER MSR
* Clearing CR4.MCE
This theoretically makes the guest boot more fragile. If, for instance, EFER was set up incorrectly and a WRMSR was performed, it will trigger early exception panic or a triple fault, if it's before early exceptions are set up. However, this is likely to trip up the guest BIOS long before control reaches the kernel. In any case, these kinds of problems are unlikely to occur in production environments, and developers have good debug tools to fix them quickly.
Change the common boot code to work on TDX and non-TDX systems. This should have no functional effect on non-TDX systems.
--- arch/x86/Kconfig | 1 +- arch/x86/boot/compressed/head_64.S | 20 +++++++++++++++++-- arch/x86/boot/compressed/pgtable.h | 2 +- arch/x86/kernel/head_64.S | 28 +++++++++++++++++++++++++-- arch/x86/realmode/rm/trampoline_64.S | 13 ++++++++++++- 5 files changed, 58 insertions(+), 6 deletions(-)
arch/x86/Kconfig +1 -0
@@ -884,6 +884,7 @@ config INTEL_TDX_GUEST depends on X86_X2APIC select ARCH_HAS_CC_PLATFORM select DYNAMIC_PHYSICAL_MASK + select X86_MCE help Support running as a guest under Intel TDX. Without this support, the guest kernel can not boot or run under TDX.
arch/x86/boot/compressed/head_64.S +18 -2
@@ -642,12 +642,28 @@ SYM_CODE_START(trampoline_32bit_src) movl $MSR_EFER, %ecx rdmsr btsl $_EFER_LME, %eax + /* Avoid writing EFER if no change was made (for TDX guest) */ + jc 1f wrmsr - popl %edx +1: popl %edx popl %ecx +#ifdef CONFIG_X86_MCE + /* + * Preserve CR4.MCE if the kernel will enable #MC support. + * Clearing MCE may fault in some environments (that also force #MC + * support). Any machine check that occurs before #MC support is fully + * configured will crash the system regardless of the CR4.MCE value set + * here. + */ + movl %cr4, %eax + andl $X86_CR4_MCE, %eax +#else + movl $0, %eax +#endif + /* Enable PAE and LA57 (if required) paging modes */ - movl $X86_CR4_PAE, %eax + orl $X86_CR4_PAE, %eax testl %edx, %edx jz 1f orl $X86_CR4_LA57, %eax
arch/x86/boot/compressed/pgtable.h +1 -1
@@ -6,7 +6,7 @@#define TRAMPOLINE_32BIT_PGTABLE_OFFSET 0#define TRAMPOLINE_32BIT_CODE_OFFSET PAGE_SIZE -#define TRAMPOLINE_32BIT_CODE_SIZE 0x70 +#define TRAMPOLINE_32BIT_CODE_SIZE 0x80#define TRAMPOLINE_32BIT_STACK_END TRAMPOLINE_32BIT_SIZE
arch/x86/kernel/head_64.S +26 -2
@@ -142,8 +142,22 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL) addq $(init_top_pgt - __START_KERNEL_map), %rax 1: +#ifdef CONFIG_X86_MCE + /* + * Preserve CR4.MCE if the kernel will enable #MC support. + * Clearing MCE may fault in some environments (that also force #MC + * support). Any machine check that occurs before #MC support is fully + * configured will crash the system regardless of the CR4.MCE value set + * here. + */ + movq %cr4, %rcx + andl $X86_CR4_MCE, %ecx +#else + movl $0, %ecx +#endif + /* Enable PAE mode, PGE and LA57 */ - movl $(X86_CR4_PAE | X86_CR4_PGE), %ecx + orl $(X86_CR4_PAE | X86_CR4_PGE), %ecx #ifdef CONFIG_X86_5LEVEL testl $1, __pgtable_l5_enabled(%rip) jz 1f
@@ -249,13 +263,23 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL) /* Setup EFER (Extended Feature Enable Register) */ movl $MSR_EFER, %ecx rdmsr + /* + * Preserve current value of EFER for comparison and to skip + * EFER writes if no change was made (for TDX guest) + */ + movl %eax, %edx btsl $_EFER_SCE, %eax /* Enable System Call */ btl $20,%edi /* No Execute supported? */ jnc 1f btsl $_EFER_NX, %eax btsq $_PAGE_BIT_NX,early_pmd_flags(%rip) -1: wrmsr /* Make changes effective */ + /* Avoid writing EFER if no change was made (for TDX guest) */ +1: cmpl %edx, %eax + je 1f + xor %edx, %edx + wrmsr /* Make changes effective */ +1: /* Setup cr0 */ movl $CR0_STATE, %eax /* Make changes effective */
arch/x86/realmode/rm/trampoline_64.S +12 -1
@@ -143,11 +143,22 @@ SYM_CODE_START(startup_32) movl %eax, %cr3 # Set up EFER + movl $MSR_EFER, %ecx + rdmsr + /* + * Skip writing to EFER if the register already has desired + * value (to avoid #VE for the TDX guest). + */ + cmp pa_tr_efer, %eax + jne .Lwrite_efer + cmp pa_tr_efer + 4, %edx + je .Ldone_efer +.Lwrite_efer: movl pa_tr_efer, %eax movl pa_tr_efer + 4, %edx - movl $MSR_EFER, %ecx wrmsr +.Ldone_efer: # Enable paging and in turn activate Long Mode. movl $CR0_STATE, %eax movl %eax, %cr0
PATCH v8 24/30 x86/topology: Disable CPU online/offline control for TDX guests
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
Unlike regular VMs, TDX guests use the firmware hand-off wakeup method to wake up the APs during the boot process. This wakeup model uses a mailbox to communicate with firmware to bring up the APs. As per the design, this mailbox can only be used once for the given AP, which means after the APs are booted, the same mailbox cannot be used to offline/online the given AP. More details about this requirement can be found in Intel TDX Virtual Firmware Design Guide, sec titled "AP initialization in OS" and in sec titled "Hotplug Device".
Since the architecture does not support any method of offlining the CPUs, disable CPU hotplug support in the kernel.
Since this hotplug disable feature can be re-used by other VM guests, add a new CC attribute CC_ATTR_HOTPLUG_DISABLED and use it to disable the hotplug support.
Attempt to offline CPU will fail with -EOPNOTSUPP.
--- arch/x86/coco/core.c | 1 + include/linux/cc_platform.h | 10 ++++++++++ kernel/cpu.c | 7 +++++++ 3 files changed, 18 insertions(+)
arch/x86/coco/core.c +1 -0
@@ -20,6 +20,7 @@ static bool intel_cc_platform_has(enum cc_attr attr) {switch (attr) {case CC_ATTR_GUEST_UNROLL_STRING_IO : +case CC_ATTR_HOTPLUG_DISABLED :return true;default :return false;
include/linux/cc_platform.h +10 -0
@@ -72,6 +72,16 @@ enum cc_attr {* Examples include TDX guest & SEV. */ CC_ATTR_GUEST_UNROLL_STRING_IO , + +/** +* @CC_ATTR_HOTPLUG_DISABLED: Hotplug is not supported or disabled. +* +* The platform/OS is running as a guest/virtual machine does not +* support CPU hotplug feature. +* +* Examples include TDX Guest. +*/ + CC_ATTR_HOTPLUG_DISABLED, };#ifdef CONFIG_ARCH_HAS_CC_PLATFORM
kernel/cpu.c +7 -0
@@ -35,6 +35,7 @@#include <linux/percpu-rwsem.h> #include <linux/cpuset.h> #include <linux/random.h> +#include <linux/cc_platform.h> #include <trace/events/power.h> #define CREATE_TRACE_POINTS
@@ -1186,6 +1187,12 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen,static int cpu_down_maps_locked (unsigned int cpu,enum cpuhp_state target) { +/* +* If the platform does not support hotplug, report it explicitly to +* differentiate it from a transient offlining failure. +*/ +if (cc_platform_has (CC_ATTR_HOTPLUG_DISABLED )) +return -EOPNOTSUPP ;if (cpu_hotplug_disabled)return -EBUSY ;return _cpu_down (cpu,0 , target);
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/topology: Disable CPU online/offline control for TDX guests
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: bae1a962ac2c5e6be08319ff3f7d6df542584fce Gitweb: https://git.kernel.org/tip/bae1a962ac2c5e6be08319ff3f7d6df542584fce Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:33 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/topology: Disable CPU online/offline control for TDX guests
Unlike regular VMs, TDX guests use the firmware hand-off wakeup method to wake up the APs during the boot process. This wakeup model uses a mailbox to communicate with firmware to bring up the APs. As per the design, this mailbox can only be used once for the given AP, which means after the APs are booted, the same mailbox cannot be used to offline/online the given AP. More details about this requirement can be found in Intel TDX Virtual Firmware Design Guide, sec titled "AP initialization in OS" and in sec titled "Hotplug Device".
Since the architecture does not support any method of offlining the CPUs, disable CPU hotplug support in the kernel.
Since this hotplug disable feature can be re-used by other VM guests, add a new CC attribute CC_ATTR_HOTPLUG_DISABLED and use it to disable the hotplug support.
Attempt to offline CPU will fail with -EOPNOTSUPP.
--- arch/x86/coco/core.c | 1 + include/linux/cc_platform.h | 10 ++++++++++ kernel/cpu.c | 7 +++++++ 3 files changed, 18 insertions(+)
arch/x86/coco/core.c +1 -0
@@ -20,6 +20,7 @@ static bool intel_cc_platform_has(enum cc_attr attr) {switch (attr) {case CC_ATTR_GUEST_UNROLL_STRING_IO : +case CC_ATTR_HOTPLUG_DISABLED :return true;default :return false;
include/linux/cc_platform.h +10 -0
@@ -72,6 +72,16 @@ enum cc_attr {* Examples include TDX guest & SEV. */ CC_ATTR_GUEST_UNROLL_STRING_IO , + +/** +* @CC_ATTR_HOTPLUG_DISABLED: Hotplug is not supported or disabled. +* +* The platform/OS is running as a guest/virtual machine does not +* support CPU hotplug feature. +* +* Examples include TDX Guest. +*/ + CC_ATTR_HOTPLUG_DISABLED, };#ifdef CONFIG_ARCH_HAS_CC_PLATFORM
kernel/cpu.c +7 -0
@@ -35,6 +35,7 @@#include <linux/percpu-rwsem.h> #include <linux/cpuset.h> #include <linux/random.h> +#include <linux/cc_platform.h> #include <trace/events/power.h> #define CREATE_TRACE_POINTS
@@ -1186,6 +1187,12 @@ out:static int cpu_down_maps_locked (unsigned int cpu,enum cpuhp_state target) { +/* +* If the platform does not support hotplug, report it explicitly to +* differentiate it from a transient offlining failure. +*/ +if (cc_platform_has (CC_ATTR_HOTPLUG_DISABLED )) +return -EOPNOTSUPP ;if (cpu_hotplug_disabled)return -EBUSY ;return _cpu_down (cpu,0 , target);
PATCH v8 25/30 x86/tdx: Make pages shared in ioremap()
In reply to Kirill A. ShutemovIn TDX guests, guest memory is protected from host access. If a guest performs I/O, it needs to explicitly share the I/O memory with the host.
Make all ioremap()ed pages that are not backed by normal memory (IORES_DESC_NONE or IORES_DESC_RESERVED) mapped as shared.
The permissions in PAGE_KERNEL_IO already work for "decrypted" memory on AMD SEV/SME systems. That means that they have no need to make a pgprot_decrypted() call.
TDX guests, on the other hand, _need_ change to PAGE_KERNEL_IO for "decrypted" mappings. Add a pgprot_decrypted() for TDX.
--- arch/x86/mm/ioremap.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/x86/mm/ioremap.c +5 -0
@@ -242,10 +242,15 @@ __ioremap_caller(resource_size_t phys_addr, unsigned long size,* If the page being mapped is in memory and SEV is active then * make sure the memory encryption attribute is enabled in the * resulting mapping. +* In TDX guests, memory is marked private by default. If encryption +* is not requested (using encrypted), explicitly set decrypt +* attribute in all IOREMAPPED memory. */ prot =PAGE_KERNEL_IO ;if ((io_desc.flags &IORES_MAP_ENCRYPTED ) || encrypted) prot =pgprot_encrypted (prot); +else + prot =pgprot_decrypted (prot);switch (pcm) {case _PAGE_CACHE_MODE_UC:
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx: Make pages shared in ioremap()
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 9aa6ea69852c46e551f4180dce4208bd53df418c Gitweb: https://git.kernel.org/tip/9aa6ea69852c46e551f4180dce4208bd53df418c Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:34 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/tdx: Make pages shared in ioremap()
In TDX guests, guest memory is protected from host access. If a guest performs I/O, it needs to explicitly share the I/O memory with the host.
Make all ioremap()ed pages that are not backed by normal memory (IORES_DESC_NONE or IORES_DESC_RESERVED) mapped as shared.
The permissions in PAGE_KERNEL_IO already work for "decrypted" memory on AMD SEV/SME systems. That means that they have no need to make a pgprot_decrypted() call.
TDX guests, on the other hand, _need_ change to PAGE_KERNEL_IO for "decrypted" mappings. Add a pgprot_decrypted() for TDX.
--- arch/x86/mm/ioremap.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/x86/mm/ioremap.c +5 -0
@@ -242,10 +242,15 @@ __ioremap_caller(resource_size_t phys_addr, unsigned long size,* If the page being mapped is in memory and SEV is active then * make sure the memory encryption attribute is enabled in the * resulting mapping. +* In TDX guests, memory is marked private by default. If encryption +* is not requested (using encrypted), explicitly set decrypt +* attribute in all IOREMAPPED memory. */ prot =PAGE_KERNEL_IO ;if ((io_desc.flags &IORES_MAP_ENCRYPTED ) || encrypted) prot =pgprot_encrypted (prot); +else + prot =pgprot_decrypted (prot);switch (pcm) {case _PAGE_CACHE_MODE_UC:
PATCH v8 26/30 x86/mm/cpa: Add support for TDX shared memory
In reply to Kirill A. ShutemovIntel TDX protects guest memory from VMM access. Any memory that is required for communication with the VMM must be explicitly shared.
It is a two-step process: the guest sets the shared bit in the page table entry and notifies VMM about the change. The notification happens using MapGPA hypercall.
Conversion back to private memory requires clearing the shared bit, notifying VMM with MapGPA hypercall following with accepting the memory with AcceptPage hypercall.
Provide a TDX version of x86_platform.guest.* callbacks. It makes __set_memory_enc_pgtable() work right in TDX guest.
--- arch/x86/coco/core.c | 1 + arch/x86/coco/tdx/tdx.c | 133 ++++++++++++++++++++++++++++++++++++++++ arch/x86/kernel/traps.c | 2 +- 3 files changed, 135 insertions(+), 1 deletion(-)
arch/x86/coco/core.c +1 -0
@@ -21,6 +21,7 @@ static bool intel_cc_platform_has(enum cc_attr attr)switch (attr) {case CC_ATTR_GUEST_UNROLL_STRING_IO :case CC_ATTR_HOTPLUG_DISABLED : +case CC_ATTR_GUEST_MEM_ENCRYPT :return true;default :return false;
arch/x86/coco/tdx/tdx.c +133 -0
154 lines not on this page · raw message
arch/x86/kernel/traps.c +1 -1
@@ -1378,7 +1378,7 @@ static void ve_raise_fault(struct pt_regs *regs, long error_code)* * In the settings that Linux will run in, virtualization exceptions are * never generated on accesses to normal, TD-private memory that has been -* accepted. +* accepted (by BIOS or with tdx_enc_status_changed()). * * Syscall entry code has a critical window where the kernel stack is not * yet set up. Any exception in this window leads to hard to debug issues
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/mm/cpa: Add support for TDX shared memory
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 7dbde7631629896b478bc5b1f4c3e52e6d518d12 Gitweb: https://git.kernel.org/tip/7dbde7631629896b478bc5b1f4c3e52e6d518d12 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:35 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/mm/cpa: Add support for TDX shared memory
Intel TDX protects guest memory from VMM access. Any memory that is required for communication with the VMM must be explicitly shared.
It is a two-step process: the guest sets the shared bit in the page table entry and notifies VMM about the change. The notification happens using MapGPA hypercall.
Conversion back to private memory requires clearing the shared bit, notifying VMM with MapGPA hypercall following with accepting the memory with AcceptPage hypercall.
Provide a TDX version of x86_platform.guest.* callbacks. It makes __set_memory_enc_pgtable() work right in TDX guest.
--- arch/x86/coco/core.c | 1 +- arch/x86/coco/tdx/tdx.c | 133 +++++++++++++++++++++++++++++++++++++++- arch/x86/kernel/traps.c | 2 +- 3 files changed, 135 insertions(+), 1 deletion(-)
arch/x86/coco/core.c +1 -0
@@ -21,6 +21,7 @@ static bool intel_cc_platform_has(enum cc_attr attr)switch (attr) {case CC_ATTR_GUEST_UNROLL_STRING_IO :case CC_ATTR_HOTPLUG_DISABLED : +case CC_ATTR_GUEST_MEM_ENCRYPT :return true;default :return false;
arch/x86/coco/tdx/tdx.c +133 -0
154 lines not on this page · raw message
arch/x86/kernel/traps.c +1 -1
@@ -1378,7 +1378,7 @@ static void ve_raise_fault(struct pt_regs *regs, long error_code)* * In the settings that Linux will run in, virtualization exceptions are * never generated on accesses to normal, TD-private memory that has been -* accepted. +* accepted (by BIOS or with tdx_enc_status_changed()). * * Syscall entry code has a critical window where the kernel stack is not * yet set up. Any exception in this window leads to hard to debug issues
PATCH v8 27/30 x86/mm: Make DMA memory shared for TD guest
In reply to Kirill A. ShutemovIntel TDX doesn't allow VMM to directly access guest private memory. Any memory that is required for communication with the VMM must be shared explicitly. The same rule applies for any DMA to and from the TDX guest. All DMA pages have to be marked as shared pages. A generic way to achieve this without any changes to device drivers is to use the SWIOTLB framework.
The previous patch ("Add support for TDX shared memory") gave TDX guests the _ability_ to make some pages shared, but did not make any pages shared. This actually marks SWIOTLB buffers *as* shared.
Start returning true for cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) in TDX guests. This has several implications:
- Allows the existing mem_encrypt_init() to be used for TDX which sets SWIOTLB buffers shared (aka. "decrypted").
- Ensures that all DMA is routed via the SWIOTLB mechanism (see pci_swiotlb_detect())
Stop selecting DYNAMIC_PHYSICAL_MASK directly. It will get set indirectly by selecting X86_MEM_ENCRYPT.
mem_encrypt_init() is currently under an AMD-specific #ifdef. Move it to a generic area of the header.
--- arch/x86/Kconfig | 2 +- arch/x86/coco/core.c | 1 + arch/x86/include/asm/mem_encrypt.h | 6 +++--- arch/x86/mm/mem_encrypt.c | 9 ++++++++- 4 files changed, 13 insertions(+), 5 deletions(-)
arch/x86/Kconfig +1 -1
@@ -883,7 +883,7 @@ config INTEL_TDX_GUEST depends on X86_64 && CPU_SUP_INTEL depends on X86_X2APIC select ARCH_HAS_CC_PLATFORM - select DYNAMIC_PHYSICAL_MASK + select X86_MEM_ENCRYPT select X86_MCE help Support running as a guest under Intel TDX. Without this support,
arch/x86/coco/core.c +1 -0
@@ -22,6 +22,7 @@ static bool intel_cc_platform_has(enum cc_attr attr)case CC_ATTR_GUEST_UNROLL_STRING_IO :case CC_ATTR_HOTPLUG_DISABLED :case CC_ATTR_GUEST_MEM_ENCRYPT : +case CC_ATTR_MEM_ENCRYPT :return true;default :return false;
arch/x86/include/asm/mem_encrypt.h +3 -3
@@ -49,9 +49,6 @@ void __init early_set_mem_enc_dec_hypercall(unsigned long vaddr, int npages,void __init mem_encrypt_free_decrypted_mem (void ); -/* Architecture __weak replacement functions */ -void __init mem_encrypt_init (void ); -void __init sev_es_init_vc_handling (void );#define __bss_decrypted __section(".bss..decrypted")
@@ -89,6 +86,9 @@ static inline void mem_encrypt_free_decrypted_mem(void) { }#endif /* CONFIG_AMD_MEM_ENCRYPT */ +/* Architecture __weak replacement functions */ +void __init mem_encrypt_init (void ); +/* * The __sme_pa() and __sme_pa_nodebug() macros are meant for use when * writing to or comparing values from the cr3 register. Having the
arch/x86/mm/mem_encrypt.c +8 -1
@@ -42,7 +42,14 @@ bool force_dma_unencrypted(struct device *dev)static void print_mem_encrypt_feature_info (void ) { -pr_info ("AMD Memory Encryption Features active:" ); +pr_info ("Memory Encryption Features active:" ); + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) { +pr_cont (" Intel TDX\n" ); +return ; + } + +pr_cont ("AMD " );/* Secure Memory Encryption */ if (cc_platform_has (CC_ATTR_HOST_MEM_ENCRYPT )) {
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/mm: Make DMA memory shared for TD guest
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: 968b493173ac5205fe75f6330ee767f96bf88e57 Gitweb: https://git.kernel.org/tip/968b493173ac5205fe75f6330ee767f96bf88e57 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:36 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/mm: Make DMA memory shared for TD guest
Intel TDX doesn't allow VMM to directly access guest private memory. Any memory that is required for communication with the VMM must be shared explicitly. The same rule applies for any DMA to and from the TDX guest. All DMA pages have to be marked as shared pages. A generic way to achieve this without any changes to device drivers is to use the SWIOTLB framework.
The previous patch ("Add support for TDX shared memory") gave TDX guests the _ability_ to make some pages shared, but did not make any pages shared. This actually marks SWIOTLB buffers *as* shared.
Start returning true for cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) in TDX guests. This has several implications:
- Allows the existing mem_encrypt_init() to be used for TDX which sets SWIOTLB buffers shared (aka. "decrypted").
- Ensures that all DMA is routed via the SWIOTLB mechanism (see pci_swiotlb_detect())
Stop selecting DYNAMIC_PHYSICAL_MASK directly. It will get set indirectly by selecting X86_MEM_ENCRYPT.
mem_encrypt_init() is currently under an AMD-specific #ifdef. Move it to a generic area of the header.
--- arch/x86/Kconfig | 2 +- arch/x86/coco/core.c | 1 + arch/x86/include/asm/mem_encrypt.h | 6 +++--- arch/x86/mm/mem_encrypt.c | 9 ++++++++- 4 files changed, 13 insertions(+), 5 deletions(-)
arch/x86/Kconfig +1 -1
@@ -883,7 +883,7 @@ config INTEL_TDX_GUEST depends on X86_64 && CPU_SUP_INTEL depends on X86_X2APIC select ARCH_HAS_CC_PLATFORM - select DYNAMIC_PHYSICAL_MASK + select X86_MEM_ENCRYPT select X86_MCE help Support running as a guest under Intel TDX. Without this support,
arch/x86/coco/core.c +1 -0
@@ -22,6 +22,7 @@ static bool intel_cc_platform_has(enum cc_attr attr)case CC_ATTR_GUEST_UNROLL_STRING_IO :case CC_ATTR_HOTPLUG_DISABLED :case CC_ATTR_GUEST_MEM_ENCRYPT : +case CC_ATTR_MEM_ENCRYPT :return true;default :return false;
arch/x86/include/asm/mem_encrypt.h +3 -3
@@ -49,9 +49,6 @@ void __init early_set_mem_enc_dec_hypercall(unsigned long vaddr, int npages,void __init mem_encrypt_free_decrypted_mem (void ); -/* Architecture __weak replacement functions */ -void __init mem_encrypt_init (void ); -void __init sev_es_init_vc_handling (void );#define __bss_decrypted __section(".bss..decrypted")
@@ -89,6 +86,9 @@ static inline void mem_encrypt_free_decrypted_mem(void) { }#endif /* CONFIG_AMD_MEM_ENCRYPT */ +/* Architecture __weak replacement functions */ +void __init mem_encrypt_init (void ); +/* * The __sme_pa() and __sme_pa_nodebug() macros are meant for use when * writing to or comparing values from the cr3 register. Having the
arch/x86/mm/mem_encrypt.c +8 -1
@@ -42,7 +42,14 @@ bool force_dma_unencrypted(struct device *dev)static void print_mem_encrypt_feature_info (void ) { -pr_info ("AMD Memory Encryption Features active:" ); +pr_info ("Memory Encryption Features active:" ); + +if (cpu_feature_enabled (X86_FEATURE_TDX_GUEST )) { +pr_cont (" Intel TDX\n" ); +return ; + } + +pr_cont ("AMD " );/* Secure Memory Encryption */ if (cc_platform_has (CC_ATTR_HOST_MEM_ENCRYPT )) {
PATCH v8 28/30 x86/tdx: ioapic: Add shared bit for IOAPIC base address
In reply to Kirill A. ShutemovFrom: Isaku Yamahata <[email protected]>
The kernel interacts with each bare-metal IOAPIC with a special MMIO page. When running under KVM, the guest's IOAPICs are emulated by KVM.
When running as a TDX guest, the guest needs to mark each IOAPIC mapping as "shared" with the host. This ensures that TDX private protections are not applied to the page, which allows the TDX host emulation to work.
ioremap()-created mappings such as virtio will be marked as shared by default. However, the IOAPIC code does not use ioremap() and instead uses the fixmap mechanism.
Introduce a special fixmap helper just for the IOAPIC code. Ensure that it marks IOAPIC pages as "shared". This replaces set_fixmap_nocache() with __set_fixmap() since __set_fixmap() allows custom 'prot' values.
AMD SEV gets IOAPIC pages shared because FIXMAP_PAGE_NOCACHE has _ENC bit clear. TDX has to set bit to share the page with the host.
--- arch/x86/kernel/apic/io_apic.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)
arch/x86/kernel/apic/io_apic.c +16 -2
@@ -65,6 +65,7 @@#include <asm/irq_remapping.h> #include <asm/hw_irq.h> #include <asm/apic.h> +#include <asm/pgtable.h> #define for_each_ioapic (idx) \ for ((idx) = 0; (idx) < nr_ioapics; (idx)++)
@@ -2677,6 +2678,19 @@ static struct resource * __init ioapic_setup_resources(void)return res; } +static void io_apic_set_fixmap (enum fixed_addresses idx,phys_addr_t phys) +{ +pgprot_t flags =FIXMAP_PAGE_NOCACHE ; + +/* +* Ensure fixmaps for IOAPIC MMIO respect memory encryption pgprot +* bits, just like normal ioremap(): +*/ + flags =pgprot_decrypted (flags); + +__set_fixmap (idx, phys, flags); +} +void __init io_apic_init_mappings (void ) {unsigned long ioapic_phys, idx =FIX_IO_APIC_BASE_0 ;
@@ -2709,7 +2723,7 @@ void __init io_apic_init_mappings(void) __func__, PAGE_SIZE, PAGE_SIZE); ioapic_phys =__pa (ioapic_phys); } -set_fixmap_nocache (idx, ioapic_phys); +io_apic_set_fixmap (idx, ioapic_phys);apic_printk (APIC_VERBOSE ,"mapped IOAPIC to %08lx (%08lx)\n" ,__fix_to_virt (idx) + (ioapic_phys & ~PAGE_MASK ), ioapic_phys);
@@ -2838,7 +2852,7 @@ int mp_register_ioapic(int id, u32 address, u32 gsi_base, ioapics[idx].mp_config.flags =MPC_APIC_USABLE ; ioapics[idx].mp_config.apicaddr = address; -set_fixmap_nocache (FIX_IO_APIC_BASE_0 + idx, address); +io_apic_set_fixmap (FIX_IO_APIC_BASE_0 + idx, address);if (bad_ioapic_register (idx)) {clear_fixmap (FIX_IO_APIC_BASE_0 + idx);return -ENODEV ;
Signature · 1 line
2.35.1
[tip: x86/tdx] x86/tdx/ioapic: Add shared bit for IOAPIC base address
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: f4c9361f97c40d365c34f9cb8b8bc3eae0ee7778 Gitweb: https://git.kernel.org/tip/f4c9361f97c40d365c34f9cb8b8bc3eae0ee7778 Author: Isaku Yamahata <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:37 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:53 -07:00
x86/tdx/ioapic: Add shared bit for IOAPIC base address
The kernel interacts with each bare-metal IOAPIC with a special MMIO page. When running under KVM, the guest's IOAPICs are emulated by KVM.
When running as a TDX guest, the guest needs to mark each IOAPIC mapping as "shared" with the host. This ensures that TDX private protections are not applied to the page, which allows the TDX host emulation to work.
ioremap()-created mappings such as virtio will be marked as shared by default. However, the IOAPIC code does not use ioremap() and instead uses the fixmap mechanism.
Introduce a special fixmap helper just for the IOAPIC code. Ensure that it marks IOAPIC pages as "shared". This replaces set_fixmap_nocache() with __set_fixmap() since __set_fixmap() allows custom 'prot' values.
AMD SEV gets IOAPIC pages shared because FIXMAP_PAGE_NOCACHE has _ENC bit clear. TDX has to set bit to share the page with the host.
--- arch/x86/kernel/apic/io_apic.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)
arch/x86/kernel/apic/io_apic.c +16 -2
@@ -65,6 +65,7 @@#include <asm/irq_remapping.h> #include <asm/hw_irq.h> #include <asm/apic.h> +#include <asm/pgtable.h> #define for_each_ioapic (idx) \ for ((idx) = 0; (idx) < nr_ioapics; (idx)++)
@@ -2677,6 +2678,19 @@ static struct resource * __init ioapic_setup_resources(void)return res; } +static void io_apic_set_fixmap (enum fixed_addresses idx,phys_addr_t phys) +{ +pgprot_t flags =FIXMAP_PAGE_NOCACHE ; + +/* +* Ensure fixmaps for IOAPIC MMIO respect memory encryption pgprot +* bits, just like normal ioremap(): +*/ + flags =pgprot_decrypted (flags); + +__set_fixmap (idx, phys, flags); +} +void __init io_apic_init_mappings (void ) {unsigned long ioapic_phys, idx =FIX_IO_APIC_BASE_0 ;
@@ -2709,7 +2723,7 @@ fake_ioapic_page: __func__, PAGE_SIZE, PAGE_SIZE); ioapic_phys =__pa (ioapic_phys); } -set_fixmap_nocache (idx, ioapic_phys); +io_apic_set_fixmap (idx, ioapic_phys);apic_printk (APIC_VERBOSE ,"mapped IOAPIC to %08lx (%08lx)\n" ,__fix_to_virt (idx) + (ioapic_phys & ~PAGE_MASK ), ioapic_phys);
@@ -2838,7 +2852,7 @@ int mp_register_ioapic(int id, u32 address, u32 gsi_base, ioapics[idx].mp_config.flags =MPC_APIC_USABLE ; ioapics[idx].mp_config.apicaddr = address; -set_fixmap_nocache (FIX_IO_APIC_BASE_0 + idx, address); +io_apic_set_fixmap (FIX_IO_APIC_BASE_0 + idx, address);if (bad_ioapic_register (idx)) {clear_fixmap (FIX_IO_APIC_BASE_0 + idx);return -ENODEV ;
PATCH v8 29/30 ACPICA: Avoid cache flush inside virtual machines
In reply to Kirill A. ShutemovWhile running inside virtual machine, the kernel can bypass cache flushing. Changing sleep state in a virtual machine doesn't affect the host system sleep state and cannot lead to data loss.
Before entering sleep states, the ACPI code flushes caches to prevent data loss using the WBINVD instruction. This mechanism is required on bare metal.
But, any use WBINVD inside of a guest is worthless. Changing sleep state in a virtual machine doesn't affect the host system sleep state and cannot lead to data loss, so most hypervisors simply ignore it. Despite this, the ACPI code calls WBINVD unconditionally anyway. It's useless, but also normally harmless.
In TDX guests, though, WBINVD stops being harmless; it triggers a virtualization exception (#VE). If the ACPI cache-flushing WBINVD were left in place, TDX guests would need handling to recover from the exception.
Avoid using WBINVD whenever running under a hypervisor. This both removes the useless WBINVDs and saves TDX from implementing WBINVD handling.
--- arch/x86/include/asm/acenv.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
arch/x86/include/asm/acenv.h +13 -1
@@ -13,7 +13,19 @@/* Asm macros */ -#define ACPI_FLUSH_CPU_CACHE () wbinvd() +/* +* ACPI_FLUSH_CPU_CACHE() flushes caches on entering sleep states. +* It is required to prevent data loss. +* +* While running inside virtual machine, the kernel can bypass cache flushing. +* Changing sleep state in a virtual machine doesn't affect the host system +* sleep state and cannot lead to data loss. +*/ +#define ACPI_FLUSH_CPU_CACHE () \ +do { \ + if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \ + wbinvd(); \ +} while (0)int __acpi_acquire_global_lock (unsigned int *lock);int __acpi_release_global_lock (unsigned int *lock);
Signature · 1 line
2.35.1
[tip: x86/tdx] ACPICA: Avoid cache flush inside virtual machines
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: e2efb6359e620521d1e13f69b2257de8ceaa9475 Gitweb: https://git.kernel.org/tip/e2efb6359e620521d1e13f69b2257de8ceaa9475 Author: Kirill A. Shutemov <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:38 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Thu, 07 Apr 2022 08:27:54 -07:00
ACPICA: Avoid cache flush inside virtual machines
While running inside virtual machine, the kernel can bypass cache flushing. Changing sleep state in a virtual machine doesn't affect the host system sleep state and cannot lead to data loss.
Before entering sleep states, the ACPI code flushes caches to prevent data loss using the WBINVD instruction. This mechanism is required on bare metal.
But, any use WBINVD inside of a guest is worthless. Changing sleep state in a virtual machine doesn't affect the host system sleep state and cannot lead to data loss, so most hypervisors simply ignore it. Despite this, the ACPI code calls WBINVD unconditionally anyway. It's useless, but also normally harmless.
In TDX guests, though, WBINVD stops being harmless; it triggers a virtualization exception (#VE). If the ACPI cache-flushing WBINVD were left in place, TDX guests would need handling to recover from the exception.
Avoid using WBINVD whenever running under a hypervisor. This both removes the useless WBINVDs and saves TDX from implementing WBINVD handling.
--- arch/x86/include/asm/acenv.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
arch/x86/include/asm/acenv.h +13 -1
@@ -13,7 +13,19 @@/* Asm macros */ -#define ACPI_FLUSH_CPU_CACHE () wbinvd() +/* +* ACPI_FLUSH_CPU_CACHE() flushes caches on entering sleep states. +* It is required to prevent data loss. +* +* While running inside virtual machine, the kernel can bypass cache flushing. +* Changing sleep state in a virtual machine doesn't affect the host system +* sleep state and cannot lead to data loss. +*/ +#define ACPI_FLUSH_CPU_CACHE () \ +do { \ + if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \ + wbinvd(); \ +} while (0)int __acpi_acquire_global_lock (unsigned int *lock);int __acpi_release_global_lock (unsigned int *lock);
PATCH v8 30/30 Documentation/x86: Document TDX kernel architecture
In reply to Kirill A. ShutemovFrom: Kuppuswamy Sathyanarayanan <[email protected]>
Document the TDX guest architecture details like #VE support, shared memory, etc.
--- Documentation/x86/index.rst | 1 + Documentation/x86/tdx.rst | 214 ++++++++++++++++++++++++++++++++++++ 2 files changed, 215 insertions(+) create mode 100644 Documentation/x86/tdx.rst
Documentation/x86/index.rst +1 -0
@@ -26,6 +26,7 @@ x86-specific Documentation intel_txt amd-memory-encryption amd_hsmp + tdx pti mds microcode
Documentation/x86/tdx.rst new file +214 -0
214 lines not on this page · raw message
Signature · 1 line
2.35.1
[tip: x86/tdx] Documentation/x86: Document TDX kernel architecture
The following commit has been merged into the x86/tdx branch of tip:
The following commit has been merged into the x86/tdx branch of tip:
Commit-ID: b9c7ba58777acfd0892b808aea25074d46e0618f Gitweb: https://git.kernel.org/tip/b9c7ba58777acfd0892b808aea25074d46e0618f Author: Kuppuswamy Sathyanarayanan <[email protected]> AuthorDate: Wed, 06 Apr 2022 02:29:39 +03:00 Committer: Dave Hansen <[email protected]> CommitterDate: Fri, 08 Apr 2022 06:57:09 -07:00
Documentation/x86: Document TDX kernel architecture
Document the TDX guest architecture details like #VE support, shared memory, etc.
[ dhansen: made some wording changes, including removing
all the plural "#VE's" and "#VEs". ]
--- Documentation/x86/index.rst | 1 +- Documentation/x86/tdx.rst | 218 +++++++++++++++++++++++++++++++++++- 2 files changed, 219 insertions(+) create mode 100644 Documentation/x86/tdx.rst
Documentation/x86/index.rst +1 -0
@@ -26,6 +26,7 @@ x86-specific Documentation intel_txt amd-memory-encryption amd_hsmp + tdx pti mds microcode
Documentation/x86/tdx.rst new file +218 -0
218 lines not on this page · raw message
On 4/5/22 16:29, Kirill A. Shutemov wrote:
...
Quoted 5 lines
arch/x86/coco/Makefile | 2 + arch/x86/coco/core.c | 22 +- arch/x86/coco/tdx/Makefile | 3 + arch/x86/coco/tdx/tdcall.S | 204 +++++++ arch/x86/coco/tdx/tdx.c | 692 +++++++++++++++++++++++
This coco/ code currently doesn't have a specific MAINTAINERS entry. That makes me a bit worried that folks like Kirill won't get cc'd on patches.
Should we just do a MAINTAINERS entry like this? It would also be really nice to get some SEV folks on the list as well. I suspect the coco/ directory will grow more common SEV/TDX code over time.
X86 CONFIDENTIAL COMPUTING
M: [email protected]
R: Kirill A. Shutemov <[email protected]>
...
S: Supported F: arch/x86/coco/
...
Sean Christopherson
maintainerQuoted 16 lines · Dave Hansen
On 4/5/22 16:29, Kirill A. Shutemov wrote:
...Quoted 5 lines
arch/x86/coco/Makefile | 2 + arch/x86/coco/core.c | 22 +- arch/x86/coco/tdx/Makefile | 3 + arch/x86/coco/tdx/tdcall.S | 204 +++++++ arch/x86/coco/tdx/tdx.c | 692 +++++++++++++++++++++++This coco/ code currently doesn't have a specific
MAINTAINERSentry. That makes me a bit worried that folks like Kirill won't get cc'd on patches.Should we just do a
MAINTAINERSentry like this? It would also be really nice to get some SEV folks on the list as well. I suspect the coco/ directory will grow more common SEV/TDX code over time.
Quoted 7 lines
X86 CONFIDENTIAL COMPUTING
M: [email protected]
R: Kirill A. Shutemov <[email protected]>
...S: Supported F: arch/x86/coco/...
And/or a dedicated vger list?
Quoted 25 lines · Sean Christopherson
Quoted 16 lines · Dave Hansen
On 4/5/22 16:29, Kirill A. Shutemov wrote:
...Quoted 5 lines
arch/x86/coco/Makefile | 2 + arch/x86/coco/core.c | 22 +- arch/x86/coco/tdx/Makefile | 3 + arch/x86/coco/tdx/tdcall.S | 204 +++++++ arch/x86/coco/tdx/tdx.c | 692 +++++++++++++++++++++++This coco/ code currently doesn't have a specific
MAINTAINERSentry. That makes me a bit worried that folks like Kirill won't get cc'd on patches.Should we just do a
MAINTAINERSentry like this? It would also be really nice to get some SEV folks on the list as well. I suspect the coco/ directory will grow more common SEV/TDX code over time.Quoted 7 lines
X86 CONFIDENTIAL COMPUTING
M: [email protected]
R: Kirill A. Shutemov <[email protected]>
...S: Supported F: arch/x86/coco/...
Quoted 1 line
And/or a dedicated vger list?
There is a linux-coco mailing list ([email protected]):
https://subspace.kernel.org/lists.linux.dev.html
Thanks,
Tom
Quoted 9 lines · Sean Christopherson
Quoted 8 lines · Dave Hansen
On 4/5/22 16:29, Kirill A. Shutemov wrote:
...Quoted 5 lines
arch/x86/coco/Makefile | 2 + arch/x86/coco/core.c | 22 +- arch/x86/coco/tdx/Makefile | 3 + arch/x86/coco/tdx/tdcall.S | 204 +++++++ arch/x86/coco/tdx/tdx.c | 692 +++++++++++++++++++++++
Quoted 5 lines
Quoted 5 lines
This coco/ code currently doesn't have a specific
MAINTAINERSentry. That makes me a bit worried that folks like Kirill won't get cc'd on patches.Should we just do a
MAINTAINERSentry like this?
No objections on my side.
Quoted 12 lines
Quoted 11 lines
It would also be really nice to get some SEV folks on the list as well. I suspect the coco/ directory will grow more common SEV/TDX code over time.
X86 CONFIDENTIAL COMPUTING
M: [email protected]
R: Kirill A. Shutemov <[email protected]>
...S: Supported F: arch/x86/coco/...
Quoted 1 line
And/or a dedicated vger list?
We already have [email protected]. Although, it is not x86-specific.
Signature · 1 line
Kirill A. Shutemov
Sean Christopherson
maintainerQuoted 14 lines · Kirill A. Shutemov
Quoted 13 lines · Sean Christopherson
Quoted 11 lines · Dave Hansen
It would also be really nice to get some SEV folks on the list as well. I suspect the coco/ directory will grow more common SEV/TDX code over time.
X86 CONFIDENTIAL COMPUTING
M: [email protected]
R: Kirill A. Shutemov <[email protected]>
...S: Supported F: arch/x86/coco/...
Quoted 4 lines
Quoted 1 line
And/or a dedicated vger list?
We already have [email protected]. Although, it is not x86-specific.
Is it ok to spam that list with TDX/SNP stuff, or would it be better to create something x86-specific?
Quoted 15 lines · Sean Christopherson
Quoted 14 lines · Kirill A. Shutemov
Quoted 13 lines · Sean Christopherson
Quoted 11 lines · Dave Hansen
It would also be really nice to get some SEV folks on the list as well. I suspect the coco/ directory will grow more common SEV/TDX code over time.
X86 CONFIDENTIAL COMPUTING
M: [email protected]
R: Kirill A. Shutemov <[email protected]>
...S: Supported F: arch/x86/coco/...
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
And/or a dedicated vger list?
We already have [email protected]. Although, it is not x86-specific.
Is it ok to spam that list with TDX/SNP stuff, or would it be better to create something x86-specific?
In this case the existing coco mailing list will have little to none use as most of coco traffic is x86-specific at the moment. We can split off x86-specific later if needed.
Signature · 1 line
Kirill A. Shutemov