History

Merge branch 'topic/mem-encrypt' into next

This branch has some cross-arch patches that are a prequisite for the SVM work. They're in a topic branch in case any of the other arch maintainers want to merge them to resolve conflicts.

Michael Ellerman committed 7 years ago

Commit 07aa1e72 parents bc605cd 5cbdaee13 files · +42 −46Browse files

Showing the changes to include/linux (2 of 13 files). Show all

Unified · Split

2 files
  1. include/linux/crash_dump.h +14 −0
  2. include/linux/mem_encrypt.h +1 −14
include/linux/crash_dump.h+14−0
@@ -115,4 +115,18 @@ static inline int vmcore_add_device_dump(struct vmcoredd_data *data) · 114 unmodified lines
115115 return -EOPNOTSUPP;
116116 }
117117 #endif /* CONFIG_PROC_VMCORE_DEVICE_DUMP */
118+
119+#ifdef CONFIG_PROC_VMCORE
120+ssize_t read_from_oldmem(char *buf, size_t count,
121+ u64 *ppos, int userbuf,
122+ bool encrypted);
123+#else
124+static inline ssize_t read_from_oldmem(char *buf, size_t count,
125+ u64 *ppos, int userbuf,
126+ bool encrypted)
127+{
128+ return -EOPNOTSUPP;
129+}
130+#endif /* CONFIG_PROC_VMCORE */
131+
118132 #endif /* LINUX_CRASHDUMP_H */
include/linux/mem_encrypt.h+1−14
@@ -18,23 +18,10 @@ · 17 unmodified lines
1818
1919 #else /* !CONFIG_ARCH_HAS_MEM_ENCRYPT */
2020
21−#define sme_me_mask 0ULL
22−
23−static inline bool sme_active(void) { return false; }
24−static inline bool sev_active(void) { return false; }
21+static inline bool mem_encrypt_active(void) { return false; }
2522
2623 #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */
2724
28−static inline bool mem_encrypt_active(void)
29−{
30− return sme_me_mask;
31−}
32−
33−static inline u64 sme_get_me_mask(void)
34−{
35− return sme_me_mask;
36−}
37−
3825 #ifdef CONFIG_AMD_MEM_ENCRYPT
3926 /*
4027 * The __sme_set() and __sme_clr() macros are useful for adding or removing

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t