diff options
| author | Peter Gonda <[email protected]> | 2022-03-30 09:43:06 -0700 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-04-05 08:09:36 -0400 |
| commit | 00c22013467069197dc006c943ca1f0395ca8aaa (patch) | |
| tree | c61f4dd1be0e9263b25cb56053a35a23920d1b51 | |
| parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
KVM: SEV: Add cond_resched() to loop in sev_clflush_pages()
Add resched to avoid warning from sev_clflush_pages() with large number
of pages.
Signed-off-by: Peter Gonda <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
| -rw-r--r-- | arch/x86/kvm/svm/sev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 75fa6dd268f0..c2fe89ecdb2d 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -465,6 +465,7 @@ static void sev_clflush_pages(struct page *pages[], unsigned long npages) page_virtual = kmap_atomic(pages[i]); clflush_cache_range(page_virtual, PAGE_SIZE); kunmap_atomic(page_virtual); + cond_resched(); } } |