projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/sev-es: Invalidate the GHCB after completing VMGEXIT
[linux-2.6-microblaze.git]
/
arch
/
x86
/
kernel
/
sev.c
diff --git
a/arch/x86/kernel/sev.c
b/arch/x86/kernel/sev.c
index
45e2126
..
4fa111b
100644
(file)
--- a/
arch/x86/kernel/sev.c
+++ b/
arch/x86/kernel/sev.c
@@
-457,6
+457,11
@@
static __always_inline void sev_es_put_ghcb(struct ghcb_state *state)
data->backup_ghcb_active = false;
state->ghcb = NULL;
} else {
+ /*
+ * Invalidate the GHCB so a VMGEXIT instruction issued
+ * from userspace won't appear to be valid.
+ */
+ vc_ghcb_invalidate(ghcb);
data->ghcb_active = false;
}
}