|
@@ -15,6 +15,7 @@
|
|
|
#include <asm/page.h>
|
|
|
#include <asm/processor-flags.h>
|
|
|
#include <asm/msr-index.h>
|
|
|
+#include <asm/nospec-branch.h>
|
|
|
|
|
|
.text
|
|
|
.code64
|
|
@@ -59,6 +60,7 @@ ENTRY(sme_encrypt_execute)
|
|
|
movq %rax, %r8 /* Workarea encryption routine */
|
|
|
addq $PAGE_SIZE, %r8 /* Workarea intermediate copy buffer */
|
|
|
|
|
|
+ ANNOTATE_RETPOLINE_SAFE
|
|
|
call *%rax /* Call the encryption routine */
|
|
|
|
|
|
pop %r12
|