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
KVM: x86/mmu: Skip calling mmu->sync_spte() when the spte is 0
[linux-2.6-microblaze.git]
/
arch
/
x86
/
kvm
/
mmu
/
paging_tmpl.h
diff --git
a/arch/x86/kvm/mmu/paging_tmpl.h
b/arch/x86/kvm/mmu/paging_tmpl.h
index
8ef67f7
..
03a9577
100644
(file)
--- a/
arch/x86/kvm/mmu/paging_tmpl.h
+++ b/
arch/x86/kvm/mmu/paging_tmpl.h
@@
-892,7
+892,7
@@
static int FNAME(sync_spte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, int
gpa_t pte_gpa;
gfn_t gfn;
- if (
!sp->spt[i]
)
+ if (
WARN_ON_ONCE(!sp->spt[i])
)
return 0;
first_pte_gpa = FNAME(get_level1_sp_gpa)(sp);