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
Merge tag 'x86_cpu_for_v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[linux-2.6-microblaze.git]
/
arch
/
x86
/
kvm
/
svm
/
sev.c
diff --git
a/arch/x86/kvm/svm/sev.c
b/arch/x86/kvm/svm/sev.c
index
7bf7bf7
..
3c9a45e
100644
(file)
--- a/
arch/x86/kvm/svm/sev.c
+++ b/
arch/x86/kvm/svm/sev.c
@@
-384,7
+384,8
@@
static void sev_clflush_pages(struct page *pages[], unsigned long npages)
uint8_t *page_virtual;
unsigned long i;
- if (npages == 0 || pages == NULL)
+ if (this_cpu_has(X86_FEATURE_SME_COHERENT) || npages == 0 ||
+ pages == NULL)
return;
for (i = 0; i < npages; i++) {