Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0d391319
Commit
0d391319
authored
Mar 15, 2021
by
Borislav Petkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge 'x86/seves' into x86/core
Pick up dependent changes. Signed-off-by:
Borislav Petkov
<
bp@suse.de
>
parents
aa7680f6
22916417
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
arch/x86/Kconfig
arch/x86/Kconfig
+1
-0
arch/x86/kernel/sev-es.c
arch/x86/kernel/sev-es.c
+1
-1
arch/x86/mm/mem_encrypt.c
arch/x86/mm/mem_encrypt.c
+6
-0
No files found.
arch/x86/Kconfig
View file @
0d391319
...
...
@@ -1515,6 +1515,7 @@ config AMD_MEM_ENCRYPT
select ARCH_USE_MEMREMAP_PROT
select ARCH_HAS_FORCE_DMA_UNENCRYPTED
select INSTRUCTION_DECODER
select ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS
help
Say yes to enable support for the encryption of system memory.
This requires an AMD processor that supports Secure Memory
...
...
arch/x86/kernel/sev-es.c
View file @
0d391319
...
...
@@ -277,7 +277,7 @@ static enum es_result vc_decode_insn(struct es_em_ctxt *ctxt)
return
ES_EXCEPTION
;
}
insn_init
(
&
ctxt
->
insn
,
buffer
,
MAX_INSN_SIZE
-
res
,
1
);
insn_init
(
&
ctxt
->
insn
,
buffer
,
MAX_INSN_SIZE
,
1
);
insn_get_length
(
&
ctxt
->
insn
);
}
...
...
arch/x86/mm/mem_encrypt.c
View file @
0d391319
...
...
@@ -19,6 +19,7 @@
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/dma-mapping.h>
#include <linux/virtio_config.h>
#include <asm/tlbflush.h>
#include <asm/fixmap.h>
...
...
@@ -484,3 +485,8 @@ void __init mem_encrypt_init(void)
print_mem_encrypt_feature_info
();
}
int
arch_has_restricted_virtio_memory_access
(
void
)
{
return
sev_active
();
}
EXPORT_SYMBOL_GPL
(
arch_has_restricted_virtio_memory_access
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment