]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/x86/mm/mem_encrypt.c
x86/mm: Add Secure Memory Encryption (SME) support
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / mm / mem_encrypt.c
1 /*
2 * AMD Memory Encryption Support
3 *
4 * Copyright (C) 2016 Advanced Micro Devices, Inc.
5 *
6 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13 #include <linux/linkage.h>
14
15 /*
16 * Since SME related variables are set early in the boot process they must
17 * reside in the .data section so as not to be zeroed out when the .bss
18 * section is later cleared.
19 */
20 unsigned long sme_me_mask __section(.data) = 0;
21 EXPORT_SYMBOL_GPL(sme_me_mask);