Thread (23 messages) 23 messages, 6 authors, 2019-07-20

Re: [PATCH 2/3] DMA mapping: Move SME handling to x86-specific files

From: Thomas Gleixner <hidden>
Date: 2019-07-12 16:10:08
Also in: linux-fsdevel, linux-iommu, linux-s390, lkml

On Fri, 12 Jul 2019, Thiago Jung Bauermann wrote:
quoted hunk ↗ jump to hunk
diff --git a/include/linux/mem_encrypt.h b/include/linux/mem_encrypt.h
index b310a9c18113..f2e399fb626b 100644
--- a/include/linux/mem_encrypt.h
+++ b/include/linux/mem_encrypt.h
@@ -21,23 +21,11 @@
 
 #else	/* !CONFIG_ARCH_HAS_MEM_ENCRYPT */
 
-#define sme_me_mask	0ULL
-
-static inline bool sme_active(void) { return false; }
 static inline bool sev_active(void) { return false; }
You want to move out sev_active as well, the only relevant thing is
mem_encrypt_active(). Everything SME/SEV is an architecture detail.
+static inline bool mem_encrypt_active(void) { return false; }
Thanks,

	tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help