Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.15 27 lines 670 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * AMD SEV header for early boot related functions. 4 * 5 * Author: Tom Lendacky <thomas.lendacky@amd.com> 6 */ 7 8#ifndef BOOT_COMPRESSED_SEV_H 9#define BOOT_COMPRESSED_SEV_H 10 11#ifdef CONFIG_AMD_MEM_ENCRYPT 12 13bool sev_snp_enabled(void); 14void snp_accept_memory(phys_addr_t start, phys_addr_t end); 15u64 sev_get_status(void); 16bool early_is_sevsnp_guest(void); 17 18#else 19 20static inline bool sev_snp_enabled(void) { return false; } 21static inline void snp_accept_memory(phys_addr_t start, phys_addr_t end) { } 22static inline u64 sev_get_status(void) { return 0; } 23static inline bool early_is_sevsnp_guest(void) { return false; } 24 25#endif 26 27#endif